Search the Community
Showing results for tags 'shiftdown'.
-
Hi friends, I'm trying to send SHIFTDOWN, to keep the Shift key pressed until I close the program or releases the key. Send ( "{SHIFTDOWN}") sleep(100) $text = InputBox("Shift key down", "Shift key is down. Type something: ") $ret = Msgbox(0,"", "Press and release shift key manually and select [Ok] to continue") $text = InputBox("Shift key up", "Shift key is released manually, now type something: ") Send ( "{SHIFTDOWN}") sleep(100) $text = InputBox("Shift key down Agin", "Shift key is pressed again, now type something: ") In the above program sequence, 1. Send SHIFTDOWN from program, Works as we type in the text are in Capital letters 2. Manually presses and releases the SHIFT button. SHIFT key is released as when we type, text is in small letters only. 3. Again send SHIFTDOWN from program, but not working. When we type the letters are in small letters. If we send a SHIFTUP before sending the SHIFTDOWN again, then it is working correctly and the text appears in capital letters only. Can any one explain why this happens? Send ( "{SHIFTDOWN}") sleep(100) $text = InputBox("Shift key down", "Shift key is down. Type something: ") $ret = Msgbox(0,"", "Press and release shift key and select [Ok] to continue") $text = InputBox("Shift key up", "Shift key is released manually, now type something: ") Send ( "{SHIFTUP}") sleep(100) Send ( "{SHIFTDOWN}") sleep(100) $text = InputBox("Shift key down", "Shift key is pressed, now type something: ") Thank you.