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 July 14 2012 - 06:07:22
Using the menu system with an HTA and VBscript - AN EXAMPLE
Poster: Ginolard
Dated: Monday December 12 2005 - 10:47:07 GMT
Seeing as I had quite a few "interesting" problems getting this wonderful menu system to work within an HTA I thought it might be useful to post the (almost) finished article so that others who might be trying the same thing could use it as reference point.
ManagePC is an HTA that will let you remotely manage any PC in an Active Directory forest. I used to have loads of buttons all over the place but the menu system has replaced that.
I've used the menueditedit api to dynamically add the names of shares into the Management/Browse menu. I've also used the ChangeItemProperty API to disable/enable the menu depending on whether a machine is offline or not.
Almost all of the menu items call a VBscript/Javascript Sub or Function.
The 1.4 beta version is the one that uses the menu system. The 1.31 version probably won't interest anyone else. You can get it here :-
http://managepc.3ee.co.uk/admin/counter/download.php?id=/downloads/ManagePC_1.4beta.zip