Right-Click context menu

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
Kris
Posts: 375
Joined: Wed May 12, 2010 3:22 am

Right-Click context menu

Post by Kris »

Hiya all,

In HM 8.86, on the bottom of the context-menu, there is "Trace" and "Telnet"...
Is it possible to add menu items there myself, like VNC or MSTSC or IEXPLORE, with the target of the test as command line option...

Thanks!
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

Sure, you may use custom menu profiles (menu User->Custom menu profiles...). There you may create custom menu item, specify command line with macro variables and assign them to different test methods.
E.g. for MSTSC you may specify Command line like the following:
MSTSC /v:%HostAddr%
Please check the manual or visit our web site for more information at:
Custom menu profiles: http://www.ks-soft.net/hostmon.eng/mfra ... m#custmenu
Macro variables: http://www.ks-soft.net/hostmon.eng/mfra ... #currmacro
Kris
Posts: 375
Joined: Wed May 12, 2010 3:22 am

Post by Kris »

Wow do I look stupid :oops:
Never even had a look at the "User" menu.

I did search through the helpfile, but didn't find anything on "context menu"...

Ohwell, I'm on my way.

Thanks!
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

You are welcome :)
Muhammadsalim
Posts: 2
Joined: Thu Jun 16, 2022 3:23 am

Post by Muhammadsalim »

Hello. Please tell me how do I add a vbs script to the context menu and pass the %HostAddr% variable to it? I want to automate the telnet connection to the switch. This is very important to me. I monitor a lot of switches and often run a telnet connection.

Code: Select all

Set WshShell = WScript.CreateObject("WScript.Shell")


WshShell.Run Wscript.Arguments.Item(0)


    WScript.Sleep 500 
    WshShell.SendKeys "admin"
    WshShell.SendKeys "{ENTER}"
    WshShell.SendKeys "12345678"
    WshShell.SendKeys "{ENTER}"
    WshShell.SendKeys "{ENTER}"
    WshShell.SendKeys "{ENTER}"
    WshShell.SendKeys "{ENTER}"
Last edited by Muhammadsalim on Sat Jun 25, 2022 4:53 am, edited 1 time in total.
KS-Soft
Posts: 12846
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

We cannot find any license related to your e-mail.
Could you please contact support @ ks-soft.net and provide your order number or registration name?
Please tell me how do I add a vbs script to the context menu and pass the %HostAddr% variable to it?
Store script in the file and add command like
cmd /c cscript /B /E:VBScript PATH_TO_SCRIPT_FILE "%HostAddr%"

I would suggest to use %HostAddrB% variable

Regards
Alex
Muhammadsalim
Posts: 2
Joined: Thu Jun 16, 2022 3:23 am

Post by Muhammadsalim »

We cannot find any license related to your e-mail.
Could you please contact support @ ks-soft.net and provide your order number or registration name?
I have a trial version that constantly opens a window with registration and at this time my nodes stop pinging.
Store script in the file and add command like
cmd /c cscript /B /E:VBScript PATH_TO_SCRIPT_FILE "%HostAddr%"

I would suggest to use %HostAddrB% variable
I managed to run the script, thanks for the help.
KS-Soft
Posts: 12846
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

You are welcome

Regards
Alex
Post Reply