Jump to content

left-up corner minimize all


danusko
 Share

Recommended Posts

Hi,

i try to make a script, which going to do minimize all windows, when i move with my mouse cursor to left up corner. The second function which i in this script want is undo-minimize all windows when i move with cursor to left-down corner.

I made this script but it doesnt work.

Can you help me pls. ?

thanke you

mouse minim all and undo ---------------------------

$Mpos = MouseGetPos()

$Mx = $Mpos[0]

$My = $Mpos[1]

If $Mx = 0 and $My = 767 Then

WinMinimizeAllUndo ()

If $Mx = 0 AND $My = 0 Then

WinMinimizeAll()

endif

endif

-----------------------------

Link to comment
Share on other sites

While 1
   $Mpos = MouseGetPos()
   If $Mpos[0] = 0 and $Mpos[1] = @DesktopHeight - 1 Then 
      WinMinimizeAllUndo ()
   ElseIf $Mpos[0] = 0 And $Mpos[1] = 0 Then 
      WinMinimizeAll()
   EndIf
Wend

Nice idea, I usually just press the "Show Desktop" button on my task bar :(. @DesktopHeight is the height of your screen, eg 600(height)x800(width). You mouse will never reach the width but 1 of it. So for my screen its 599, thats why I have '@DesktopHeight - 1', and you will be able to use it on any computer.

Edited by Burrup

qq

Link to comment
Share on other sites

thanks

it works great...:(

but i have now problem, becuse when my computer starts, it is runing a script in where is a few of action, for examp. this (minimize), or ESC = ALT+F4 (i wrote it in this forum) and my computer is slower. My procesor is used by 100%...:(((

My comp is 2,5 GHz, 512MB ram...

It is posible, that i have running this my multyfunctional script run during all the day, and my procesor was not so overloading?

thanks for your advise

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...