Sending keystrokes to an application running on Citrix ICA Client

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm trying to enter data into a database application running under Citrix ICA
Client. I'm doing it from a VBA macro running under Microsoft Excel 2000
(although it may need to be backwardly compatible with '97).

I'm doing this by using appactivate to activate the database application,
then sendkeys to send strings of data and tab characters to fill up a series
of data fields.

Now, this works if Excel is running under Citrix, but if Excel is running
under regular windows, it can't send keystrokes to Citrix, even if a Citrix
"Parent" window has the focus. I find this odd, because the function
supposedly acts as if you were typing the keys on the keyboard, and if I
enter the keystrokes on the keyboard under the same circumstances the data
gets entered fine.

Is there some kind of lower level API call that I can use to send keystrokes
from regular Windows 98 or 2000 "through" to an application running on
Citrix?

If anyone can help I'd be most grateful!
 
Tim the only way I know of doing it is using another application called QARUN
from compuware. Sorry
 
Take a look at the Beta DLL for AutoIt and incorporate this in your
application. Not perfect, but it is a lot more 'managed' than using
SendKeys. Not sure if it will work in your case. AutoIt has got me out of a
lot of problems lately.

http://www.hiddensoft.com/AutoIt/

Best wishes


Paul Bromley
 
Back
Top