Jump to content

Recommended Posts

Posted

Hello, iam noob just know basic about autoit

i have been trying to mouse click on the pixel search
here is the script

While (1)
$HTB0 = PixelSearch(628, 628,735, 709,0xA7A7A7,1)
If Not (@error) Then
Do
$HTB = PixelSearch(615, 48,736, 170,0xA7A7A7,1)
If Not (@error) Then
MouseClick("left", $HTB[0], $HTB[1],1,0)
EndIf
Until (@error)
Do
$HTB1 = PixelSearch(628, 628,735, 709,0xA7A7A7,1)
If Not(@error) Then
MouseClick("left", $HTB1[0], $HTB1[1],1,0)
EndIf
Until (@error)
$Backround = PixelSearch(676, 687,678, 711,0x5FD5F0,1)
If Not (@error) Then
Send("{D down}")
Sleep (150)
Send("{D up}")
EndIf
EndIf
WEnd

my mouse just move on the pixel and not click and i dont know why help me.. sorry for bad english

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...