Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > General

Reply
 
Thread Tools Display Modes
  #1  
Old 10-16-2013, 02:00 AM
exzzz exzzz is offline
Registered User
 
Join Date: Oct 2013
Posts: 6
Smile how to add "send string" function in right-click menu?

I need to input a lot of passwords for different linux servers, now I am using button bar to do the job ,but I'd like to add similar function to rightclick menu, it will be more convenient for me.

I read help topic and found "Customizing the User Interface", it says the users can use "user-defined commands" in toolbar and menus, which includes "SEND" function.

I copyed and modify the "default.mnu" and load it in globle settings.
tried to add a command in "POPUPMENU "[context]", but it doesn't work.

I want to know if it's possible to add a button which can send strings like "su\r" ?
and how?
Reply With Quote
  #2  
Old 10-16-2013, 10:15 AM
bgagnon bgagnon is offline
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 4,548
Hello exzzz,

What version of SecureCRT are you using?

On what operating system/platform?

I just want to be sure this warning appears in any thread referencing menu customization.

As noted in SecureCRT's Help file:

Quote:
WARNING: Customizing the SecureCRT interface by editing the menu configuration file can be a complex undertaking. Some programming knowledge will be helpful.

Quote:
I copyed and modify the "default.mnu" and load it in globle settings.
tried to add a command in "POPUPMENU "[context]", but it doesn't work.
What, specifically, were the additions you made to the menu file?

In what way did it not work?

Here is what I added to a custom menu to send the string Hello World:

Code:
POPUPMENU "[context]"
    MENUITEM "Str&ingSend", "SEND", "Hello World\n"
    ...
__________________
Thanks,
--Brenda

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730
Reply With Quote
  #3  
Old 10-16-2013, 11:49 PM
exzzz exzzz is offline
Registered User
 
Join Date: Oct 2013
Posts: 6


securecrt 7.1.2 build 316

and this problem is solved after I post the question, right the way you suggesed, thank you very much!!

there is no similar sample in help document, so it took me a while to find out the grammar:

POPUPMENU "[context]"
MENUITEM "su-", "SEND", "su -\r\ptespw!@#\r"
MENUITEM "exit", "SEND", "exit\rexit\r"
SEPARATOR
MENUITEM "WAN router pw", "SEND", "testnet\renet@)12ospf\r"
......

#################################

may i ask another question?I want to add some icon buttons on the menu.how to do this if i use a user define menu at the same time?

after i used the user defined menu file, the "customize" popmenu doesn't show up when i right click on the menu.I can use it to add some buttons on the menu ,and then hide the toolbar.
"customize" popmenu will show up if the i do not define the menu file and keep the option empty :
"global options"--"terminal"--"advanced"---"custom menu and toolbar file"

I want to add some icon buttons on the menu, like the "Connect in Tab" button described in the toolbar section:
TOOLBAR "[toolbar]"
......
TOOLBARITEM "MENU_TAB_NEW", "MENU_TAB_NEW", , "Connect in Tab/Tile", "Connect in Tab/Tile"


I tried to add those things in the MENU "[main]" section,
1\
TOOLBARITEM "MENU_TAB_NEW", "MENU_TAB_NEW", , "Connect in Tab/Tile", "Connect in Tab/Tileď
2\
MENUITEM "MENU_TAB_NEW", "MENU_TAB_NEW"

the 1 way does not work, the 2 way just show up a text button which named "MENU_TAB_NEW", yes it works, but not a icon button...
Reply With Quote
  #4  
Old 10-17-2013, 10:10 AM
bgagnon bgagnon is offline
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 4,548
Hi exzzz,

You can't display icons on the menu bar. You can only display icons on the toolbar, per the defined syntax:

MENUITEM <”label”>,<”command str”>[,” command argument(s)”][,”string table identifier”][,”accelerator identifier”]

TOOLBARITEM <”icon”>,<”command str”>[,”command argument(s)”][,”string table identifier”][,”accelerator identifier”]


I have added this thread to a feature request in our product enhancement database to add the ability to specify an image/icon for custom menu items (in menu bar). Should a future release of SecureCRT include this feature, notification will be posted here.

If you prefer direct e-mail notification, contact support@vandyke.com and include "Feature Request - Forum Thread #11234" in the subject line.
__________________
Thanks,
--Brenda

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730

Last edited by bgagnon; 10-17-2013 at 10:48 AM. Reason: Created feature request
Reply With Quote
  #5  
Old 10-17-2013, 08:53 PM
exzzz exzzz is offline
Registered User
 
Join Date: Oct 2013
Posts: 6
ok, thank you very much for your help!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 01:41 AM.