1. I was using image recognition for my program, until I noticed that It was non-stop clicking in the same spot for some reason. I decided to just go the route of getpixelcolor>... How do I get the Pixel color of an item if I do not know where it is? Getpixelcolor>then is it %x%,%y%,(pixel),(label)? is that how it works? So, if this pixel color exists, then go to Label>SB_F_BM
2. You guys helped me with moving the mouse "stealthy", this works, but I think it needs some help which I do not know how to aide. For example, lets say the mouse starts in the position of 100,100.. it moves to where it should, then back to 100,100 right away (this is exactly what I want). However, if I try to move the mouse while the script is running it ALWAYS shoots it back to the 100,100 spot like someone is fighting me with the mouse. I want the mouse to be completely free when this program is running, not shoot back to 100,100.. here is the script below..
Code: Select all
Label>SB_F_BM
SetFocus>in Ali Baba Slots*
GetCursorPos>CurX,CurY
GetScreenRes>sX,xY
ScreenCapture>0,0,sX,sY,d:\screen.bmp
FindImagePos>C:\Windows\System32\nlhtml\bm.bmp,SCREEN,20,1,XPos,YPos,NumFound
Wait>1
if>imgs>0
Mou>XPos_0,YPos_0
Lcl
Mou>CurX,CurY
Endif
goto>SB_F_BM