Forum Discussion

manojgovikari's avatar
manojgovikari
Contributor
13 years ago

How to Send "Right Alt" key using shell object.

Hi,

As per our requirement we need to press Right Alt key while script is running.

We are using code as below.

Set objshell = CreateObject("WScript.Shell")

objshell.sendkeys "RALT"



the above code is not working. we also tried with "RAlt", "[RALT]", "Right Alt", "RAltGr"... but none of them worked.



Please let me know the correct key for select the right alt key button on keyboard.



Thanks,

12 Replies