How can you automate Firefox from C# application?

后端 未结 7 2287
一个人的身影
一个人的身影 2020-12-14 11:57

Start with the simplest task of capturing the URL in Firefox from a C# application. It appears using user32.dll Windows API functions will not work as is the approach for c

7条回答
  •  时光说笑
    2020-12-14 12:38

    Should I need to do a capture of the URL with AutoHotkey, for example, I would send Ctrl+L (put focus in address bar and highlight content) and Ctrl+C (copy selection to clipboard). Then you just read the clipboard to get the info.

    For more complex tasks, I would use Greasemonkey or iMacros extensions, perhaps triggered by similar keyboard shortcuts.

提交回复
热议问题