AutoIt Autologin

01/12/2009 18:50 arons4#1
So i am making my first autoit script so far i got

Code:
run("silkroad.exe Location")
sleep(2000)
WinActivate("Silkroad Online Launcher")
WinWaitActive("Silkroad Online Launcher")
sleep(2000)
MouseClick("left", 923, 459)
sleep(6000)
MouseClick("left", 1080, 669)
WinActivate("SRO_Client")
WinWaitActive("SRO_Client")
sleep(10000)
Send("{ENTER}")
Send("USERID")
Send("{TAB}")
Send("PASSWORD")
Send("{ENTER}")
sleep(3000)
so far it works perfectly, but i want it to keep trying to log in(i have NO-DC client)but i want it to stop trying after successfully reaching the character select screen. Can someone help me?
01/15/2009 17:41 IRever#2
Pixelsearch would do the trick.
01/15/2009 18:25 metal_snak#3
its not working for me
in hwat res does it works ?
01/16/2009 17:20 arons4#4
it works for 1680 by 1050, altho it only presses enter once, but IRever, this is my first script, can u explain to me how pixelsearch works? and how to make it stop as soon as it's logged in?