Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > General

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 08-21-2019, 09:53 PM
azoulay azoulay is offline
Registered User
 
Join Date: Aug 2019
Posts: 2
Right-click menu customization

I added a MENUITEM which sends a string : \n telnet \v

POPUPMENU "[context]"
MENUITEM "&Copy", "MENU_COPY"
MENUITEM "&Paste", "MENU_PASTE"
MENUITEM "Telnet ip", "SEND", "\n telnet \v" <-----new line that I added
...




The \n telnet works well but the \v doesn't do anything (it is supposed to send the clipboard to the screen).

So my question is this: how do I send a string + clipboard to the screen ?

--------------
Also,
to perform the same task as above, I also I've tried to put 2 different actions in the same MENUITEM but it doesn't work :

MENUITEM "Telnet ip", "SEND", "\n telnet" ; "MENU_PASTE"

This is my second question:

Is there a way to perform 2 different actions in one single MENUITEM line ?

regards,
Reply With Quote
  #2  
Old 08-22-2019, 07:51 AM
bgagnon bgagnon is offline
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 4,636
Hi azoulay,
Quote:
The \n telnet works well but the \v doesn't do anything (it is supposed to send the clipboard to the screen).

So my question is this: how do I send a string + clipboard to the screen ?
What version of SecureCRT is installed? On what platform/OS?

For me, version 8.5.4 (current, official release) did send what was in my clipboard. Please confirm you have data in the clipboard and retest.


Quote:
Is there a way to perform 2 different actions in one single MENUITEM line ?
I don't believe so, but I've never been asked that before.

I did not find a way to do so, but I'll look at the documentation.
__________________
Thanks,
--Brenda

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730
Reply With Quote
  #3  
Old 08-22-2019, 10:51 AM
bgagnon bgagnon is offline
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 4,636
Hi azoulay,

I have created a feature request on your behalf in our product enhancement database for the ability to sequence multiple menu actions together in a single custom menu item and added this thread info to it. Should a future release of SecureCRT include this feature, notification will be posted here.

If you prefer direct email notification, send an email to support@vandyke.com and include Feature Request - Forum Thread #13883 in the subject line or use this form from the support page of our website.
__________________
Thanks,
--Brenda

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730
Reply With Quote
  #4  
Old 08-27-2019, 04:27 AM
azoulay azoulay is offline
Registered User
 
Join Date: Aug 2019
Posts: 2
Right-click menu customization

Thanks for getting back to me on this. I have Version 8.0.1 of SecureCRT.

I finally found the problem:

When I added a new option (Telnet ip) in the right-click menu, it didn't do what was expected. I was expecting that after right-clicking the option I would see on the screen : Telnet <IP that I hi-lighted>

but instead, I got only : Telnet (with nothing following it).

POPUPMENU "[context]"
...
MENUITEM "Telnet ip", "SEND", "\n telnet \v" <-----new line that I added
...

the problem I had is that \v didn't send what was hi-lighted on my screen.

\v only sends what's in the clipboard.

So the solution to this is to have the option "Copy on select" in the Global options/Terminal checked. Because that options puts automatically whatever you hi-light on screen into the clipboard. If you don't have this checked, it won't work. That's the trick.

So now, when I hi-light an ip address on screen and choose my option "Telnet ip" in the right click menu I get this:

Telnet 172.33.22.01

which is excatly what I was expecting.

Thank you,
Reply With Quote
Reply

Tags
clipboard , customize , menu , menuitem , right-click

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 06:26 AM.