I did some Googling and I found some help but I simply cannot get it to work, this is what I am testing with
Code: Select all
CoordMode Mouse, Screen
0::
if KeyPressed ; key repeat suppression
return
KeyPressed := 1
start := 0_Tickcount
SetTimer, isHeld, -1900
return
0 up::
SetTimer, isHeld, Off
KeyPressed := 0
if (0_Tickcount - start < 400)
send 0
return
isHeld(){
send 4
}
As for the mouse movements this is what I am using now when I want to transfer someone (the transfer button moves on the screen so I have to click in 3 different spots to ensure I hit the button),
Code: Select all
MouseGetPos x, y
MouseMove 2051, -55
Click
MouseMove 2051, -100
Click
MouseMove 2051, -135
Click
MouseMove % x, % y