Easy Script[I am a beginner looking for help]

Get help with using AutoHotkey 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: 1280
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] [Download] GeSHi © Codebox Plus

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

Return to “Ask For Help”

Who is online

Users browsing this forum: Google [Bot], Zumwalt and 72 guests