AutoHotkey Community

It is currently May 27th, 2012, 9:08 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: February 24th, 2011, 6:05 pm 
Offline

Joined: October 18th, 2006, 8:07 pm
Posts: 169
Hello!

Does anyone know / have any idea how to automatically make a script's icon always appear in the notification area (system tray)? Effectively this would be the same as the user clicking “customise” in the system tray then selecting “Show icon and notifications”. … but obviously without the user having to do that.

Any ideas?

Thanks :)

P.S. I've tried regshot but can't see anything that pops out at me. I wouldn't be surprised if MS deliberately made this hard, so programs wouldn't be able to set it themselves...?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 24th, 2011, 6:37 pm 
Offline

Joined: August 21st, 2006, 7:07 pm
Posts: 2925
Location: The Shell
Take a look at:
TB_INSERTBUTTON
and its related struct
TBBUTTON struct..

Will check back later to see if you made progress..

_________________
Imageparadigm.shift:=(•_•)┌П┐RTFM||^.*∞


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 25th, 2011, 11:30 am 
Offline

Joined: October 18th, 2006, 8:07 pm
Posts: 169
Thanks TLM!

That looks like the right command. Are you suggesting either of these? ...

1. I set a parameter in TBBUTTON Structure to say "always visible"? I couldn't see any one there on msdn that suggests it could do that.

2. I periodically call this command to "refresh" the icon so it stays in the system tray? I tried a similar method before, repeating using...
Code:
menu tray, icon, icon.ico

... every few minutes or so. And it had no effect.

Thank you :)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 14th, 2011, 6:46 am 
Offline

Joined: January 5th, 2010, 10:22 pm
Posts: 2
I would love to know if anyone has found a way to prevent a script icon from automatically being hidden by Windows. I have a compiled set of hotkeys that I use on many different computers throughout the day. It is helpful to be able to glace at the tray to see if my hotkeys are running without having to click the "show hidden icons" arrow or to customize settings for each computer.

Any help would be greatly appreciated!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 14th, 2011, 12:02 pm 
Offline

Joined: October 18th, 2006, 8:07 pm
Posts: 169
you could try option 2 above, but rotate between 2 different icons? Let me know how it goes.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 6th, 2012, 3:58 pm 
Offline

Joined: June 9th, 2009, 4:03 pm
Posts: 11
Quote:
you could try option 2 above, but rotate between 2 different icons? Let me know how it goes.


Confirmed it doesn't work. Anyone else have an idea?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 13th, 2012, 6:52 am 
Offline

Joined: January 22nd, 2012, 1:11 pm
Posts: 8
Location: Vancouver
I have been using very small tooltips which each script generates as a version of this - little status indicators I can glance at. I have mine at the top of the screen, on the titlebar when windows are maximized, but you could put them around the system tray if you want. You can of course have panels pop up when the tooltips are hovered or clicked - even edit fields, in which the scripts offer up their innards for surgery.

Another idea, which does involve clicking to view, is to exploit the jump list in Windows 7. An AHK icon appears on the taskbar if a script has a GUI panel open; rightclick it and you get the jumplist, which shows a list of recently-run scripts. There isn't actually an indication of which are running, but they are in order - which one can exploit by having a script that runs on startup, with a distinctive assigned icon (via Menu command). Those above it will be the ones running.


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], BrandonHotkey, hyper_, tomoe_uehara, Yahoo [Bot] and 69 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