I am trying to Capture the name of an open file in Citrix. but I think the same applies to Remote Desktop.
In a normal seriano, I get it from the window title as I know the application name and the file name follows the application name.
So I thought of using the image library to locate the position of the Window Title, capture that and OCR the title to get the file name; however, screen resolution is no way near good enough for this.
So my second thought was again to use the image library and locate the file button, click on it and then save as and capture the file name that way; howver, the user has the option of using auto naming so you cannot change it or highlight it.
Any other ideas on how it could be done?
Capture Open - Active - Filename in Citrix
Moderators: JRL, Dorian (MJT support)
Keith,
I don't have Citrix to try but using Remote Desktop, if I use your first mentioned method and compile the following script, then put the executable on the remote computer, I can run this on the remote computer and capture the window name and location to the clipboard.
Hope this helps,
Dick
I don't have Citrix to try but using Remote Desktop, if I use your first mentioned method and compile the following script, then put the executable on the remote computer, I can run this on the remote computer and capture the window name and location to the clipboard.
Code: Select all
//VK44 is the print screen key
WaitKeyDown>VK44
GetActiveWindow>name,wX,wY
Put>%name% %wx% %wY%
Dick
Looks like that would work
JRL,
I never thought of the clipboard bit, thanks for the idea. The difficulty is that I will not be able to install anything on the host computer though. What it is in a nutshell is that some companys are going with hosted services to eliminate having an IT dept. The downside is transferring the data in between them and when I was speaking with one of my clients he went to check out their site and it was down. Naturally he dosn't use the service so he thought of all the lost business his competetors were losing.
I never thought of the clipboard bit, thanks for the idea. The difficulty is that I will not be able to install anything on the host computer though. What it is in a nutshell is that some companys are going with hosted services to eliminate having an IT dept. The downside is transferring the data in between them and when I was speaking with one of my clients he went to check out their site and it was down. Naturally he dosn't use the service so he thought of all the lost business his competetors were losing.
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
If you cannot install anything on the server then you will be more limited in what can be done. Realise that the client OS knows nothing about the remote OS. All that is passed between client and remote is keystrokes, mouse events and screen images. So Macro Scheduler on the client OS cannot see window titles on the remote OS. It cannot access window objects. In regards to knowing about windows and window objects you will be automating blindly. The best way forward would be to work graphically using the Image Recognition Library. That way you can graphically recognise screens and graphically wait for screens to change. In regards to extracting data you should still be able to use the clipboard as it is possible to synchronise clipboards between the client and remote OSs. With Citrix and Windows Terminal Services it is possible to share the clipboard. So you can send keystrokes into the remote session to capture the clipboard and have it synced to the client clipboard which Macro Scheduler can then access with GetClipboard.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?