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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SendKeys does not work??

Status
Not open for further replies.

alfredp77

Programmer
Dec 2, 2002
46
SG
Hi all...

I write a simple program to simulate keystrokes to another application. Basically I use AppActivate and SendKeys, so it is something like this:

'make the app active
AppActivate(strWindowTitle)
SendKeys(strKeys)

It works fine for standard windows applications (Notepad, Excel, Word.. you name it). But when it comes to a program that is being run from Citrix Program Neighborhood, SendKeys fail to send the keystrokes (AppActivate still succeed in bringing the window on top).

I have tried using keybd_event and even SendInput. But it still does not work.

Anyone knows what might be the problem? I'm running out of ideas ... :(

Thanks.
 
Can you get your app onto the Citrix server, so it is 'local' to the App you want to Sendkeys to?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top