HELP: Single Macro Ignoring Keyboard Keys Topic is solved

Ask gaming related questions (AHK v1.1 and older)
-hendrixx

HELP: Single Macro Ignoring Keyboard Keys  Topic is solved

18 Jan 2017, 06:47

German & English version:

Hello,
I downloaded AHK to use my mousebuttons XButton2/XButton1 and wrote a
script like this:

XButton2::
Send,output
Return

my problem is that it won't work if I press any key at the same time...
Is there a possibility to say like:

"
XButton2::
Send, output
+ ignore (other) keys pressed
Return
"

Hallo,
ich habe mir AHK runtergeladen, um die Tasten auf meiner Maus
zu belegen (XButton2/XButton1) und habe ein sehr minimalistisches
Skript geschrieben, um die Taste zu belegen...

Mein Problem ist, dass das Skript nicht funktioniert, wenn eine andere
Taste gleichzeitig verwendet wird:
Gibt es die Möglichkeit, dem Skript zu sagen
"
XButton2::
Send, output

+Ignoriere andere gedrückte Tasten
Return
"
Wäre super nett, denke die Frage ist leicht zu beantworten, habe es aber selber nicht gefunden
User avatar
Nextron
Posts: 1391
Joined: 01 Oct 2013, 08:23
Location: Netherlands OS: Win10 AHK: Unicode x32

Re: HELP: Single Macro Ignoring Keyboard Keys

18 Jan 2017, 06:59

Modifier keys like Ctrl/Alt? Prepend your hotkey with a * so: *XButton2::
User avatar
eventhorizon
Posts: 158
Joined: 27 Oct 2016, 14:22

Re: HELP: Single Macro Ignoring Keyboard Keys

18 Jan 2017, 12:06

See if this works for you...

Code: Select all

XButton2::
	Suspend, On
	Send, output
	Suspend, Off
	Return
You know, of course, that the send will send the word "output" not what the variable output contains, right?
A computer lets you make more mistakes faster than any invention in human history – with the possible exceptions of handguns and tequila.
Guest

Re: HELP: Single Macro Ignoring Keyboard Keys

19 Jan 2017, 06:18

Didn't work...

I want the Mousebutton to send "9" if I press it,
it worked well with:

XButton2::
Send, 9
Return

BUT, just aslong as I don't press any key...

I want to use this Macro even if I for example press space or hold space...

Please describe your solution, if somebody has one...


Sorry for incorrect english, I prefer Making mistakes to don't try anything... THANKS

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 72 guests