07-31-2009 10:33 AM
Can LabVIEW write alt + 'x' commands to another active Windows application running on the PC? If so, are there any example vi's that are available?
Many thanks
Alan
07-31-2009 05:16 PM
Search the forum for "SendKey" or "SendInput" or even just "send keyboard".
This question gets asked a lot, and there have been several examples posted.
08-11-2009 02:57 PM
smercurio_fc
smercurio, using the Windows API user32.dll I can make my other Window application 'TOP', and then I can write keybord commands like Alt, and any of the underlined pull down menu commands to control that Window. It's great, however, after I write even one keyboard character to the other Window, and then double click on any desktop ICON, or Explorer directory, instead of opening the shortcut, or directory, the properties message box for that ICON, or directory pops up. I can right click, and choose 'Open' successfully. To exit this 'mode' all I have to do is manually press the Alt key. I've tried a lot of user32 commands to try to exit this mode with LabVIEW, but have not been successful. Have you encountered this before? Is there a command to terminate the user32.dll, or restore the double click mouse function?
Thanks, Alan
08-11-2009 03:20 PM
08-11-2009 04:32 PM
Got it, one command to press Alt, and one to release it.