Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
アクティブなウィンドウが開かれた場所から.docファイルパスを取得したいことに加えて、アクティブなwinwordウィンドウからテキストを取得したい。
C#でこれを行うにはどうすればよいですか?
C#.netを使ってウィンドウベースのアプリをやっています。
まず、FindWindowを使用する必要があると思います。
次に、開いているファイル名を取得できます。