Using a modifier as a normal key and then as modifier Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Five One
Posts: 6
Joined: 17 Jun 2019, 09:50

Using a modifier as a normal key and then as modifier

17 Jun 2019, 13:03

Novice on AHK here. Here are the lines:

^Alt:: Send, b

^!PGDN:: Send, r

The "^!" part of the second line gets send continuously before PGDN is pressed, and I get something like "bbbr", so I have tryed:

Alt & AppsKey: return

^!PGDN:: Send, r

^Alt Up:: Send, b

Now ^!PGN:: works normaly, but when ^Alt Up is released, it fires, so I get "rb". To clarify, I want just r, or just b, not a bundle. Also, I plan to use other combinations of the type, with one line consisting of two modifiers and the other consisting of the same two modifiers and a normal key, so the solution cannot prevent further assemblances such as this one.
Rohwedder
Posts: 7616
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: Using a modifier as a normal key and then as modifier  Topic is solved

18 Jun 2019, 01:10

Hallo,
try:

Code: Select all

~^Alt Up::
	IF A_PriorHotkey <> ^!PgDn
		Send, b
Return
^!PgDn::Send, r
But!
Using a modifier as a normal key and then as modifier
is shit!
Use modifier keys, mouse buttons and wheel only in combination with other keys as hotkeys.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: OrangeCat and 131 guests