AHK Startup (Consolidate AHK Scripts' Tray Icons)

Post a reply

Confirmation code
Enter the code exactly as it appears. All letters are case insensitive.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :| :mrgreen: :geek: :ugeek: :arrow: :angel: :clap: :crazy: :eh: :lolno: :problem: :shh: :shifty: :sick: :silent: :think: :thumbup: :thumbdown: :salute: :wave: :wtf: :yawn: :facepalm: :bravo: :dance: :beard: :morebeard: :xmas: :HeHe: :trollface: :cookie: :rainbow: :monkeysee: :monkeysay: :happybday: :headwall: :offtopic: :superhappy: :terms: :beer:
View more smilies

BBCode is ON
[img] is OFF
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: AHK Startup (Consolidate AHK Scripts' Tray Icons)

Re: AHK Startup (Consolidate AHK Scripts' Tray Icons)

Post by nathan323 » 18 Jul 2017, 05:09

Excellent script.

Any way to exclude a particular scripts context menu entry, while still running script?

Re: AHK Startup (Consolidate AHK Scripts' Tray Icons)

Post by FanaticGuru » 14 Apr 2016, 15:47

KilliK wrote:sorry to bring this up, but I am encountering a problem with your script.
I set a custom folder to load of bunch of my scripts from there. It loads them fine but it doesnt hide their tray icons, apart from one randomly. I have set systray from Windows to show the ahk icons and tried to refresh them by moving my mouse over the systray but they just dont hide.
is this a bug or something that I must set in my scripts first?
I am using the latest version of AHK and Windows 10 Pro x64

The TrayIcon Library that AHK Startup uses to hide the tray icons does not work properly with Windows 10. I have updated the library. I may not have corrected every function in the library to work with Windows 10 but I did corrected the three functions required to hide tray icons to work correctly with Windows 10.

FG

Re: AHK Startup (Consolidate AHK Scripts' Tray Icons)

Post by FanaticGuru » 14 Apr 2016, 15:41

Updated Script on First Page

Change Log (2016-04-14):
Updated TrayIcon functions to work better with Windows 10

FG

Re: AHK Startup (Consolidate AHK Scripts' Tray Icons)

Post by KilliK » 14 Apr 2016, 12:31

sorry to bring this up, but I am encountering a problem with your script.
I set a custom folder to load of bunch of my scripts from there. It loads them fine but it doesnt hide their tray icons, apart from one randomly. I have set systray from Windows to show the ahk icons and tried to refresh them by moving my mouse over the systray but they just dont hide.
is this a bug or something that I must set in my scripts first?
I am using the latest version of AHK and Windows 10 Pro x64

Re: AHK Startup (Consolidate AHK Scripts' Tray Icons)

Post by DutchPete » 13 Feb 2015, 06:02

Yes, that did the trick !! I must have misunderstood you because I queried the presence of that line on the 10 Feb (bottom of page 3). Anyway, deleting it cleaned up the script which now works fine :bravo:
Many, many thanks for your patience, I am impressed that you did not give up.

Re: AHK Startup (Consolidate AHK Scripts' Tray Icons)

Post by FanaticGuru » 12 Feb 2015, 13:30

DutchPete wrote:You give 3 instructions:
* remove "C:\Users\user\Scripts\AHK\Startup\"
* delete everything between:
(Join,


)]
* put only the paths that you want

I have implemented the 1st one & tried to make sense of 2 & 3, so the relevant portion of my script now looks like this:

; INITIALIZATION - VARIABLES
;{-----------------------------------------------
;
Files := [ ; Additional Startup Files and Folders Can Be Added Between the ( Continuations ) Below
(Join,
"C:\Users\user\Scripts\AHK\*.exe"
"C:\Users\user\Scripts\AHK\breakfast.ahk"
"C:\Users\user\Scripts\AHK\date.ahk"
"C:\Users\user\Scripts\AHK\é.ahk"
"C:\Users\user\Scripts\AHK\folders.ahk"
"C:\Users\user\Scripts\AHK\gra.ahk"
"C:\Users\user\Scripts\AHK\insertkeyreplacement.ahk"
"C:\Users\user\Scripts\AHK\journaldate.ahk"
"C:\Users\user\Scripts\AHK\markets.ahk"
"C:\Users\user\Scripts\AHK\mc.ahk"
"C:\Users\user\Scripts\AHK\salad.ahk"
"C:\Users\user\Scripts\AHK\skitch.ahk"
"C:\Users\user\Scripts\AHK\yog.ahk"
)]
;}

Is that OK? Note that I have deleted the "compiled scripts folder & have put everything (except MultiStart) in the AHK folder.


Are you sure you need this:
"C:\Users\user\Scripts\AHK\*.exe"

That line will cause to be run every file with the "exe" extension in the AHK folder. I thought you said you did not compile any of your scripts into exe files. You just need to make sure that you actually want to run all the exe files in your AHK folder. If not then you can remove that line.

FG

Re: AHK Startup (Consolidate AHK Scripts' Tray Icons)

Post by DutchPete » 11 Feb 2015, 13:26

You give 3 instructions:
* remove "C:\Users\user\Scripts\AHK\Startup\"
* delete everything between:
(Join,


)]
* put only the paths that you want

I have implemented the 1st one & tried to make sense of 2 & 3, so the relevant portion of my script now looks like this:

; INITIALIZATION - VARIABLES
;{-----------------------------------------------
;
Files := [ ; Additional Startup Files and Folders Can Be Added Between the ( Continuations ) Below
(Join,
"C:\Users\user\Scripts\AHK\*.exe"
"C:\Users\user\Scripts\AHK\breakfast.ahk"
"C:\Users\user\Scripts\AHK\date.ahk"
"C:\Users\user\Scripts\AHK\é.ahk"
"C:\Users\user\Scripts\AHK\folders.ahk"
"C:\Users\user\Scripts\AHK\gra.ahk"
"C:\Users\user\Scripts\AHK\insertkeyreplacement.ahk"
"C:\Users\user\Scripts\AHK\journaldate.ahk"
"C:\Users\user\Scripts\AHK\markets.ahk"
"C:\Users\user\Scripts\AHK\mc.ahk"
"C:\Users\user\Scripts\AHK\salad.ahk"
"C:\Users\user\Scripts\AHK\skitch.ahk"
"C:\Users\user\Scripts\AHK\yog.ahk"
)]
;}

Is that OK? Note that I have deleted the "compiled scripts folder & have put everything (except MultiStart) in the AHK folder.

Re: AutoHotkey Startup (Consolidate AHK Scripts' Tray Icons)

Post by FanaticGuru » 11 Feb 2015, 12:52

DutchPete wrote:I have only 1 instance of MultiStart & that is in C:\Users\user\Scripts\AHK\Startup. I don't know how it can be in C:\Users\user\Scripts\AHK\*.exe since the exe bit is not a folder. I never added any exe to any of my AHK scripts; the only one that has it is MultiStart & only because i copied it from your original script.
Be that as it may, I don't think it is possible to resolve the issue this way, so I will give up & just stay with all the individual scripts' shortcuts in the start-up folder.
Many thanks for your support & time. I hope we can still work together in future :)

It sounds like the problem is exactly what I said.

You have a copy of MultiStart in your Startup folder. Then when MultiStart runs, you have a path to run everything in the Startup folder, which causes the first instance of MultiStart to run everything in the Startup folder, which runs another instance of MultiStart, which then runs everything in the Startup folder, over and over.

The number of instances of a program running has nothing to do with how many times you have it in folders. I only have notepad.exe in one place on my computer but I can start that program over and over and have 10 instances of notepad.exe running at the same time.

This script is designed to run other scripts but one of the other scripts it runs cannot be another instance of itself which is what is happening when you tell it to run everything in the folder it is in.

You need to remove the line:
"C:\Users\user\Scripts\AHK\Startup\"

There is no need to have this script run everything in the Startup folder. That is done automatically by Windows when your computer boots up.

Rereading your post it sounds like you don't even need the Startup or Compiled Scripts paths, those were just examples in my script of path names. Not paths that you need for you.

You need to delete everything between:
(Join,


)]

And put only the paths that you want.

Everything between those two lines in my script are only examples.
All of these are only example of paths and how they are formatted:

Code: [Select all]GeSHi © Codebox Plus

"C:\Users\Guru\Documents\AutoHotkey\Startup\"
"C:\Users\Guru\Documents\AutoHotkey\Compiled Scripts\*.exe"
A_MyDocuments "\AutoHotkey\My Scripts\Hotstring Helper.ahk"
"C:\Users\Guru\Documents\AutoHotkey\My Scripts\Calculator.ahk"
".\Web\Google Search.ahk"
"..\Dictionary.ahk"
"Hotkey Help.ahk"
"MediaMonkey.ahk"

These are not paths I would expect anyone else to use. They are examples to be edited by the user.

FG

Re: AutoHotkey Startup (Consolidate AHK Scripts' Tray Icons)

Post by DutchPete » 11 Feb 2015, 01:16

I have only 1 instance of MultiStart & that is in C:\Users\user\Scripts\AHK\Startup. I don't know how it can be in C:\Users\user\Scripts\AHK\*.exe since the exe bit is not a folder. I never added any exe to any of my AHK scripts; the only one that has it is MultiStart & only because i copied it from your original script.
Be that as it may, I don't think it is possible to resolve the issue this way, so I will give up & just stay with all the individual scripts' shortcuts in the start-up folder.
Many thanks for your support & time. I hope we can still work together in future :)

Re: AutoHotkey Startup (Consolidate AHK Scripts' Tray Icons)

Post by FanaticGuru » 10 Feb 2015, 13:44

DutchPete wrote:I have amended the path for the breakfast.ahk script, it is like the other scripts as it is located in the same folder.
When I run my "MultiStar" script, it gets into a terrible routine whereby it activates a new instance of the breakfast.ahk script all the time. I had to forcibly delete MultiStart to stop this. I don't know if this line "C:\Users\user\Scripts\AHK\*.exe" has anything to do with it?

In any case, all the other scripts were activated. Here is the text:

Files := [ ; Additional Startup Files and Folders Can Be Added Between the ( Continuations ) Below
(Join,
"C:\Users\user\Scripts\AHK\Startup\"
"C:\Users\user\Scripts\AHK\*.exe"
"C:\Users\user\Scripts\AHK\breakfast.ahk"
"C:\Users\user\Scripts\AHK\date.ahk"
"C:\Users\user\Scripts\AHK\é.ahk"
"C:\Users\user\Scripts\AHK\folders.ahk"
"C:\Users\user\Scripts\AHK\gra.ahk"
"C:\Users\user\Scripts\AHK\insertkeyreplacement.ahk"
"C:\Users\user\Scripts\AHK\journaldate.ahk"
"C:\Users\user\Scripts\AHK\markets.ahk"
"C:\Users\user\Scripts\AHK\mc.ahk"
"C:\Users\user\Scripts\AHK\salad.ahk"
"C:\Users\user\Scripts\AHK\skitch.ahk"
"C:\Users\user\Scripts\AHK\yog.ahk"
)]
;}

I would imagine that your MultiStar(ie this script) is in "C:\Users\user\Scripts\AHK\Startup\" or "C:\Users\user\Scripts\AHK\*.exe". That is causing this script to run another instance of itself which then runs another instance of itself, over and over. Each instance also starting multiply instances of the other scripts as well.

FG

Re: AutoHotkey Startup (Consolidate AHK Scripts' Tray Icons)

Post by DutchPete » 10 Feb 2015, 09:57

I have amended the path for the breakfast.ahk script, it is like the other scripts as it is located in the same folder.
When I run my "MultiStar" script, it gets into a terrible routine whereby it activates a new instance of the breakfast.ahk script all the time. I had to forcibly delete MultiStart to stop this. I don't know if this line "C:\Users\user\Scripts\AHK\*.exe" has anything to do with it?

In any case, all the other scripts were activated. Here is the text:

Files := [ ; Additional Startup Files and Folders Can Be Added Between the ( Continuations ) Below
(Join,
"C:\Users\user\Scripts\AHK\Startup\"
"C:\Users\user\Scripts\AHK\*.exe"
"C:\Users\user\Scripts\AHK\breakfast.ahk"
"C:\Users\user\Scripts\AHK\date.ahk"
"C:\Users\user\Scripts\AHK\é.ahk"
"C:\Users\user\Scripts\AHK\folders.ahk"
"C:\Users\user\Scripts\AHK\gra.ahk"
"C:\Users\user\Scripts\AHK\insertkeyreplacement.ahk"
"C:\Users\user\Scripts\AHK\journaldate.ahk"
"C:\Users\user\Scripts\AHK\markets.ahk"
"C:\Users\user\Scripts\AHK\mc.ahk"
"C:\Users\user\Scripts\AHK\salad.ahk"
"C:\Users\user\Scripts\AHK\skitch.ahk"
"C:\Users\user\Scripts\AHK\yog.ahk"
)]
;}

Re: AutoHotkey Startup (Consolidate AHK Scripts' Tray Icons)

Post by FanaticGuru » 09 Feb 2015, 13:32

DutchPete wrote:Thank you for your reply. I get another error message now, it's quite extensive. It is in the GIF file attached.
A_My Documents gets you to C:\Users\user, so I left it in.
Once again, here is the syntax I used in the script:

; INITIALIZATION - VARIABLES
;{-----------------------------------------------
;
Files := [ ; Additional Startup Files and Folders Can Be Added Between the ( Continuations ) Below
(Join,
"C:\Users\user\Scripts\AutoHotkey\Startup\"
"C:\Users\user\Scripts\AutoHotkey\Compiled Scripts\*.exe"
A_MyDocuments "\AutoHotkey\compiled scripts\breakfast.ahk"
"C:\Users\user\Scripts\AutoHotkey\compiled scripts\date.ahk"
"C:\Users\user\Scripts\AutoHotkey\compiled scripts\é.ahk"
"C:\Users\user\Scripts\AutoHotkey\compiled scripts\gra.ahk"
"C:\Users\user\Scripts\AutoHotkey\compiled scripts\journaldate.ahk"
"C:\Users\user\Scripts\AutoHotkey\compiled scripts\markets.ahk"
"C:\Users\user\Scripts\AutoHotkey\compiled scripts\mc.ahk"
"C:\Users\user\Scripts\AutoHotkey\compiled scripts\salad.ahk"
"C:\Users\user\Scripts\AutoHotkey\compiled scripts\yog.ahk"
)]
;}

The error message is pretty clear. The file breakfast.ahk cannot be found at the path given at the top of the error.

I don't know what files you have or where they are located on your computer but generally I would not put a script called breakfast.ahk in a folder called "compiled scripts" as breakfast.ahk is not a proper name for a compiled script. Normally compiled scripts end in "exe". You can put it there though if you like.

You need to verify what the full path to "breakfast.ahk" is and if it is different than the path given in the error message Action line.

FG

Re: AutoHotkey Startup (Consolidate AHK Scripts' Tray Icons)

Post by DutchPete » 06 Feb 2015, 11:59

Thank you for your reply. I get another error message now, it's quite extensive. It is in the GIF file attached.
A_My Documents gets you to C:\Users\user, so I left it in.
Once again, here is the syntax I used in the script:

; INITIALIZATION - VARIABLES
;{-----------------------------------------------
;
Files := [ ; Additional Startup Files and Folders Can Be Added Between the ( Continuations ) Below
(Join,
"C:\Users\user\Scripts\AutoHotkey\Startup\"
"C:\Users\user\Scripts\AutoHotkey\Compiled Scripts\*.exe"
A_MyDocuments "\AutoHotkey\compiled scripts\breakfast.ahk"
"C:\Users\user\Scripts\AutoHotkey\compiled scripts\date.ahk"
"C:\Users\user\Scripts\AutoHotkey\compiled scripts\é.ahk"
"C:\Users\user\Scripts\AutoHotkey\compiled scripts\gra.ahk"
"C:\Users\user\Scripts\AutoHotkey\compiled scripts\journaldate.ahk"
"C:\Users\user\Scripts\AutoHotkey\compiled scripts\markets.ahk"
"C:\Users\user\Scripts\AutoHotkey\compiled scripts\mc.ahk"
"C:\Users\user\Scripts\AutoHotkey\compiled scripts\salad.ahk"
"C:\Users\user\Scripts\AutoHotkey\compiled scripts\yog.ahk"
)]
;}
Attachments
error.GIF

Re: AutoHotkey Startup (Consolidate AHK Scripts' Tray Icons)

Post by FanaticGuru » 06 Feb 2015, 11:37

DutchPete wrote:I installed the latest version, then edited the part of the script you mentioned. But I customised the scripts & folders for me. However, I get an error message as follows:

error at line 26
line text: ;
error: the leftmost character above is illegal in an expression.
The program will exit.

FYI below I have copied my amended version of your lines. I don't where is line 26, nor what is illegal. My scripting expertise is almost zero.

1 other question: you have a line A_My Documents, which I kept. But I am on Windows 8.1 (64 bit) & have no folder "My Documents", and all my scripts are in user\Scripts\AHK\compiled scripts.
My so-called MultiStart script (the one you provided in effect) is in user\Scripts\AHK\startup

I hope you can set me right on these 2 issues.
Peter

Files := [ ; Additional Startup Files and Folders Can Be Added Between the ( Continuations ) Below
(Join,
; vvv ONLY CHANGE LINES BETWEEN HERE vvv
"C:\Users\user\Scripts\AutoHotkey\Startup\"
"C:\Users\user\Scripts\AutoHotkey\Compiled Scripts\*.exe"
A_MyDocuments "\AutoHotkey\compiled scripts\breakfast.ahk"
"C:\Users\user\Scripts\AutoHotkey\compiled scripts\date.ahk"
"C:\Users\user\Scripts\AutoHotkey\compiled scripts\é.ahk"
"C:\Users\user\Scripts\AutoHotkey\compiled scripts\gra.ahk"
"C:\Users\user\Scripts\AutoHotkey\compiled scripts\journaldate.ahk"
"C:\Users\user\Scripts\AutoHotkey\compiled scripts\markets.ahk"
"C:\Users\user\Scripts\AutoHotkey\compiled scripts\mc.ahk"
"C:\Users\user\Scripts\AutoHotkey\compiled scripts\salad.ahk"
"C:\Users\user\Scripts\AutoHotkey\compiled scripts\yog.ahk"
; ^^^ AND HERE ^^^
)]


You need to remove the two comment lines I added. I was not sure if you could have comments in that particular circumstance, and apparently you can not. You are getting a different error now in the same command line though so odds are it was an old version problem and me adding those comments just confused the issue.

Code: [Select all] [Expand]GeSHi © Codebox Plus



A_MyDocuments is a variable built into AHK that is suppose to contain the location of your documents folder. I am not sure what it contains on Windows 8. I believe it still points to a document folder by what ever name Windows 8 calls it.

You can make a one line script and run it to find out.



And you by no means have to use it. You can use full paths. That is just an example to show how you can make a path that will work when you use the script on different computers where the documents folder might have a different path.

FG

Re: AutoHotkey Startup (Consolidate AHK Scripts' Tray Icons)

Post by DutchPete » 06 Feb 2015, 05:25

I installed the latest version, then edited the part of the script you mentioned. But I customised the scripts & folders for me. However, I get an error message as follows:

error at line 26
line text: ;
error: the leftmost character above is illegal in an expression.
The program will exit.

FYI below I have copied my amended version of your lines. I don't where is line 26, nor what is illegal. My scripting expertise is almost zero.

1 other question: you have a line A_My Documents, which I kept. But I am on Windows 8.1 (64 bit) & have no folder "My Documents", and all my scripts are in user\Scripts\AHK\compiled scripts.
My so-called MultiStart script (the one you provided in effect) is in user\Scripts\AHK\startup

I hope you can set me right on these 2 issues.
Peter

Files := [ ; Additional Startup Files and Folders Can Be Added Between the ( Continuations ) Below
(Join,
; vvv ONLY CHANGE LINES BETWEEN HERE vvv
"C:\Users\user\Scripts\AutoHotkey\Startup\"
"C:\Users\user\Scripts\AutoHotkey\Compiled Scripts\*.exe"
A_MyDocuments "\AutoHotkey\compiled scripts\breakfast.ahk"
"C:\Users\user\Scripts\AutoHotkey\compiled scripts\date.ahk"
"C:\Users\user\Scripts\AutoHotkey\compiled scripts\é.ahk"
"C:\Users\user\Scripts\AutoHotkey\compiled scripts\gra.ahk"
"C:\Users\user\Scripts\AutoHotkey\compiled scripts\journaldate.ahk"
"C:\Users\user\Scripts\AutoHotkey\compiled scripts\markets.ahk"
"C:\Users\user\Scripts\AutoHotkey\compiled scripts\mc.ahk"
"C:\Users\user\Scripts\AutoHotkey\compiled scripts\salad.ahk"
"C:\Users\user\Scripts\AutoHotkey\compiled scripts\yog.ahk"
; ^^^ AND HERE ^^^
)]

Re: AutoHotkey Startup (Consolidate AHK Scripts' Tray Icons)

Post by ozzii » 06 Feb 2015, 01:07

You can just install on top of the old one.
Never had any problem.

Re: AutoHotkey Startup (Consolidate AHK Scripts' Tray Icons)

Post by DutchPete » 05 Feb 2015, 13:03

Thanks for your help. I have a previous version of AHK installed. To install the latest, should I 1st uninstall the older version, or can the newer one be installed "on top of it"?
If you recommend to uninstall the old version, can I keep the other AHK scripts I have written already & use them with the new version?

Re: AutoHotkey Startup (Consolidate AHK Scripts' Tray Icons)

Post by FanaticGuru » 05 Feb 2015, 12:47

DutchPete wrote: Hi FG, I used your start-up script & customised the folders & files only. However, at start-up I get an error message, as shown in the PNG attachment. I had a look at my script but cannot work it out. In fact, I cannot even find the illegal character, and I don't know what is taken as line 26. I am totally new to AHK, so would like to ask you if you can have a look. I have also attached the script.
Many thanks. Peter

Make sure you only change the lines indicated below.

Code: [Select all] [Expand]GeSHi © Codebox Plus


Also make sure you have the latest version of AHK which can be downloaded on the front page of this site: http://ahkscript.org/download/ahk-install.exe

FG

Re: AutoHotkey Startup (Consolidate AHK Scripts' Tray Icons)

Post by DutchPete » 04 Feb 2015, 09:05

FanaticGuru wrote:AHK Startup

This is my startup script that I put a shortcut to run in my startup folder to load my standard scripts on computer bootup.

It basically Runs a list of scripts.
This list can include a folder which will run all files in that folder and subfolders. Wildcards * and ? can also be used.
Relative path can also be used by using .\ at the beginning of a file path. One dot is the folder this script is located in. Each additional dot steps back one folder.
It also looks for a txt file with the same name as the script and includes the files listed there.
It then creates a tooltip that list all the scripts that it started.
It then removes the tray icon of all the scripts it started leaving only the "AutoHotkey Startup" tray icon.
When AutoHotkey Startup is exited or stopped all the scripts it started will also be exited and stopped.

I use this script for startup but it does not necessarily have to be used that way. It is useful any time you want to run several AHK scripts but only have one tray icon and have all the scripts start and stop together.

You lose the functionality of right mouse clicking on a scripts tray icon as the tray icons for the scripts are removed. So there are no individual script tray icons to click on and stop, pause, suspend, edit, etc. a script but I have another one of my scripts always running that gives me a different way to access those abilities other than right clicking a tray icon.

Hotkey Help - Help Dialog for Currently Running AHK Scripts

Update: Added a custom right click menu to the AHK Startup tray icon to allow access to some individual script controls.

Code: [Select all] [Expand]GeSHi © Codebox Plus


This script uses TrayIcon functions created by others that I have updated to be more functional for my needs. These functions are probably useful for others and the original links to them are broken and the old functions probably would not work even if the links were live as they were written for AutoHotkey Basic.

I #include [Library] TrayIcon.ahk in my script as I use these functions in other scripts but have manually placed the three required function at the end of AutoHotkey Startup above for convenience.

Here is a link to my version of the entire updated TrayIcon Library:

Updated TrayIcon Library

FG
Attachments
Multistart 4 Feb.PNG
Hi FG, I used your start-up script & customised the folders & files only. However, at start-up I get an error message, as shown in the PNG attachment. I had a look at my script but cannot work it out. In fact, I cannot even find the illegal character, and I don't know what is taken as line 26. I am totally new to AHK, so would like to ask you if you can have a look. I have also attached the script.
Many thanks. Peter
Multistart 4 Feb.PNG (7.07 KiB) Viewed 3235 times

Re: AutoHotkey Startup (Consolidate AHK Scripts' Tray Icons)

Post by tzucker » 29 Oct 2014, 15:22

Thanks - I've been looking for something just like this! I have already implemented it with the few scripts I have written.

Top