imgpath = %A_ScriptDir%\new_thread.png
imgpath2 = %A_ScriptDir%\post.png
rotation = 1
ifwinexist, ahk_exe chrome.exe
{
winactivate
}
winwaitactive, ahk_exe chrome.exe
loop (100)
{
run,
http://www.ddovault.com/cgi-bin/yabb2/YaBB.pl?board=general sleep, 1000
while (1=1)
{
ImageSearch, mx, my, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, *60 %imgpath%
if ErrorLevel=0
{
click %mx%, %my%
break
}
if errorlevel=1
{
sleep, 1000
}
}
sleep, 1000
send, Macro Xp Question %rotation% of 100
sleep, 500
Send, {tab}
sleep, 500
send, Gee golly whiz I macrod teh xpz
sleep, 1000
while (1=1)
{
ImageSearch, mx, my, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, *60 %imgpath2%
if ErrorLevel=0
{
click %mx%, %my%
break
}
if errorlevel=1
{
sleep, 1000
}
}
sleep, 1000
rotation := (rotation + 1)
}
Try that instead
Hum maybe posting that was a bad idea.. oh well viva la anarchy!