Hello Everyone,
I am trying to write a script that contains Press Menukey for an automation in the Citrix Workspace environment.
I have been at it for a long while trying to get this to work. I have tried setting the SK_Legacy to 1 and 0 and it just absolutely will not function. However, if I press the menu key on my keyboard it works.
Thinking there may be an error in my script I have written a script that does nothing but presses the Menukey just to make sure my larger script does not have an error. This also did not work.
What I have noticed through manual user input in the Citrix environment is the menu key only opens the menu upon release of the menu key. Holding down the menu key results in no response from the program until the key is actually released. Since Macro Scheduler does not have a release menu key button is there any other work around for this.
Also note that Shift+F10 does not work in the program I'm trying to automate in either.
As always any help is greatly appreciated.
Press Menukey In Citrix Environment
Moderators: Dorian (MJT support), JRL
Re: Press Menukey In Citrix Environment
Anyone have any suggestions?
Re: Press Menukey In Citrix Environment
My first thought was I don't have Citrix to test with". So I brought up Remote Desktop and tried that. The menu key works fine if pressed manually but the Macro Scheduler function Press MenuKey does not work with Remote Desktop either.
What did work for me in RDP was to right click on the remote application window. Brings up the same menu as a MenuKey press.
What did work for me in RDP was to right click on the remote application window. Brings up the same menu as a MenuKey press.
Code: Select all
Wait>2
SetFocus>Your Citrix Window Name*
Wait>2
//Move to a location where a right click on the application
//displays the menu you desire.
MouseMove>1250,550
Wait>0.1
RClick
//press menukey
Wait>2
//Send whichever character keys are needed to navigate the menu.
//I could have put both keys in one Send> but chose not to.
Send>v
Wait>2
Send>d
Wait>1
MDL>done
Re: Press Menukey In Citrix Environment
This is what I thought I would have to do. The issue is I was trying to avoid using image recognition as it is very slow, and the menu item I need comes from an object that does not have a static position but is accessible using the down arrow key for example.
Thank you for the suggestion though.
I think for this one Citrix will defeat me and I will have to approach this automation from a less efficient method. Though not having a person do the task is still a bonus!
Thank you for the suggestion though.
I think for this one Citrix will defeat me and I will have to approach this automation from a less efficient method. Though not having a person do the task is still a bonus!
- Grovkillen
- Automation Wizard
- Posts: 1128
- Joined: Fri Aug 10, 2012 2:38 pm
- Location: Bräcke, Sweden
- Contact:
Re: Press Menukey In Citrix Environment
And it's not possible to add a new keyboard shortcut/hot key to open up the menu?
Re: Press Menukey In Citrix Environment
Unfortunately not I had explored this option also.