Jump to content
Macro Express Forums

Two Keys At Same Time

Mr. j

Recommended Posts

Windows processes keys sequentially. When you hold the Control key down, press 3, and then release the keys, this is what is sent:

Control key Down

3 key Down

3 key Up

Control key Up

What is sent for each keystroke actually looks more like:
keybd_event (VK_CONTROL, sc, ExtendKey (bVirtKey), 0);  // Control key down

keybd_event (VK_CONTROL, sc, KEYEVENTF_KEYUP + ExtendKey (bVirtKey), 0)  // Control key up

Computers can only do one thing at a time. It just does them very fast. So it will always detect one key at a time.


Having said all that, have you tried this:

Control Key Down

  Text Type: 3

Control Key Up

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...