Easy Script[I am a beginner looking for help]

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
nerso
Posts: 1
Joined: 15 Sep 2018, 21:48

Easy Script[I am a beginner looking for help]

15 Sep 2018, 21:56

Hi,

I am new to coding and I was wondering if somebody could help me create a script that would help a lot. Basically when I hit my z key on my keyboard I want it to house my mouse button 1 down (left click). I want it to not stop holding that button down until I hit my z key again.
Rohwedder
Posts: 7627
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: Easy Script[I am a beginner looking for help]

16 Sep 2018, 11:17

Hallo,
try:

Code: Select all

z::
SendInput,% (Z:=!Z)?"{LButton Down}":"{LButton Up}"
KeyWait, z
Return

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Google [Bot], Holarctic, jameswrightesq, Lem2001 and 419 guests