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

Alt + Number works only once #21

Open
damon-kronski opened this issue Oct 16, 2014 · 2 comments
Open

Alt + Number works only once #21

damon-kronski opened this issue Oct 16, 2014 · 2 comments

Comments

@damon-kronski
Copy link

damon-kronski commented Oct 16, 2014

Hello there

I found a really small "bug":
If you're on Desktop 1 and press Alt + 2 you switch but if you release only the 2 and press the 1 again it won't switch. It doesn't really interfere the work but I thought I say what I regognized.

And thanks guys!! You've done greate work!

Regards
Damon


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@octalmage
Copy link
Owner

Hey Damon!

Thanks for the report. This may be a limitation of AutoHotkey but I'll look into it. I feel like it should work.

@MPagel
Copy link

MPagel commented Oct 18, 2014

My guess (without knowing much about the guts of either ahk or mDesktop) is this is a limitation of the level of key rollover of the keyboard itself. Basically, when a key is pressed in the typical mode, it sends a "make" code. When a key is released it sends a "break" code. If the maximum number of registered simultaneous keypresses is already registered, it doesn't remember which keys have been "made" and sometimes fails to send a break if a key is released (or only sends a partial break, as control and alt are actually sometimes registered as two keypresses EACH). Some keyboards have overall low key rollover, but build in special support for things like control-alt-delete and shift-FN-F1. "Gaming" keyboards often give you 4-5 key rollover for W A S D, but just 1-2 keys otherwise.

I ran into this issue when making an custom assembly-level keyboard logger for an application where I was measuring the duration (and frequency) that each key was held down. On my keyboard I could register up to 6 simultaneous keys. On my client's laptop it was only 2-3 keys. So, she had to buy an external keyboard to make it work, as she often needed 4 keys pressed at once.

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