Hotspot toggling accelerators issues.

Posted by Ciaran on Thu 05 Aug 2010 05:58 AM — 5 posts, 17,278 views.

#0
While this isn't literally miniwindows coding, it functionally has a lot to do with my use of miniwindows and hotspots!

The goal is to have an interface where a few buttons control a qwerty x zxcvb grid of macros (like starcraft), but I have a critical issue with the function of it currently.

Explanation:
-I have a hotspot I press to toggle between accelerators.
-When I click outside of the command box the ticking cursor goes away, and my first keystroke of an accelerated key is not sent, instead this keystroke returns the ticking cursor to the command window and following accelerated keystrokes behave as they should.
-When not doing an accelerated keystroke, this problem doesn't arise for some reason, after clicking away from the command box the first stroke puts the pressed letter into the command box

So, what I'm looking for is to have some way for the first accelerated command after I click outside of the command box to be properly sent (this is fairly important to the function of my GUI!).

As an aside, I've tried the "all typing goes to command window" both ways to no avail.

Thanks!

edit: If someone wants to recreate my situation to try to find the solution, all you need to do is make an accelerated key, and click off the command box, then use that key. The problem I don't think is rooted in anything to do with miniwindows, so I hope this isn't considered posting in the wrong forum.
Amended on Thu 05 Aug 2010 06:30 AM by Ciaran
Australia Forum Administrator #1
Do you process the click on mouse-up or mouse-down?
Australia Forum Administrator #2
I can reproduce the problem, you are right it seems that the accelerator press switches focus to the command window, but doesn't seem to process the keystroke itself.
Australia Forum Administrator #3
Fixed in version 4.56.
Amended on Thu 05 Aug 2010 06:27 AM by Nick Gammon
#4
Thank you very much.

I really appreciate the awesome support you provide for this client!