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 

Min2Tray v1.7.7 - minimize window to tray & much more!
Goto page 1, 2, 3, 4, 5, 6, 7, 8, 9  Next
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
Junyx



Joined: 11 Jul 2005
Posts: 84
Location: Germany

PostPosted: Mon Jul 11, 2005 10:25 pm    Post subject: Min2Tray v1.7.7 - minimize window to tray & much more! Reply with quote

Welcome to the show!

my contribution to the ahk community:
Min2Tray (v1.7.7, 2008/02/13) -- now with a new and shiny website Cool

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 Razz

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
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10450

PostPosted: Mon Jul 11, 2005 10:57 pm    Post subject: Reply with quote

I looked at the package you put together and it seems quite useful and well explained. Thanks for sharing your work.
Back to top
View user's profile Send private message Send e-mail
skrommel



Joined: 30 Jul 2004
Posts: 164

PostPosted: Wed Jul 13, 2005 12:25 am    Post subject: One script Reply with quote

Embarassed Why didn't I think of that? One script is much better than my two script attempt in http://www.autohotkey.com/forum/viewtopic.php?t=3650&highlight=skrommel. Nice, Junyx!

Skrommel
Back to top
View user's profile Send private message Visit poster's website
Junyx



Joined: 11 Jul 2005
Posts: 84
Location: Germany

PostPosted: Wed Jul 13, 2005 5:19 pm    Post subject: multiple main instances Reply with quote

well, nothing is perfect. the same for my script. Wink

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
View user's profile Send private message
skrommel



Joined: 30 Jul 2004
Posts: 164

PostPosted: Wed Jul 13, 2005 7:39 pm    Post subject: Multiple it is Reply with quote

None. You need multiple instances to show multiple icons.

Skrommel
Back to top
View user's profile Send private message Visit poster's website
TheLeO



Joined: 11 Jun 2005
Posts: 151
Location: England ish

PostPosted: Fri Jul 15, 2005 2:24 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
Junyx



Joined: 11 Jul 2005
Posts: 84
Location: Germany

PostPosted: Thu Jul 21, 2005 7:29 pm    Post subject: there's a new version Reply with quote

look at the topmost message! Rolling Eyes

Junyx
Back to top
View user's profile Send private message
twhyman



Joined: 07 Dec 2005
Posts: 203

PostPosted: Thu Dec 08, 2005 9:22 pm    Post subject: Reply with quote

file not found , cant download...
Back to top
View user's profile Send private message
twhyman



Joined: 07 Dec 2005
Posts: 203

PostPosted: Sat Dec 10, 2005 9:54 am    Post subject: Reply with quote

does someone has this file?
Back to top
View user's profile Send private message
mE
Guest





PostPosted: Sat Dec 10, 2005 1:48 pm    Post subject: Reply with quote

Can't load it too...
Back to top
Junyx



Joined: 11 Jul 2005
Posts: 84
Location: Germany

PostPosted: Sun Dec 11, 2005 7:09 pm    Post subject: Min2Tray - v1.1 Reply with quote

twhyman wrote:
does someone has this file?


sorry for the inconvenience, folks Shocked
have just updated the file location...

Junyx
_________________
C.R.E.A.M.
Back to top
View user's profile Send private message
twhyman



Joined: 07 Dec 2005
Posts: 203

PostPosted: Sun Dec 18, 2005 3:56 pm    Post subject: Reply with quote

hi,

thanks for posting the script back Smile

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
View user's profile Send private message
Junyx



Joined: 11 Jul 2005
Posts: 84
Location: Germany

PostPosted: Wed Dec 21, 2005 12:54 pm    Post subject: Min2Tray in your scripts Reply with quote

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:
Code:
Gosub, Min2TrayGo


that should do it for you.
please do make your program public domain or GPLv2 and give some credit Smile

Junyx
_________________
C.R.E.A.M.
Back to top
View user's profile Send private message
Junyx



Joined: 11 Jul 2005
Posts: 84
Location: Germany

PostPosted: Fri Dec 23, 2005 12:07 pm    Post subject: look here, twhyman :-) Reply with quote

Razz
_________________
C.R.E.A.M.
Back to top
View user's profile Send private message
ezuk



Joined: 04 Jun 2005
Posts: 112

PostPosted: Sun Dec 25, 2005 4:01 pm    Post subject: Reply with quote

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
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
Goto page 1, 2, 3, 4, 5, 6, 7, 8, 9  Next
Page 1 of 9

 
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