Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > General

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 04-03-2019, 12:21 AM
saveway saveway is offline
Registered User
 
Join Date: Feb 2012
Posts: 6
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.
Reply With Quote
  #2  
Old 04-03-2019, 08:26 AM
bgagnon bgagnon is offline
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 4,636
Hi saveway,

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

What version of SecureCRT are you using?

On what OS/platform?
__________________
Thanks,
--Brenda

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730
Reply With Quote
  #3  
Old 04-03-2019, 10:36 PM
saveway saveway is offline
Registered User
 
Join Date: Feb 2012
Posts: 6
version info..

Windows 10

+

SecureCrt Version 8.5.0 (x64 build 1740)
Reply With Quote
  #4  
Old 04-04-2019, 08:40 AM
bgagnon bgagnon is offline
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 4,636
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.
__________________
Thanks,
--Brenda

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

Tags
button , paste

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 03:34 AM.