AutoIt与Firefox [英] AutoIt with Firefox
本文介绍了AutoIt与Firefox的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
解决方案
有一个名为 FF.au3 。看起来你想要的功能是
_FFTabSetSelected()
,祝你好运 下面是Jeanne Pindar方法的一个例子。这是我的方式。
#include< array.au3>
$ b $ Opt(WinTitleMatchMode,2)
activateTab(Gmail)
Func activateTab($ targetWindowKeyphrase)
WinActivate( - Mozilla Firefox )
For $ i = 0 To 100
如果StringInStr(WinGetTitle(WinActive()),$ targetWindowKeyphrase)Then
MsgBox(0,Found It, )
返回
EndIf
发送(^ {TAB})
睡眠(200)
Next
EndFunc
I have several tabs open in Firefox. I want AutoIt to activate a particular tab in Firefox. How can this be done?
解决方案
There's a UDF (User Defined Functions -include file) called FF.au3. Looks like the function you want is _FFTabSetSelected()
, good luck!
Below is an example of Jeanne Pindar's method. This is the way I would do it.
#include <array.au3>
Opt("WinTitleMatchMode", 2)
activateTab("Gmail")
Func activateTab($targetWindowKeyphrase)
WinActivate("- Mozilla Firefox")
For $i = 0 To 100
If StringInStr(WinGetTitle(WinActive("")),$targetWindowKeyphrase) Then
MsgBox(0,"Found It", "The tab with the key phrase " & $targetWindowKeyphrase & " is now active.")
Return
EndIf
Send("^{TAB}")
Sleep(200)
Next
EndFunc
这篇关于AutoIt与Firefox的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文