| View previous topic :: View next topic |
| Author |
Message |
Junyx
Joined: 11 Jul 2005 Posts: 84 Location: Germany
|
Posted: Mon Jul 11, 2005 10:25 pm Post subject: Min2Tray v1.7.7 - minimize window to tray & much more! |
|
|
Welcome to the show!
my contribution to the ahk community:
Min2Tray (v1.7.7, 2008/02/13) -- now with a new and shiny website
minimize a window to system tray area of taskbar as icon.
BossKey feature for minimizing several windows at once.
make window always-on-top and maximize window vertically
or horizontally. StartupMinimize can hide certain windows
upon start of Min2Tray or assign actions. and much, much more!
requires ms windows nt/2000/xp or newer (vista, anyone?).
partial changelog for v1.7.7 edition:
+ custom hotkey to display preferences window of starter.
+ option to globally disable minimizing to taskbar of any window prior to hiding it (skips the annoying "zapping" or "fading" effect).
please use it, test the new features extensively, give reply and suggest new features or implement them yourself
thx...
Junyx _________________ C.R.E.A.M.
Last edited by Junyx on Fri Feb 15, 2008 2:00 am; edited 30 times in total |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10450
|
Posted: Mon Jul 11, 2005 10:57 pm Post subject: |
|
|
| I looked at the package you put together and it seems quite useful and well explained. Thanks for sharing your work. |
|
| Back to top |
|
 |
skrommel
Joined: 30 Jul 2004 Posts: 164
|
|
| Back to top |
|
 |
Junyx
Joined: 11 Jul 2005 Posts: 84 Location: Germany
|
Posted: Wed Jul 13, 2005 5:19 pm Post subject: multiple main instances |
|
|
well, nothing is perfect. the same for my script.
currently i'm looking for a way to only allow one instance of the "main" program to be started and run.
"#singleinstance on" doesn't work due to the 2-in-1 script (it has to be started several times as "helper").
any ideas?
Junyx |
|
| Back to top |
|
 |
skrommel
Joined: 30 Jul 2004 Posts: 164
|
Posted: Wed Jul 13, 2005 7:39 pm Post subject: Multiple it is |
|
|
None. You need multiple instances to show multiple icons.
Skrommel |
|
| Back to top |
|
 |
TheLeO
Joined: 11 Jun 2005 Posts: 151 Location: England ish
|
Posted: Fri Jul 15, 2005 2:24 pm Post subject: |
|
|
qiet nifty,,. thanx _________________ And i say: where there is a problem , there is a solution.(well some where that is.)
::
I Have Spoken
:: |
|
| Back to top |
|
 |
Junyx
Joined: 11 Jul 2005 Posts: 84 Location: Germany
|
Posted: Thu Jul 21, 2005 7:29 pm Post subject: there's a new version |
|
|
look at the topmost message!
Junyx |
|
| Back to top |
|
 |
twhyman
Joined: 07 Dec 2005 Posts: 203
|
Posted: Thu Dec 08, 2005 9:22 pm Post subject: |
|
|
| file not found , cant download... |
|
| Back to top |
|
 |
twhyman
Joined: 07 Dec 2005 Posts: 203
|
Posted: Sat Dec 10, 2005 9:54 am Post subject: |
|
|
| does someone has this file? |
|
| Back to top |
|
 |
mE Guest
|
Posted: Sat Dec 10, 2005 1:48 pm Post subject: |
|
|
| Can't load it too... |
|
| Back to top |
|
 |
Junyx
Joined: 11 Jul 2005 Posts: 84 Location: Germany
|
Posted: Sun Dec 11, 2005 7:09 pm Post subject: Min2Tray - v1.1 |
|
|
| twhyman wrote: | | does someone has this file? |
sorry for the inconvenience, folks
have just updated the file location...
Junyx _________________ C.R.E.A.M. |
|
| Back to top |
|
 |
twhyman
Joined: 07 Dec 2005 Posts: 203
|
Posted: Sun Dec 18, 2005 3:56 pm Post subject: |
|
|
hi,
thanks for posting the script back
iam a total noob at AHK ,can u help me integrate the script so i can make my application minimize to tray?
do i need the whole script for that?
thanks
Twhyman |
|
| Back to top |
|
 |
Junyx
Joined: 11 Jul 2005 Posts: 84 Location: Germany
|
Posted: Wed Dec 21, 2005 12:54 pm Post subject: Min2Tray in your scripts |
|
|
| twhyman wrote: | iam a total noob at AHK ,can u help me integrate the script so i can make my application minimize to tray?
do i need the whole script for that? |
well, in order to get a tray icon for the minimized windows you have to start a new instance of AHK - everytime. that's the catch.
1) you need to place my script somewhere (i.e. in the directory where your script is located).
2) include this in your script:
| Code: | Min2TrayGo:
WinWait, A,, 2 ; set "last used window"
If ( ErrorLevel ) ; It timed out, so do nothing
Return
WinGet, h_WinStyle, Style
; checks for minimizable window: (WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX)
If ( h_WinStyle & 0xCA0000 = 0xCA0000 )
{
WinGet, h_ID, ID
Run, C:\AutoHotkey\AutoHotkey.exe C:\AutoHotkey\Min2Tray\Min2Tray.ahk %h_ID%, , UseErrorLevel
If ( ErrorLevel = "ERROR" ) ; helper could not be started
Return
}
Return |
change paths to my script and AHK.exe according to your needs!
3) to hide the window and create a tray icon just call in your prog:
that should do it for you.
please do make your program public domain or GPLv2 and give some credit
Junyx _________________ C.R.E.A.M. |
|
| Back to top |
|
 |
Junyx
Joined: 11 Jul 2005 Posts: 84 Location: Germany
|
Posted: Fri Dec 23, 2005 12:07 pm Post subject: look here, twhyman :-) |
|
|
 _________________ C.R.E.A.M. |
|
| Back to top |
|
 |
ezuk
Joined: 04 Jun 2005 Posts: 112
|
Posted: Sun Dec 25, 2005 4:01 pm Post subject: |
|
|
| For your info: Doesn't work for me when I put the script in a long path (with spaces in it) such as C:\My Documents\AHK\Scripts . |
|
| Back to top |
|
 |
|