Sendkeys Ctrl+Alt doesn't work

Danielf

Registered User.
Local time
Today, 05:57
Joined
Feb 21, 2000
Messages
103
Hi,

I have tried the following code:

SendKeys "%(^U)"

The purpose is to stimulate CTRL+ALT+U (all 3 keystrokes should be hold down together) but it doesn't work.

What 's wrong?

Daniel
 
What does Ctrl + Alt + U do?
 
Shouldnt that be

SendKeys "%^U"

??

I don't think because
To specify that any combination of SHIFT, CTRL, and ALT should be held down while several other keys are pressed, enclose the code for those keys in parentheses
 
You could always use the Shell function to start the program instead of SendKeys which is not reliable.
 
I don't think because
To specify that any combination of SHIFT, CTRL, and ALT should be held down while several other keys are pressed, enclose the code for those keys in parentheses

I think yes because

For example, to specify to hold down SHIFT while E and C are pressed, use "+(EC)". To specify to hold down SHIFT while E is pressed, followed by C without SHIFT, use "+EC".

So to keep shift pressed for both E and C you use the () ... but just to press Shift it is +E
As I see it CRTL ALT and SHIFT keep pressed untill a "normal" key is pressed
 
I think yes because



So to keep shift pressed for both E and C you use the () ... but just to press Shift it is +E
As I see it CRTL ALT and SHIFT keep pressed untill a "normal" key is pressed

SendKeys "%^U" doesn't work
 
You could always use the Shell function to start the program instead of SendKeys which is not reliable.

I didn't want to use the Shell function because with the Shortcut CTRL+ALT+U , I can directly launch a macro and this is impossible with the Shell function.

Daniel
 

Users who are viewing this thread

Back
Top Bottom