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

[Improvement request] Hide when pressing space bar and backspace #8

Open
ricprd opened this issue Aug 4, 2022 · 3 comments
Open

[Improvement request] Hide when pressing space bar and backspace #8

ricprd opened this issue Aug 4, 2022 · 3 comments

Comments

@ricprd
Copy link

ricprd commented Aug 4, 2022

As it is common when editing text files, it would be great if this utility could also hide the cursor when pressing the space bar and backspace. Maybe apply this to the Del key as well.

Thanks for this great utility!

@justindemuro
Copy link

On line 19 and 20 you see the following:

19: ; Register the keys you want to listen on
20: keys = ``1234567890-=qwertyuiop[]\asdfghjkl;'zxcvbnm,./

I suspect you can add {Space} and {Backspace} to the keys list as so:

19: ; Register the keys you want to listen on
20: keys = ``1234567890-=qwertyuiop[]\asdfghjkl;'zxcvbnm,./{Space}{Backspace}

This is per AHK documentation in 'keystrokes, sending' index item.
See https://www.autohotkey.com/docs/commands/Send.htm
Let me know if it works out.

@ricprd
Copy link
Author

ricprd commented Aug 23, 2022

Sadly that does not work, as the keys variable is parsed so adding {space} would simply make it turn into {, s, p, a, c, e, } for the purpose of detection. I'm new to AutoHotkey so I can't figure out how to tweak it to listen to keys instead of letters.

@nochkin
Copy link

nochkin commented Aug 9, 2023

@ricprd
I knows it's been almost a year, but I just stumbled upon it myself.
I need to add space, delete and backspace as well. I have a fork created supporting those features:
https://github.com/nochkin/Windows-Cursor-Hider
Not sure if it's worth doing PR as I see there is another one still pending.

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

3 participants