Hotkey or Enable Disable

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
LexusSpeed03
Posts: 1
Joined: 22 Mar 2018, 19:31

Hotkey or Enable Disable

22 Mar 2018, 19:59

Hello Guys,

I have been pulling my hair out on this one used to have a script that did it and can't find how to do it. I am wanting to bind a key to disable a section of the script or whole thing for example F4 disables it.

The script would be that when you hit F4 to enable or disable it changes the Left Mouse button to do click move etc...

Is there any example of this or best way? I have googled like crazy and everything I try doesn't work.

Thanks!
Rohwedder
Posts: 7630
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: Hotkey or Enable Disable

23 Mar 2018, 01:18

Hallo,
try:

Code: Select all

~LButton::
	SetMouseDelay, 200
	While, GetKeyState("LButton","P")
		Click
Return
F4::Hotkey, ~LButton, Toggle

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Google [Bot] and 328 guests