WindowAction fails to maximize Citrix windows

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
gdyvig
Automation Wizard
Posts: 447
Joined: Fri Jun 27, 2008 7:57 pm
Location: Seattle, WA

WindowAction fails to maximize Citrix windows

Post by gdyvig » Fri May 28, 2010 2:11 am

The following failed under MacroScheduler v12 and Windows XP:


WindowAction>1,Windows Internet Explorer*

Code: Select all

//visible windows
Let>WF_TYPE=2
//for Citrix key strokes
Let>SK_LEGACY=1
SetFocus>Windows Internet Explorer*
//1st param=1 means maximize window
WindowAction>1,Windows Internet Explorer*
The above code does not maximize the Windows Internet Explorer window when it is a Citrix published application. It does work for WindowAction codes 0, 2, and 3. Code 1 works for non-Citrix windows such as Windows Internet Explorer displayed without Citrix.

I can use an image based or keystroke workaround, but it would be better if WindowAction worked in this case.



Gale

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Fri May 28, 2010 8:45 am

The trouble is Citrix uses hidden windows which contain the windows you see. Citrix obfuscates the real situation and reacts differently - acting as a layer in the middle. So there may not be much we can do about this. WindowAction simply calls the Windows API functions - it's just a wrapper for existing API functions - and if Citrix won't respond as you would expect from the Windows API then ......
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

gdyvig
Automation Wizard
Posts: 447
Joined: Fri Jun 27, 2008 7:57 pm
Location: Seattle, WA

Post by gdyvig » Fri May 28, 2010 3:03 pm

Hi Marcus,

Thanks for the explanation.

It is strange that the WindowAction command is still able to minimize and restore the window. Perhaps the maximize command was not valid with the hidden window present.

If I were able to find the hidden window, wonder if it would respond to maximize requests.

Anyway, I do have other alternatives.


Thanks,

Gale

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts