VanDyke Software Forums

VanDyke Software Forums (https://forums.vandyke.com/index.php)
-   General (https://forums.vandyke.com/forumdisplay.php?f=11)
-   -   Right-click menu customization (https://forums.vandyke.com/showthread.php?t=13883)

azoulay 08-21-2019 09:53 PM

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,

bgagnon 08-22-2019 07:51 AM

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.

bgagnon 08-22-2019 10:51 AM

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.

azoulay 08-27-2019 04:27 AM

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,


All times are GMT -6. The time now is 03:23 PM.