I used to play with coding a long time ago, and am only just getting back into it now... I've written the below code, and it works perfect on the laptop that I coded it on! I compiled the exe, transfered it along with the image folder to another machine to test and it does nothing at all! The other comp is a diff version of windows, and a diff screen resolution but I didn't think that should make a difference?
I've even tried screenshotting the images from the other computer for the script to look for, thinking that might fix it, but it hasn't made any difference!
Any advice would be massively appreciated.
Kind Regards,
Chris
Code: Select all
Label>start
Let>FIP_SCANPIXELS=ALL
WaitScreenImage>%SCRIPT_DIR%\images\2.bmp,CCOEFF
Label>clickerstart
Random>12,result
Add>result,1
FindImagePos>%SCRIPT_DIR%\images\%result%.bmp,SCREEN,0,1,X,Y,NumFound,CCOEFF
If>NumFound>0
MouseMove>X_0,Y_0
LClick
Wait>3
Endif
FindImagePos>%SCRIPT_DIR%\images\exit.bmp,SCREEN,0,1,X,Y,NumFound,CCOEFF
If>NumFound>0
MouseMove>X_0,Y_0
LClick
Goto>start
Endif
Goto>clickerstart