Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VB SendKey

Status
Not open for further replies.

M626

Programmer
Mar 13, 2002
299
I am trying to send keystrokes to an application running on Citrix using VB6. I am able to launch the Citrix window, but none of the keys I am sending are doinganything. When I do it with any other application it works fine. Has anyone encountered this before, is there a way around it? I am using AppActivate to launch the window and set focus on it, then I am using SendKeys to send the keys to the app running on Citrix. Any help is very, very much appreciated. Thanks in advance.
 
I'm looking at doing exactly the same thing. Have you had any luck with sending keys to a citrix app ???


Mike....
 
Use the AppActivate function to set focus to the citrix window, then use the keybd_event api to send characters across the session. SendKeys will not work with citrix.
 
Use the AppActivate function to set focus to the citrix window, then use the keybd_event api to send keystrokes across the session. SendKeys will not work with citrix.
 
Pyroputz, Tried your suggestion and doesn't seem to work. Appactivate works to get the window up but the keybd_event api doesn't. Do you have some sample code that works ???


Appreciate your help.

Mike
 
Has anyone sorted this out yet? I want to do the same thing and cannot find the solution.

Thanks ~ lkh
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top