AutoHotkey Community

It is currently May 27th, 2012, 1:35 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 185 posts ]  Go to page 1, 2, 3, 4, 5 ... 13  Next
Author Message
PostPosted: July 11th, 2005, 10:25 pm 
Offline

Joined: July 11th, 2005, 10:13 pm
Posts: 108
Location: Germany
And another one!

my contribution to the ahk community:
Min2Tray (v1.7.9, 2011/10/11)

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/vista/7 or newer - not tested under win 8, yet ;-)

partial changelog for Min2Tray v1.7.9:
+ new feature: use right mouse click on the close button of the window's titlebar to minimize it.
* replaced some functions by much faster routines from Forms Framework v0.8 by majkinetor. this speeded up systray icon creation and other things enormously!

please use it, test the new features extensively, give reply and suggest new features or implement them yourself :P

thx...
Junyx

_________________
C.R.E.A.M.


Last edited by Junyx on October 11th, 2011, 11:27 pm, edited 34 times in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 11th, 2005, 10:57 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
I looked at the package you put together and it seems quite useful and well explained. Thanks for sharing your work.


Report this post
Top
 Profile  
Reply with quote  
 Post subject: One script
PostPosted: July 13th, 2005, 12:25 am 
Offline

Joined: July 30th, 2004, 8:50 pm
Posts: 192
:oops: 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


Report this post
Top
 Profile  
Reply with quote  
 Post subject: multiple main instances
PostPosted: July 13th, 2005, 5:19 pm 
Offline

Joined: July 11th, 2005, 10:13 pm
Posts: 108
Location: Germany
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Multiple it is
PostPosted: July 13th, 2005, 7:39 pm 
Offline

Joined: July 30th, 2004, 8:50 pm
Posts: 192
None. You need multiple instances to show multiple icons.

Skrommel


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 15th, 2005, 2:24 pm 
Offline

Joined: June 11th, 2005, 9:34 am
Posts: 264
Location: England ish
qiet nifty,,. thanx

_________________
::
I Have Spoken
::


Report this post
Top
 Profile  
Reply with quote  
 Post subject: there's a new version
PostPosted: July 21st, 2005, 7:29 pm 
Offline

Joined: July 11th, 2005, 10:13 pm
Posts: 108
Location: Germany
look at the topmost message! :roll:

Junyx


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 8th, 2005, 9:22 pm 
Offline

Joined: December 7th, 2005, 8:29 am
Posts: 345
file not found , cant download...


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 10th, 2005, 9:54 am 
Offline

Joined: December 7th, 2005, 8:29 am
Posts: 345
does someone has this file?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 10th, 2005, 1:48 pm 
Can't load it too...


Report this post
Top
  
Reply with quote  
 Post subject: Min2Tray - v1.1
PostPosted: December 11th, 2005, 7:09 pm 
Offline

Joined: July 11th, 2005, 10:13 pm
Posts: 108
Location: Germany
twhyman wrote:
does someone has this file?


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

Junyx

_________________
C.R.E.A.M.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 18th, 2005, 3:56 pm 
Offline

Joined: December 7th, 2005, 8:29 am
Posts: 345
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Min2Tray in your scripts
PostPosted: December 21st, 2005, 12:54 pm 
Offline

Joined: July 11th, 2005, 10:13 pm
Posts: 108
Location: Germany
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 :-)

Junyx

_________________
C.R.E.A.M.


Report this post
Top
 Profile  
Reply with quote  
 Post subject: look here, twhyman :-)
PostPosted: December 23rd, 2005, 12:07 pm 
Offline

Joined: July 11th, 2005, 10:13 pm
Posts: 108
Location: Germany
:P

_________________
C.R.E.A.M.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 25th, 2005, 4:01 pm 
Offline

Joined: June 4th, 2005, 1:54 am
Posts: 146
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 .


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 185 posts ]  Go to page 1, 2, 3, 4, 5 ... 13  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 17 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