Sign in to follow this  
Followers 0
Lakes

Winminimizeall

5 posts in this topic

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.

Share this post


Link to post
Share on other sites



#2 ·  Posted (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 work
Func _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
EndFunc
I 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 by SmOke_N

[center]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.[/center]

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

I don't have multiple monitors, so no way to test really, this is not a pretty work around but may work

Func _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
EndFunc
I 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

Thanks, as you say this is much Faster

[shell]Command=2

[taskbar]

Command=ToggleDesktop

I 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 by Lakes

2015 - Still no flying cars, instead blankets with sleeves.

Share this post


Link to post
Share on other sites

Thanks, as you say this is much Faster

I 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 )

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0