23rd August 2008 - There was an issue with our name caching server at around 08:00AM GMT. It has been fixed.

Running external program from the main menu

Well, ask how to?

Running external program from the main menu

Postby JakeBullet on Wed Apr 11, 2007 12:22 am

eHome supports 6 extra user defined menus.

Go to the Windows START menu and under the eHome Digital Tools program group select 'Client menu Editor.

You now see 6 new menu items.

These correspond to 6 new functions in the eHomeClient.vbs file.
EXT_RUN_USER01
through
EXT_RUN_USER06


So if in menu 1 (EXT_RUN_USER01) we want to run Powerhome, We do this in the eHomeClient.vbs:

Function EXT_RUN_USER01()
'--- USER 01 Function
'msgbox "EXT_RUN_USER01"

'--- shells or finds a application
dim sadStartsWith: sadStartsWith = 0
dim sadContains: sadContains = 1
dim sadMatches: sadMatches = 2

Dim sPrgCation,sPathAndFile, nFindWinBy

nFindWinBy = sadContains
sPathAndFile = "C:\Program Files\powerhome\pwrhome.exe"
sPrgCation = "powerhome"

g_oGbl.EH_AppActivate sPrgCation,sPathAndFile, nFindWinBy

End Function

Its all VBS code so you can use, call any function VBS supports.

And now powerhome is added the the eHome main menu

NOTE To SELF... Its 3:27am Go to sleep
JakeBullet
Site Admin
 
Posts: 1102
Joined: Thu Mar 23, 2006 8:13 am

Return to How to...

Who is online

Users browsing this forum: No registered users and 1 guest



FREE FORUM Hosting by AtFreeForum. Create your Free WEB FORUM Hosting now!
GROUP DISCUSSION Features - Free FORUM HOSTING Directory Listing - DISCUSSION FORUM Terms of Service - FREE PHPBB Hosting Privacy
- FASHION ACCESSORIES
cron