06-14-2006 03:05 PM
06-14-2006 03:42 PM
Exactly what you are trying to do will determine the appropriate way to do this.
Are you trying to control another application?
Are you trying to send that to a control in your own CVI application?
If the latter, you can either use the FakeKeystroke() call to send the key code to the active window or simply call the control callback with the appropriate panel, control, event and event data parameters set to what they need to be. I do the second method all the time in my programs, usually just sending an EVENT_COMMIT so I don't have to deal with processing other messages.
If you want to control another application, that is a lot more difficult. You will need to enumerate the application windows on the system, find the one you want to control and then send the appropriate keystrokes to the application using SDK functions.
06-14-2006 04:25 PM
06-14-2006 04:33 PM