Please help me

Ask gaming related questions (AHK v1.1 and older)
geps
Posts: 8
Joined: 19 Sep 2020, 11:36

Please help me

19 Sep 2020, 11:42

Hey i want to make a code like when i hold left click it makes my command and when i release it it stops.Please help
User avatar
ositoMalvado
Posts: 183
Joined: 24 Dec 2019, 12:02
Contact:

Re: Please help me

19 Sep 2020, 12:14

Code: Select all

LButton::
;Actions to do when LButton is pressed
return

LButton up::
;Actions to do when LButton is released
return
My WEB some useful stuff
geps
Posts: 8
Joined: 19 Sep 2020, 11:36

Re: Please help me

20 Sep 2020, 08:27

do i write my code instead of "actions"?
User avatar
Yakshongas
Posts: 590
Joined: 21 Jan 2020, 08:41

Re: Please help me

20 Sep 2020, 17:23

Code: Select all

LButton::
While, GetKeyState(A_ThisHotkey, "P")
{
    ;Commands to execute
}
Return
Please mark your topics as solved if you don't need any further help. ✅

Need a little more help? Discord : Yakshongas#9893 🕹

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 18 guests