New here.. Can someone help me understand this script? Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
M1shanya

New here.. Can someone help me understand this script?

27 Feb 2017, 17:44

The script is as follows:

Code: Select all

LCtrl & ~LButton::
Loop
If GetKeyState("LButton") {
Sleep,6
moveAmount := (moveAmount = 2) ?6 : 0
mouseXY(moveAmount,4.4)

}
else
break

Return



mouseXY(x,y)
{
DllCall("mouse_event",int,1,int,x,int,y,uint,0,uint,0)
}
Thanks

Mod edit: added code tags.
User avatar
mviens
Posts: 43
Joined: 08 Jan 2014, 19:04

Re: New here.. Can someone help me understand this script?  Topic is solved

28 Feb 2017, 15:53

It is not a complete script. The function mouseXY() is not included, so I cannot tell you for sure what is happening. For the code that is there, here is what is does:

When the left Control key is pressed down/held and the left mouse button is clicked down/held, if moveAmount equals 2, then set moveAmount to 6 otherwise set moveAmount to 0, then call mouseXY().
Mike V.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: ht55cd3, OrangeCat, Panaku and 305 guests