Hello,
I need to send the command Right Ctrl + left Ctrl to launch a dialog box in my application.
I tried this
Press Ctrl
Press Ctrl
Release Ctrl
But this does not launch the dialog box. Please help.
thanks.
How to send Ctrl + Ctrl command to my application?
Moderators: Dorian (MJT support), JRL
Did you try?
Or some other combination of press and release
See help for press
Code: Select all
Press RCtrl
Press LCtrl
Release RCtrl
Release LCtrl
See help for press
Try this:
Code: Select all
//Key codes at <a>http://www.mjtnet.com/vkcodes.htm</a>
Let>VK_LCONTROL=162
Let>VK_RCONTROL=163
Let>ExtendedKey=1
Let>KeyUp=2
//Press right control Key
LibFunc>user32.dll,keybd_event,r,VK_RCONTROL,0,ExtendedKey,0
Wait>0.5
//Press left control Key
LibFunc>user32.dll,keybd_event,r,VK_LCONTROL,0,ExtendedKey,0
//Now release Control Keys
Let>FLAGS={%ExtendedKey% OR %KeyUp%}
LibFunc>user32.dll,keybd_event,r,VK_LCONTROL,0,FLAGS,0