Terminal Service with 'Screen' command and multi - WeOnlyDo Discussion board

Terminal Service with 'Screen' command and multi (wodSSH / wodSSH.NET)

by Trial User, Wednesday, March 23, 2005, 23:05 (6963 days ago)

I'm demoing your vb version of the app (I've upgraded the files within vb.net and everything works just great btw) I'd like to create a few buttons on the screen next to the console window to allow me to flip thru my screens individually... I currently run about twelve screens on the linux server so the ctrl-a then n aka ^A, n does not work (you can manually flip correctly (much nicer job with this app than the rtcbox on the vb.net ssh version to I must app) by using these keys ctrl-a then hit n Here is what I tried:

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
SendKeys.Send( ^A )
SendKeys.Send( n )

I'm a bit new with the vb.net and have not much experience but wondering if you can tell me how to do this...
I currently using SecureCRT with macro's but really would like to make my own personalized product for my company. yet, before I'd consider puchasing this I guess I need to know if this is possible?

Thanks in Advance!

Re: Terminal Service with 'Screen' command a

by wodSupport, Thursday, March 24, 2005, 09:03 (6963 days ago) @ Trial User

Dear,

if you want to send key to remote session to change terminal screen, perhaps using Telnet1.Send( ^A ) would work instead using SendKeys?

Re: Terminal Service with 'Screen' c

by Richard, Thursday, March 24, 2005, 17:22 (6963 days ago) @ wodSupport

huh?
urmmmm that would just send the characters in text m8.
maybe I didnt make it clear enough...
here, try this with your application please.

open a console and connect to your linux server.
type screen -t SC1 enter
then type screen -t SC2 enter
now....you want to go back to screen SC1 right?
do this hold down 'CTRL' then tap 'A' let go of both, now hit 'n'
you can toggle as many 'screen'(s) that you have by doing that.

how to make a button do that is what I needed to know.
I need to simulate the keys pressed in the same sequence and SendKeys not in plain text like wodTelnetDLX1.Send( ^A )
so If I have 1-20 screens I plan to make a button for each.
now think you can help? :)

thanks again!

Dear,

if you want to send key to remote session to change terminal screen, perhaps using Telnet1.Send( ^A ) would work instead using SendKeys?

Re: Terminal Service with 'Screen

by Richard, Thursday, March 24, 2005, 17:54 (6963 days ago) @ Richard

wodTelnetDLX1.Focus()
SendKeys.Send( ^A )
SendKeys.Send( n )


this seems to work.....looks like I'm liking this a touch more.[:happy:]