VB .NET Get Text From Citrix App

I want to be able to get text from a textbox in a Citrix Application.  Is this possible? I have used Winspector Spy in the past and was able to do this from local applications.  I'm not sure how to approach this with Citrix Applications everyting comes up as a transparent windows client.  
LVL 16
disruptAsked:
Who is Participating?
 
AcceleraSolutionsCommented:
Your VB.NET Application will need to be running inside of the Citrix Session and not from the local computer.  If you install the Winspector SPY inside of citrix and lauch it within your session (Provided your sessions are on the same server) it should be able to see the windows.
0
 
disruptAuthor Commented:
Thank you is there an alternative solution as I won't be able to run it within the Citrix session.
0
 
disruptAuthor Commented:
I'm open to exploring other solutions at this point even with a diff prog language
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
AcceleraSolutionsCommented:
so although the window appears to be there, it is actually running on a server and not the users computer.  The user is just seeing what is essentially a screenshot of the application.  I don't believe you are going be able to see that window.  ICA does basic encryption and therefore you can't even read the actual contents of the packets.  Sorry.
0
 
bchoorCommented:
since Citrix client, is only a presentation layer - i.e. a video feed of some sorts - the client, running on the workstation, has no concept of controls/windows. There's no way to hook into the host application, since the workstation is essentially getting a stream of pictures from the citrix server. Whenever a mouse event or keyboard event occurs, the events are sent to the Citrix server, the server then computes the screen changes, and sends the diff back to the client, which in turns updates the relevant portions of the screen to reflect the prior input.

the only alternative, I can think of, would be to programatically take a screenshot of that area of the screen containing the textbox. Run an OCR on the resulting image containing the results of the textbox.

0
 
bchoorCommented:
in case you consider the OCR route, a free opensource .NET friendly library can be found here http://www.pixel-technology.com/freeware/tessnet2/ 

I'm sure there are other alternatives. Depending on the project you are working - you might also looking at those with an initial fee and no royalties.
0
 
disruptAuthor Commented:
OCR was my first instinct might have to go with that.  Thank you for all your suggestions much appreciated !!!!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.