AutoHotkey Community

It is currently May 26th, 2012, 8:35 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 73 posts ]  Go to page 1, 2, 3, 4, 5  Next
Author Message
 Post subject: WinTraymin to trayicon
PostPosted: July 1st, 2008, 9:56 am 
Offline

Joined: February 12th, 2007, 7:54 am
Posts: 2462
It'll minimize a window to a trayicon. Left/Middle/Right click on the trayicon will restore the window. And if the window is activated via other means the corresponding trayicon will be removed too.

The hotkeys to traymin are currently set to Right Click on the minimize button.

DOWNLOAD WinTraymin.zip.


Last edited by Sean on July 4th, 2008, 11:09 am, edited 2 times in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 1st, 2008, 10:14 am 
Very nice function and nice demonstration !
Thanks for sharing


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: July 2nd, 2008, 3:23 am 
Offline

Joined: March 10th, 2008, 12:55 am
Posts: 1907
Location: Minnesota, USA
thank you very much!
i have been looking for something like this for so long! and to....."dumb" (for lack of a better word) to make it myself.

thank You!

_________________
rawr. be very afraid
*poke*
Note: My name is all lowercase for a reason.
"I think Bigfoot is blurry, that's the problem. It's not the photographer's fault, Bigfoot is blurry. So there's a large, out-of-focus monster roaming the countryside."


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 2nd, 2008, 4:50 am 
Offline

Joined: June 26th, 2006, 6:14 pm
Posts: 1379
Location: USA
this is freakin awesome. :D great script...gonna be on all the time..

one question, ran the script from scite and terminated it with the 'stop executing' function...and lost my windows :( ...is there anything that can be done to trigger the onexit routine in that case :?:
[I got my windows back with Sysinternals Process Explorer]

_________________
Image
ʞɔпɟ əɥʇ ʇɐɥʍ


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 2nd, 2008, 4:54 am 
Offline

Joined: February 12th, 2007, 7:54 am
Posts: 2462
Thanks guys. Yes, I was surprised when I realized never seen the codes alike as all needed codes have been around a while. However, after starting to write the code I could guess why. It's not a matter of codes, it's a matter of design to take into account of all possible scenarios. I'm still not 100% sure if I had done that, so, if found a problem please post here.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 2nd, 2008, 5:17 am 
Offline

Joined: February 12th, 2007, 7:54 am
Posts: 2462
ahklerner wrote:
one question, ran the script from scite and terminated it with the 'stop executing' function...and lost my windows :( ...is there anything that can be done to trigger the onexit routine in that case :?:
Wow, I've never thought of that situation. I have an idea how to deal with it, however, it showed some glitch when I activated the AHK's window through its trayicon in a quick test, so needs more test. I'll try again as soon as I have a time.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 2nd, 2008, 5:43 am 
Offline

Joined: March 10th, 2008, 11:30 pm
Posts: 162
Location: USA
Oh hell yea!! This is some bad ass s**t!! I can't wait to start messing around with this. Well done Sean, you rock!

_________________
Check out my BF2 macros here: http://www.autohotkey.com/forum/viewtopic.php?t=29706


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 2nd, 2008, 7:23 am 
Offline

Joined: February 12th, 2007, 7:54 am
Posts: 2462
Sean wrote:
I have an idea how to deal with it

I was wrong. There seems to be no way inside AHK to catch TerminateProcess. Although it's easy to write an emergency script which will restore all minimized and hidden windows, it also shows a bad side-effect, i.e. to make shown unwanted windows too. Well what would be the best compromise? Maybe list all minimized and hidden windows and let the user select ones then show them?


Last edited by Sean on July 2nd, 2008, 7:26 am, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 2nd, 2008, 7:24 am 
Offline

Joined: February 12th, 2007, 7:54 am
Posts: 2462
AZA wrote:
Oh hell yea!! This is some bad ass s**t!! I can't wait to start messing around with this. Well done Sean, you rock!

Thanks fella!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 2nd, 2008, 1:38 pm 
Offline

Joined: May 27th, 2007, 9:41 am
Posts: 4999
Nice :!:


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 2nd, 2008, 2:20 pm 
Offline

Joined: June 26th, 2006, 6:14 pm
Posts: 1379
Location: USA
I nominate this for the script showcase that is distributed with ahk. :)

_________________
Image
ʞɔпɟ əɥʇ ʇɐɥʍ


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 2nd, 2008, 2:55 pm 
This is a great script but I found one problem with it. I use the fire gestures add-on with Firefox so I can go back a page by holding the right button and left clicking, or forward a page by holding the left button and right clicking. Going forward still works great but I can't go back while this script is running. I don't know exactly how the script works because I don't code but if I hold the right button and left click something in the context menu it selects that item so I know it is not disabling the left button while the right is down.

Any possible fix for this? Thanks.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: July 2nd, 2008, 3:02 pm 
Offline

Joined: June 26th, 2006, 6:14 pm
Posts: 1379
Location: USA
I just noticed that Excel borks with it. when reshowing the window, only the workbook is shown.

_________________
Image
ʞɔпɟ əɥʇ ʇɐɥʍ


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 2nd, 2008, 3:24 pm 
Offline

Joined: February 12th, 2007, 7:54 am
Posts: 2462
ahklerner wrote:
I just noticed that Excel borks with it. when reshowing the window, only the workbook is shown.

I think that part is easy to fix, adding WinShow before WinActivate in WM_SHELLHOOKMESSAGE(). However, it may be felt a bit lagging (:so I removed WinShow part). Would you tell about your notice after adding WinShow?

PS. I uploaded a quick fix of it in the same link. How is it?


Last edited by Sean on July 2nd, 2008, 4:05 pm, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 2nd, 2008, 3:29 pm 
Offline

Joined: February 12th, 2007, 7:54 am
Posts: 2462
TopDawggamer wrote:
This is a great script but I found one problem with it. I use the fire gestures add-on with Firefox so I can go back a page by holding the right button and left clicking, or forward a page by holding the left button and right clicking. Going forward still works great but I can't go back while this script is running. I don't know exactly how the script works because I don't code but if I hold the right button and left click something in the context menu it selects that item so I know it is not disabling the left button while the right is down.

I think that's because of using RButton as hotkey. How about changing the button to the other one like MButton?


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: Exabot [Bot], Google [Bot], MSN [Bot], SKAN, Stigg and 20 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