Post by garry » 01 Feb 2015, 03:36
not best way , I use this for GMX login
Code: Select all
#persistent
SetKeyDelay,25,5
Settitlematchmode,2
AA=garry12346@qq.com ; << login
BB=0123456789 ; << code
;FXA=http://www.gmx.ch/
fxa=https://mail.qq.com/ ; << URL
;SC=GMX
SC =QQ ; << see text in browser TAB
IXE=%A_programfiles%\Mozilla Firefox\firefox.exe
;IXE=%A_programfiles%\internet explorer\iexplore.exe
Run,%IXE% %FXA%,,max
WinWait,%SC%
IfWinNotActive ,%SC%,,WinActivate,%SC%
WinWaitActive,%SC%
;- wait until browser is really loaded and then click left mouse button in first login edit field QQ / Email / Mobile
;- wait until left mouse click <<<<<
KeyWait, LButton, D
sleep,4000
send,%AA%
;msgbox, 262144, a,AA=%aa%, 2
sleep,1000
send,{TAB}
sleep,2000
send,%BB%
;msgbox, 262144, a,BB=%bb%, 2
sleep,1000
send,{TAB}
sleep,1000
send,{ENTER}
ExitApp
not best way , I use this for GMX login
[code=autohotkey file=Script.ahk]#persistent
SetKeyDelay,25,5
Settitlematchmode,2
AA=garry12346@qq.com ; << login
BB=0123456789 ; << code
;FXA=http://www.gmx.ch/
fxa=https://mail.qq.com/ ; << URL
;SC=GMX
SC =QQ ; << see text in browser TAB
IXE=%A_programfiles%\Mozilla Firefox\firefox.exe
;IXE=%A_programfiles%\internet explorer\iexplore.exe
Run,%IXE% %FXA%,,max
WinWait,%SC%
IfWinNotActive ,%SC%,,WinActivate,%SC%
WinWaitActive,%SC%
;- wait until browser is really loaded and then click left mouse button in first login edit field QQ / Email / Mobile
;- wait until left mouse click <<<<<
KeyWait, LButton, D
sleep,4000
send,%AA%
;msgbox, 262144, a,AA=%aa%, 2
sleep,1000
send,{TAB}
sleep,2000
send,%BB%
;msgbox, 262144, a,BB=%bb%, 2
sleep,1000
send,{TAB}
sleep,1000
send,{ENTER}
ExitApp
[/code]