Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to mouse move? #11

Open
kyloren23 opened this issue Apr 2, 2023 · 0 comments
Open

how to mouse move? #11

kyloren23 opened this issue Apr 2, 2023 · 0 comments
Labels

Comments

@kyloren23
Copy link

kyloren23 commented Apr 2, 2023

i cant seem make it work please help

loot()
{
  pixelSearch, lootX1, lootY1, 744, 341, 836, 458, 0x6B29A5, 0, Fast RGB
  if(ErrorLevel) {
  return
} else if(!ErrorLevel) { 

Newlootx1 := lootX1 + 20
Newlooty1 := lootY1 + 40
IbSendMouseMove("{%Newlootx1%, %Newlooty1%}")     ;---------- i cant make it work
sleep, 150
IbSend("{click down}")
sleep, 30
IbSend("{click up}")
sleep, 500
return
    } else {
        sleep, 10
        return
    }
}

edit:
this seems to work if i specified my coords
IbSend("{click 1179 83 0}")

but i cant make this work
IbSend("{click %NewlootX% %NewlootY% 0}")

any ideas T_T

@Chaoses-Ib Chaoses-Ib added the AHK label Jun 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants