AutoHotkey Community

It is currently May 27th, 2012, 11:11 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: February 19th, 2006, 4:20 pm 
Offline

Joined: December 18th, 2005, 5:40 pm
Posts: 234
Location: Italy - Galatro(RC)
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:
Image

_________________
____________________
______________________
kiu - www.romeosa.com


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 19th, 2006, 4:33 pm 
Offline

Joined: December 18th, 2005, 5:40 pm
Posts: 234
Location: Italy - Galatro(RC)
in next version:
-better organizing of task buttons
-restoring each window in its original position

_________________
____________________
______________________
kiu - www.romeosa.com


Report this post
Top
 Profile  
Reply with quote  
 Post subject: thanks
PostPosted: September 1st, 2008, 3:28 pm 
Offline

Joined: March 27th, 2008, 7:46 pm
Posts: 129
Location: France
Kool :)
gracias!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 1st, 2008, 8:05 pm 
Offline

Joined: November 1st, 2007, 10:03 pm
Posts: 885
Very cool!


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Exabot [Bot], iDrug, nomissenrojb, Rajat, Yahoo [Bot] and 58 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group