Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday April 18 2015 - 06:04:20
Dated: Wednesday November 9 2005 - 10:19:50 GMT
For example, I have one function that reboots a remote machine (let's called it RemReboot). What do I need to specify in the menu_data.js file to make it call the RemReboot Vbscript function in the HTA?
Dated: Wednesday November 9 2005 - 10:29:40 GMT
never mind, I found it in another post. For any others that want to know you do this
aI("text=Vbscript Menu Test;clickfunction=TestMsg();")
The TestMsg Sub/Function needs to be in your HTA
Dated: Wednesday November 9 2005 - 14:37:47 GMT
Thanks so much for posting the solution. We appreciate it.
Dated: Wednesday November 9 2005 - 15:20:51 GMT
No problem. Now all I need to find out is how to make entries in the menu dynamic.
My HTA is used to get info on remote PCs and one of the things it retrieves is a list of shares available on the machine. Currently those shares are added to an HTML listbox from which the user selects which share to browse/manage. It would be nice to have a menu entry that is dynamically created with the various shares. I think that might be a little beyond my very limited JSscript skills though
Dated: Thursday November 10 2005 - 0:24:02 GMT
Well, it is way beyond mine But, I know there is a php menu which retrieves things from a data base, and there is also a asp, and something about mysql, so I'm sure it's possible.
Dated: Monday November 21 2005 - 16:32:04 GMT
There is a menu editing API at http://www.milonic.com/mm_menueditapi.js that will allow you to dynamically change menus and menu items.
Dated: Friday December 2 2005 - 15:06:01 GMT
Excuse my newbie ignorance but how do you incoporate this into a simple HTA? For example, here's a test one I have.
MsgBox "HELLO WORLD"
Let's say I have another Sub that goes off and gets all the open shares on a machine. How can I have the API add a menu item for each share?
I hope I've explained that correctly.