Disable a specific key when macro is running.

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
nedjeljkadana
Posts: 1
Joined: 15 Feb 2019, 12:52

Disable a specific key when macro is running.

15 Feb 2019, 13:01

Hello, I am having a strange issue with a script of mine. The script is causing a key to be spammed for no reason, I am going to chalk it up to a possible bug however I need help with a solution. I will display my basic script below. What I would like to know is how would I disable a specific key only while a macro is running?

Code: Select all

#UseHook
#NoTrayIcon

;Mystery macro 1.
Pause::
IfWinActive, Game
{
	Send, {Space}
	Return
}
else
	Return

;Mystery macro 2.
!Pause::
IfWinActive, Game
{
	Send, {Space}
	Return
}
else
	Return
	
;Replace dollar sign with pound sign.
+4::£
User avatar
rommmcek
Posts: 1475
Joined: 15 Aug 2014, 15:18

Re: Disable a specific key when macro is running.

18 Feb 2019, 07:36

I think your Q is wage. It's probably why nobody answers yet.
The script is working! When window "Game" is active it sends Space when pressing Pause or Alt+Pause.
Shift+4 always sends £.

Can you specify which key would you like to disable when running (which) macro?

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: ReyAHK and 274 guests