Jump to content



Photo

XML Based SysTray Admin Menu with Icons V 0.2.0.0


  • Please log in to reply
13 replies to this topic

#1 toyotabedzrock

toyotabedzrock

    Seeker

  • Active Members
  • 29 posts

Posted 07 December 2007 - 10:33 PM

Admin Tray Ver 0.2.0.0

Allows creation of custom systray menus with icons, It can execute single Auto It commands that are stored in the XML file.

Posted Image Posted Image
Posted Image

This is the first script i have posted on the site, so feedback would be very appreciated.

*Credits*
_XMLDomWrapper.au3 BY: ElTorro
ModernMenu.au3 BY: Holger
Shell32.au3 BY: kjactive

*I used MS XML Notepad 2007 to make the XML file*

*You can nest menus in menus and place spacers and items where ever you want. Also the order in which an item or menu appears in the XML file defines where they will appear in the tray.*

I would like to encourage everyone to post there XML files for Admin Tray

*Future Plans*
1. Move more things to const vars
2. Add error checking
3. Installer that can add the menu to the Task Scheduler to avoid UAC
4. Add Gui to configure the menu
5. Auto redraw the menu when the config file changes.
6. Add more options for how commands are run.

*History*

Ver 0.2.0.0 12/30/2007 [Full setup file here]
1. Made an Inno setup script
2. Created a small app that will import a login task into Vista for Admin Tray. If its run when the task is already installed it will delete it.
If you have trouble with the task import app it might be due to the file encoding of the xml file it imports to the task manager.
I'll post the full setup on my site and the scripts here. I know the setup works since i installed it over and over trying out the options.

Ver 0.1.2 12/13/2007
1. Fixed spacer positioning
2. Stream Lined the code a little

Ver 0.1.1 12/07/2007
1. Added option for running a command with arguments.
2. Added option for running a command hidden, maximized or minimized.
3. Added Text file to explain the options for running a command, and added a XML file to show basic layout.

Ver 0.1 12/07/2007

Attached Files


Edited by toyotabedzrock, 31 December 2007 - 03:06 AM.








#2 Zedna

Zedna

    AutoIt rulez!

  • MVPs
  • 8,315 posts

Posted 07 December 2007 - 11:26 PM

Looks very nice!!

#3 gseller

gseller

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 1,057 posts

Posted 08 December 2007 - 03:55 AM

Looks great! Will be awesome with a gui to congigure. Kinda like pstart. Can even try to add the search as you type into it maybe..

#4 JustinReno

JustinReno

    My custom made Vortex.

  • Banned (NOT IN USE)
  • 2,330 posts

Posted 08 December 2007 - 04:37 AM

Under the tools menu you should add Disk Defragmenter(Not sure if its possible).

#5 toyotabedzrock

toyotabedzrock

    Seeker

  • Active Members
  • 29 posts

Posted 09 December 2007 - 01:00 AM

Under the tools menu you should add Disk Defragmenter(Not sure if its possible).


Its easy to add it to the xml file. I added a few new options for running commands with arguments. And there is an example of using defrag in the xml file.

#6 toyotabedzrock

toyotabedzrock

    Seeker

  • Active Members
  • 29 posts

Posted 09 December 2007 - 01:17 AM

Looks great! Will be awesome with a gui to congigure. Kinda like pstart. Can even try to add the search as you type into it maybe..


Like the vista start menu?

#7 gseller

gseller

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 1,057 posts

Posted 09 December 2007 - 05:55 AM

Like the vista start menu?



No, like this pstart: http://www.pegtop.net/start/this is awesome if it could pull its arguments from a txt file would be even better.

#8 JohnBailey

JohnBailey

    Scripter

  • Active Members
  • PipPipPipPipPipPip
  • 943 posts

Posted 09 December 2007 - 07:41 PM

Way to Go!
A decision is a powerful thing

#9 Dolemite50

Dolemite50

    Prodigy

  • Active Members
  • PipPipPip
  • 157 posts

Posted 10 December 2007 - 10:05 AM

Bravo! Really nice script. Thanks for sharing.

I used to use a freeware utility similar to this, but having the luxury to call autoit funcs directly makes your program the hands-down favorite. Is it possible to add seperators to the sub-menus? When I tried placing them between sub-menu items in the XML file they would appear on the main menu.

Also, I think that this would make a fine addition to your script:
Two Tray Menus Right & Left Click
http://www.autoitscript.com/forum/index.ph...mp;#entry443055

That way you could configure it so that an app menu appears on left-click, and maybe a folder menu or configuration menu on right-click.

Keep up the good work!

#10 JerryD

JerryD

    Polymath

  • Active Members
  • PipPipPipPip
  • 247 posts

Posted 10 December 2007 - 10:57 AM

How did anyone get this to run. Both versions (Admin_Tray_Ver_0.1.7z and Admin_Tray_Ver_0.1.1.7z) come up with the same error:
_AdminTray.au3(57,40) : ERROR: syntax error Func _Parse(ByRef $trayItems, $cPath = $xmlBasePath ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

You can't use a variable as a parameter value assignment for a function, can you?

Edited by JerryD, 10 December 2007 - 10:58 AM.


#11 Holger

Holger

    AutoIt Spammer

  • Developers
  • 1,384 posts

Posted 10 December 2007 - 11:01 PM

@toyotabedzrock: thanks for using my "ModernMenu" :)
I'm very happy to see something useful ^_^

@JerryD: I think you should try the newest release version of AutoIt3.

Greets
Holger

#12 Achilles

Achilles

    Achilles == Ichigo

  • Active Members
  • PipPipPipPipPipPip
  • 2,897 posts

Posted 10 December 2007 - 11:28 PM

Sweet! I think I'll add this into my Multiple Desktops program...

#13 JerryD

JerryD

    Polymath

  • Active Members
  • PipPipPipPip
  • 247 posts

Posted 11 December 2007 - 09:24 AM

Updated to latest release - very nice indeed!

#14 toyotabedzrock

toyotabedzrock

    Seeker

  • Active Members
  • 29 posts

Posted 13 December 2007 - 12:11 AM

Bravo! Really nice script. Thanks for sharing.

I used to use a freeware utility similar to this, but having the luxury to call autoit funcs directly makes your program the hands-down favorite. Is it possible to add seperators to the sub-menus? When I tried placing them between sub-menu items in the XML file they would appear on the main menu.

Also, I think that this would make a fine addition to your script:
Two Tray Menus Right & Left Click
http://www.autoitscript.com/forum/index.ph...mp;#entry443055

That way you could configure it so that an app menu appears on left-click, and maybe a folder menu or configuration menu on right-click.

Keep up the good work!


Could you show me your xml file so i can test it and correct the code?

I was also thinking about doing a dual menu but im not sure about what the fuction of the other menu would be. Id like to make the fuction of the other menu customizable.

Edited by toyotabedzrock, 13 December 2007 - 07:10 AM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users