Please help me

Ask gaming related questions
geps
Posts: 8
Joined: 19 Sep 2020, 11:36

Please help me

Post by geps » 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: 48
Joined: 24 Dec 2019, 12:02

Re: Please help me

Post by ositoMalvado » 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

geps
Posts: 8
Joined: 19 Sep 2020, 11:36

Re: Please help me

Post by geps » 20 Sep 2020, 08:27

do i write my code instead of "actions"?

User avatar
Yakshongas
Posts: 591
Joined: 21 Jan 2020, 08:41
Facebook: Yakshongas

Re: Please help me

Post by Yakshongas » 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 🕹

Post Reply

Return to “Gaming”