Using the menu system with an HTA and VBscript - AN EXAMPLE

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
Ginolard
Advanced
Advanced
Posts: 24
Joined: Wed Nov 09, 2005 11:13 am

Using the menu system with an HTA and VBscript - AN EXAMPLE

Post by Ginolard »

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 ... .4beta.zip
Post Reply