AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

winpack: make your desktop a big taskbar - by kiu

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
kiu



Joined: 18 Dec 2005
Posts: 229
Location: Italy - Galatro(RC)

PostPosted: Sun Feb 19, 2006 3:20 pm    Post subject: winpack: make your desktop a big taskbar - by kiu Reply with quote

This program let you place your windows as buttons in the desktop.
Look at the description in the code
If you use it, please send comments and suggestions
Code:

;                                                                                                                     ;                 
;           author:Salvatore Agostino Romeo - romeo84@gmail.com                     
;                                                                                                                   
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
/*                                                                                                                   
          kiu-wincompact - It pack a window to make it like
               a taskbar button, but the taskbar is now your desktop.                     
          Simply make your desktop becomes a big taskbar.               
          Use WIN+c to make a window compact and WIN+r to restore it.
               You can call a menu with all packed windows with WIN+w
               There are also definied rocket gesture for these actions:
               RButton+WheelDown    ->    pack
               RButton+WheelUp       ->    unpack
               RButton+MButton       ->    show menu
                                                                                  
          Version: 0.1                                                                             
          License:GPL                                                                                 
          Note: sub-project of kiu-radialM                                               
*/                                                                                                                   
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

;compact this win
~RButton & WheelDown::
#c::
   MouseGetPos, , , id
   WinGetPos , , , Width, Height, ahk_id %id%
   dim%id%=%Width%|%Height%
   WinMove, ahk_id %id%, , , , 150, 24
   currentTaskedWins=%currentTaskedWins%%id%|
return

;restore this win
~RButton & WheelUp::
#r::
   MouseGetPos, , , id
   restoreWin(id)
return

;show mwnu of compacted windows
~RButton & MButton::
#w::
   Menu,myTaskedWins,add
   Menu,myTaskedWins,deleteall
   StringSplit, mytask, currentTaskedWins, |
   Loop,%mytask0%
      {
         current_mytask:=mytask%A_Index%
         WinGetTitle, title, ahk_id %current_mytask%
         if(title!="")
            Menu,myTaskedWins,add,%A_Index%. %title%,restoreThisWin
      }
   MouseGetPos, x, y ;to disable right click for context menu
   in_x:=x-8
   in_y:=y-8
   Menu,myTaskedWins,show,%in_x%,%in_y%
return
restoreThisWin:
   id:=mytask%A_ThisMenuItemPos% ;this variable was set before
   restoreWin(id)
return

;given the id, it will restore the window with previous dimensions
restoreWin(byRef id)
   {
      global
         dim_this_win:=dim%id%
         StringSplit, dim_this_win, dim_this_win, |
         WinMove, ahk_id %id%, , , , %dim_this_win1%, %dim_this_win2%
         WinActivate, ahk_id %id%
         dim%id%=
         StringReplace, currentTaskedWins, currentTaskedWins, %id%|, , All
      return
   }


and a screenshot:

_________________
____________________
______________________
kiu
Back to top
View user's profile Send private message Visit poster's website
kiu



Joined: 18 Dec 2005
Posts: 229
Location: Italy - Galatro(RC)

PostPosted: Sun Feb 19, 2006 3:33 pm    Post subject: Reply with quote

in next version:
-better organizing of task buttons
-restoring each window in its original position
_________________
____________________
______________________
kiu
Back to top
View user's profile Send private message Visit poster's website
soggos



Joined: 27 Mar 2008
Posts: 37
Location: France

PostPosted: Mon Sep 01, 2008 2:28 pm    Post subject: thanks Reply with quote

Kool Smile
gracias!
Back to top
View user's profile Send private message
Fry



Joined: 01 Nov 2007
Posts: 688

PostPosted: Mon Sep 01, 2008 7:05 pm    Post subject: Reply with quote

Very cool!
_________________
check out my site
www.eliteknifesquad.com
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group