Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't declare remaps in IfWinActive #96

Open
Magikh42 opened this issue Dec 13, 2024 · 0 comments
Open

Can't declare remaps in IfWinActive #96

Magikh42 opened this issue Dec 13, 2024 · 0 comments

Comments

@Magikh42
Copy link

Magikh42 commented Dec 13, 2024

On AutoHotkey you can declare remap in IfWinActive and the remap will occur only on windows that match the condition

Example: Remapping LAlt to F11 in World of Warcraft

AutoHotkey:

IfWinActive, World of Warcraft
{
*~LAlt::
	send, {F12 down}
	KeyWait, LAlt
	send, {F12 up}
	return
}

ahk_x11:

*~LAlt::
	IfWinActive, World of Warcraft
	{
		send, {F12 down}
		KeyWait, LAlt
		send, {F12 up}
		return
	}

That means that you have to repeat the condition for each keybind related to the window
IfWinActive is a useful feature for example to avoid game remaps to aplpy when "alt-tabbed" on an other window

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant