danusko Posted May 26, 2005 Share Posted May 26, 2005 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 More sharing options...
buzz44 Posted May 26, 2005 Share Posted May 26, 2005 (edited) 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 May 26, 2005 by Burrup qq Link to comment Share on other sites More sharing options...
danusko Posted May 26, 2005 Author Share Posted May 26, 2005 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 More sharing options...
buzz44 Posted May 26, 2005 Share Posted May 26, 2005 Add a Sleep(1) into the loop and see the difference in Usage. qq Link to comment Share on other sites More sharing options...
w0uter Posted May 26, 2005 Share Posted May 26, 2005 i usually just hit WIN+D on my keyboard. but nice idee. My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll Link to comment Share on other sites More sharing options...
danusko Posted May 26, 2005 Author Share Posted May 26, 2005 yes, exactly this is, what i needed thanke you 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