ArxBzFhblxphS Posted December 18, 2008 Posted December 18, 2008 (edited) Edited August 9, 2009 by Thanubis
ChangMinYang Posted December 18, 2008 Posted December 18, 2008 I trying to write a script that uses the WinMinimizeAll() and WinMinimizeAllUndo() together on an alternating basis. Running the script the first time should minimize all windows, running it a second time will undo the minimize. I know I need an If... Then statement, but I have no idea what my If condition should be. I know that the WinMinimizeAllUndo() command won't work unless WinMinimizeAll() is used first, so how does AutoIt/Windows tell it was used before the Undo command is used? Like this; Local $prevRun = 0 $prevRun = [b]WinMinimizeAll()[/b] ;Some others ... If $prevRun Then [b]WinMinimizeAllUndo()[/b] If NOT @Error Then $prevRun = 0 EndIf EndIf
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now