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

send make the key being considered as released (unlike AutoHotkey) #95

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

Comments

@Magikh42
Copy link

Hello, I have this script that works in Windows but not in AHK_X11:

	*Space::
		send, {Space}
		send, {LAlt down}
		KeyWait, Space
		send, {LAlt up}
		return

It should make pressing Space send the Space character then Alt is considered down until Space is released

@Magikh42
Copy link
Author

Magikh42 commented Dec 13, 2024

Using this script

	*Space::
		send, {Space}
		echo down
		send, {LAlt down}
		KeyWait, Space
		echo up

Pressing alt (without releasing) print both down and up to the terminal where ahk was launched
Releasing does not print

@Magikh42
Copy link
Author

Magikh42 commented Dec 13, 2024

If I replace *Space by a it works unless the key sent is also a so it seems KeySend makes the key tp be considered as released (this is not the case on AutoHotkey)

@Magikh42
Copy link
Author

Workaround:

*Space::
	send, {Space}
	send, {Space down}
	echo down
	send, {LAlt down}
	KeyWait, Space
	echo up

I leave the issue open as it is not behaving like AutoHotkey
I don't know if it is relevant but I'm on EndeavourOS and my desktop environment is Cinnamon

@Magikh42 Magikh42 changed the title Can't remap to modifiers (Space to Alt) send make the key being considered as released (unlike AutoHotkey) Dec 13, 2024
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