:handsdown:
Hmm iI did what u said and its not working right. instead of dropping ores it moves off my screen and down on my task bar clicking. on the bottom left corner.Quote:
Zune@
it should both work in 800x600 and 1024x768 mode
if u are running the script, make sure u drag the BMPs to C:\ folder
and make sure u need to activate the client to top-most and open bag
try this:
FileInstall, C:\image1.bmp, C:\image1.bmp, 1
FileInstall, C:\image2.bmp, C:\image2.bmp, 1
FileInstall, C:\image3.bmp, C:\image3.bmp, 1
FileInstall, C:\image4.bmp, C:\image4.bmp, 1
msgbox, Checks every 1 min`nCtrl+Q to pause
WinActivate, [C
WinGetActiveStats, Title, Width, Height, X, Y
loop
{
sleep 60000
WinActivate, [C
ImageSearch, FoundX, FoundY, 300 ,20, %Width%, %Height%, *5 C:\image1.bmp
if ErrorLevel = 0
{
click %FoundX%,%FoundX%
sleep 1000
click 110, 300
sleep 1000
}
ImageSearch, FoundX, FoundY, 300 ,20, %Width%, %Height%, *5 C:\image2.bmp
if ErrorLevel = 0
{
click %FoundX%,%FoundX%
sleep 1000
click 110, 300
sleep 1000
}
ImageSearch, FoundX, FoundY, 300 ,20, %Width%,%Height%, *5 C:\image3.bmp
if ErrorLevel = 0
{
click %FoundX%,%FoundX%
sleep 1000
click 110, 300
sleep 1000
}
ImageSearch, FoundX, FoundY, 300 ,20, %Width%,%Height%, *5 C:\image4.bmp
if ErrorLevel = 0
{
click %FoundX%,%FoundX%
sleep 1000
click 110, 300
sleep 1000
}
}
^q::pause
i tired to use it in AutoIt. but i get an error saying :Quote:
Zune:
try this update script:
Code:FileInstall, C:\image1.bmp, C:\image1.bmp, 1 FileInstall, C:\image2.bmp, C:\image2.bmp, 1 FileInstall, C:\image3.bmp, C:\image3.bmp, 1 FileInstall, C:\image4.bmp, C:\image4.bmp, 1 msgbox, Checks every 1 min`nCtrl+Q to pause WinActivate, [C WinGetActiveStats, Title, Width, Height, X, Y loop { sleep 60000 WinActivate, [C ImageSearch, FoundX, FoundY, 300 ,20, %Width%, %Height%, *5 C:\image1.bmp if ErrorLevel = 0 { click %FoundX%,%FoundX% sleep 1000 click 110, 300 sleep 1000 } ImageSearch, FoundX, FoundY, 300 ,20, %Width%, %Height%, *5 C:\image2.bmp if ErrorLevel = 0 { click %FoundX%,%FoundX% sleep 1000 click 110, 300 sleep 1000 } ImageSearch, FoundX, FoundY, 300 ,20, %Width%,%Height%, *5 C:\image3.bmp if ErrorLevel = 0 { click %FoundX%,%FoundX% sleep 1000 click 110, 300 sleep 1000 } ImageSearch, FoundX, FoundY, 300 ,20, %Width%,%Height%, *5 C:\image4.bmp if ErrorLevel = 0 { click %FoundX%,%FoundX% sleep 1000 click 110, 300 sleep 1000 } } ^q::pause
Yes there's 4 images in my C:\ i event made copies and put them in the same folder as the script. It clicks, but clicks the wrong thing. It goes to my taskbar and clicks on the first window that's there. I been testing it on qonquer does that matter?Quote:
Zune:
nope, shouldnt be a problem
go check ur C:\
see if there are 4 images there
actually, what exactly is going on
not clicking? clicking wrong thing?
loop, 39
{
Sleep, 1000 ; Wait 1 seconds
Click 540, 383; Click CoachLi
Sleep, 300 ; Wait 0.3 seconds
Click 540, 383; Click CoachLi
Sleep, 2000 ; Wait 2 seconds
Click 434, 222; Click at 1st Dialog
Sleep, 1200 ; Wait 1.2 seconds
Click 434, 222; Click at 2nd Dialog
Sleep, 1200 ; Wait 1.2 seconds
Click 434, 222; Click at 3rd Dialog
Sleep, 1200 ; Wait 1.2 seconds
Click 931, 159; Click at Letter(1st slot)
Sleep, 500 ; Wait 0.5 seconds
Click 623, 185; Drop the Letter
Sleep, 500 ; Wait 0.5 seconds
Click 689, 487; Confirm to drop the letter
Sleep, 200 ; Wait 0.2 seconds
Click 631, 245; Just click somewhere
}
loop
{
ImageSearch, FoundX, FoundY, 953 ,140, 994, 181, *5 C:\ore1.bmp
if ErrorLevel = 0
MsgBox, Found
}