MaximizeAllWindows

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
Liberty
Pro Scripter
Posts: 56
Joined: Wed Jun 06, 2007 11:56 am
Location: Sweden

MaximizeAllWindows

Post by Liberty » Mon Oct 08, 2012 5:27 pm

I have used this function a lot without any problem.

Finally in a new macro which does not handle any windows , just creates and handles some files, I get no result from this function.

The logfile shows no problem:
12-10-08 19:18:35:766 - END: Remark>Close the progam
12-10-08 19:18:35:766 - START: Gosub>MaximizeAllWindows
12-10-08 19:18:35:766 - END: Gosub>MaximizeAllWindows
12-10-08 19:18:35:766 - START: Press LWinkey
12-10-08 19:18:35:798 - END: Press LWinkey
12-10-08 19:18:35:798 - START: Press Shift
12-10-08 19:18:35:829 - END: Press Shift
12-10-08 19:18:35:829 - START: Send>m
12-10-08 19:18:35:891 - END: Send>m
12-10-08 19:18:35:891 - START: Wait>1
12-10-08 19:18:36:891 - END: Wait>1
12-10-08 19:18:36:891 - START: Release Shift
12-10-08 19:18:36:891 - END: Release Shift
12-10-08 19:18:36:891 - START: Release LWinkey
12-10-08 19:18:36:891 - END: Release LWinkey
12-10-08 19:18:36:891 - START: END>MaximizeAllWindows
12-10-08 19:18:36:891 - END: END>MaximizeAllWindows

No windows at all show up after this (I use Minimize at the beginning)

I am grateful for a reply
Thanks.

User avatar
JRL
Automation Wizard
Posts: 3532
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Post by JRL » Mon Oct 08, 2012 6:38 pm

Code: Select all

Press Shift
Press LWinkey
send>m
Release LWinkey
Release shift
This works for me. Have you tried reversing the order of the press LWinkey and Press Shift? Is there possibly a stray press LWinKey, press shift, release LWinKey or release shift somewhere in your script?

Liberty
Pro Scripter
Posts: 56
Joined: Wed Jun 06, 2007 11:56 am
Location: Sweden

Post by Liberty » Tue Oct 09, 2012 7:14 pm

The code I wrote works for me in many many macros. Just here it does not. Therefore my question - The preceding Minimize works.

I tried now to some alterations. When I added an extra MinimizeAllWindows just before the MaximizeAllWindows the MaximizeAllWindows worked. Strange.

I repeat that this macro does not work with any windows itsself.

Thank you.

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