VanDyke Software Forums

VanDyke Software Forums (https://forums.vandyke.com/index.php)
-   General (https://forums.vandyke.com/forumdisplay.php?f=11)
-   -   Is there any way? (https://forums.vandyke.com/showthread.php?t=13480)

saveway 04-03-2019 01:21 AM

Is there any way?
 
1. I want to send special key combination to connected sessions by button.
ex) If I click the button, CTRL+B is sent to session.
If I click the button, CTRL+ALT+R is sent to session.


2. I want to send a same string to all the connected session by button.



3. If I copy multiple lines and want to paste each line to each session.
ex) I connect 3 sessions like below

host1
host2
host3

and I copy 3 lines like below

foo-bar1
foo-bar2
foo-bar3

Now I want to foo-bar1 is pasted to host1 and foo-bar2 is pasted to host2 and so on.

bgagnon 04-03-2019 09:26 AM

Hi saveway,

Yes, there is likely a way to do all of that. :)

What version of SecureCRT are you using?

On what OS/platform?

saveway 04-03-2019 11:36 PM

version info..
 
Windows 10

+

SecureCrt Version 8.5.0 (x64 build 1740)

bgagnon 04-04-2019 09:40 AM

Hi saveway,
Quote:

1. I want to send special key combination to connected sessions by button.
ex) If I click the button, CTRL+B is sent to session.
If I click the button, CTRL+ALT+R is sent to session.
For the above, you could use Command Window (with Send Characters Immediately and Send To All Sessions enabled) and perform this easier. If you must use a button on the Button Bar I'm pretty sure you can send the octal value for Ctrl+B (\002) as a literal string and it will work, but I'm not sure what the octal value for Ctrl+Alt+R would be.

There's an alternative way to do it with a simple one-line script. Do you know the actual data sent by Ctrl+Alt+R?

Are you connecting to a Linux system? If so, what are the results of the cat -v test as suggested in the Help topic Scripting / Determining Escape Sequence Key Codes? I will explain the alternate method later if you cannot find out what data is sent by Ctrl+Alt+R.


Quote:

2. I want to send a same string to all the connected session by button.
Changes in SecureCRT 7.1 (Beta 1) -- February 26, 2013
------------------------------------------------------
New features:

  • A button action can be sent to all connected tabbed or tiled sessions by pressing SHIFT+<click> on the button.

Quote:

3. If I copy multiple lines and want to paste each line to each session.
ex) I connect 3 sessions like below
Sorry, I was wrong. I don't know of any way you can do this manually. If you want to use a "host-specific" commands file and perform those actions via a script, check out this example script.

See the April 2018 comments regarding the setup necessary.


All times are GMT -6. The time now is 09:40 AM.