Lakes Posted April 18, 2006 Share Posted April 18, 2006 WinMinimizeAll ( ) only works on the Main Monitor, if you have a MultiMonitor System. (Should this be a Bug report?) How would I minimize all visable windows? Thanks! 2015 - Still no flying cars, instead blankets with sleeves. Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted April 18, 2006 Moderators Share Posted April 18, 2006 (edited) WinMinimizeAll ( ) only works on the Main Monitor, if you have a MultiMonitor System. (Should this be a Bug report?) How would I minimize all visable windows? Thanks!I don't have multiple monitors, so no way to test really, this is not a pretty work around but may workFunc _MiniMizeAll() WinMinimizeAll() $a_WinList = WinList() $a_StoreWin = '' For $i_count = 1 To $a_WinList[0][0] If $a_WinList[$i_count][0] <> '' And BitAND(WinGetState($a_WinList[$i_count][1]), 2) Then _ WinSetState($a_WinList[$i_count][1], '', @SW_MINIMIZE) Next EndFuncI personally don't like the way it lags between minimizing. I tried to use the DeskTop.scf but couldn't get it to run right. Edit: Typo Edited April 18, 2006 by SmOke_N Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
Lakes Posted April 18, 2006 Author Share Posted April 18, 2006 (edited) I don't have multiple monitors, so no way to test really, this is not a pretty work around but may workFunc _MiniMizeAll() WinMinimizeAll() $a_WinList = WinList() $a_StoreWin = '' For $i_count = 1 To $a_WinList[0][0] If $a_WinList[$i_count][0] <> '' And BitAND(WinGetState($a_WinList[$i_count][1]), 2) Then _ WinSetState($a_WinList[$i_count][1], '', @SW_MINIMIZE) Next EndFuncI personally don't like the way it lags between minimizing. I tried to use the DeskTop.scf but couldn't get it to run right. Edit: TypoThanks, as you say this is much Faster [shell]Command=2 [taskbar] Command=ToggleDesktopI saved this to my Desktop as an .scf file and it works. Just need to find a way to get it into an autoit script... I could use the MouseClickX,Y script I have to click on it, but thats a sloppy way of doing things.. Thanks! Edited April 18, 2006 by Lakes 2015 - Still no flying cars, instead blankets with sleeves. Link to comment Share on other sites More sharing options...
Briegel Posted April 18, 2006 Share Posted April 18, 2006 Thanks, as you say this is much FasterI saved this to my Desktop as an .scf file and it works.Just need to find a way to get it into an autoit script...I could use the MouseClickX,Y script I have to click on it, but thats a sloppy way of doing things..Thanks!Copy file.scf example into %windir%Try Run(@ComSpec & " /c file.scf", "", @SW_HIDE ) Link to comment Share on other sites More sharing options...
Lakes Posted April 18, 2006 Author Share Posted April 18, 2006 Copy file.scf example into %windir%Try Run(@ComSpec & " /c file.scf", "", @SW_HIDE )Yep!, works with the .scf file in the same Dir as the Autoit script.Thanks! 2015 - Still no flying cars, instead blankets with sleeves. Link to comment Share on other sites More sharing options...
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