Sign in to follow this  
Followers 0
Aktonius

How can i control shortcut messages trough message queue?

1 post in this topic

#1 ·  Posted (edited)

I can see how this is done for simple gui control messages with wm_command, but how could i do this for shortcut message that goes in to queue?

What i am trying to do is throw the message of shortcut away if shortcut isnt finished. For example

$shortcutended = 0

> shortcut code here<

$shortcut ended = 1

If i am not mistaken, once you press a keyboard button to send shortcut it goes to message queue so i could do something in the proc function for messages...

If $shortcutended = 0 then ignore the shortcut message...

Ultimately i am trying to avoid delayed shortcuts so for example if shortcut processing becomes slow and user moves the mouse then shortcut could wrongly be applied to another window...

Edited by Aktonius

Share this post


Link to post
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0