VKontakte.DJ
forum traveling
 

Celestial Software

...better by design

Home Support SSH Client Forums
Welcome, Guest
Please Login or Register.    Lost Password?
Setting screen position from a script (1 viewing) (1) Guest
Go to bottom Favoured: 0
TOPIC: Setting screen position from a script
#2581
Setting screen position from a script 6 Years, 9 Months ago  
I would like to know if the screen position can be set from a script file.

Any help would be grately appreciated...

-BG
Big_Goomba (User)
Fresh Boarder
Posts: 10
graphgraph
User Offline Click here to see the profile of this user
Logged Logged  
 
The administrator has disabled public write access.  
#2584
Re:Setting screen position from a script 6 Years, 9 Months ago  
No, there's no direct way to do that. Tell me what you're trying to do and I'll see if I can help.

Normally, the *host* decides what goes on the screen and where the cursor is positioned. If the client tries to change the position, the host could end up displaying data where it is not supposed to and the screen would become garbled.

Brian
bpence (Admin)
Admin
Posts: 1328
graph
User Offline Click here to see the profile of this user
Logged Logged  
 
Brian Pence
Celestial Software
SSH , SFTP, and Telnet in a tabbed interface for Windows XP, Vista, Mobile, and others
 
The administrator has disabled public write access.  
#2585
Re:Setting screen position from a script 6 Years, 9 Months ago  
Hi Brian,

I'm developing a program that will be used for manufacting test that I need to script serial and/or telnet sessions, and I want to be able to hide the session serial/telnet window so that the script running will only display messages that I want the test operator to see.

-BG
Big_Goomba (User)
Fresh Boarder
Posts: 10
graphgraph
User Offline Click here to see the profile of this user
Logged Logged  
 
Last Edit: 2010/12/09 10:47 By Big_Goomba.
 
The administrator has disabled public write access.  
#2588
Re:Setting screen position from a script 6 Years, 9 Months ago  
Setting the cursor position is probably not what you want to do, then. Text coming from the host would still become visible, just in a different position.

What you could do, however, is write your program as a C# program and use AbsoluteTelnet/SSH as an ActiveX component. The same API is available via ActiveX and VBScript. This way, you control what you display in your program, while using AbsoluteTelnet/SSH as the communication back-end that lets you send data to the host and receive responses.

Brian
bpence (Admin)
Admin
Posts: 1328
graph
User Offline Click here to see the profile of this user
Logged Logged  
 
Brian Pence
Celestial Software
SSH , SFTP, and Telnet in a tabbed interface for Windows XP, Vista, Mobile, and others
 
The administrator has disabled public write access.  
#2594
Re:Setting screen position from a script 6 Years, 9 Months ago  
Hi Brian,

Well you're talking over my head now... my scripting experience does not include C#.

I think I'm getting closer to a solution though... So far I've got this working:

- On a web page on our intranet there's a link to launch AbsoluteTelnet with a bad ip address i.e. telnet://MyTest (this starts AT with MyTest.tnt script file.

- The first thing that happens in the MyTest.tnt script file is to disconnect, this along with the configuration settings clears the terminal screen so no connection errors are visible.

Now if I could only close AbsoluteTerminal and Hide AbsoluteTerminal or Make the terminal transparent from the script then I'd be all set...


If you were to grant me three wishes, they would be as follows:

1. A command to close AbsoluteTerminal
2. A command to either Hide AbsoluteTerminal or Make the terminal transparent
3. A command to clear the terminal screen

I know I'm asking a lot, but today is technically my first day at my new job and these features would make the work I've done very impressive...

Best,
-BG
Big_Goomba (User)
Fresh Boarder
Posts: 10
graphgraph
User Offline Click here to see the profile of this user
Logged Logged  
 
The administrator has disabled public write access.  
Go to top