Forum

Setting screen posi...
 
Notifications
Clear all

Setting screen position from a script

0 Posts
2 Users
0 Reactions
158 Views
(@Big_Goomba)
Eminent Member
Joined: 14 years ago
Posts: 10
Topic starter  

I would like to know if the screen position can be set from a script file.

Any help would be grately appreciated...

-BG


   
ReplyQuote
(@bpence)
Member Admin
Joined: 9 months ago
Posts: 1374
 

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


   
ReplyQuote
(@Big_Goomba)
Eminent Member
Joined: 14 years ago
Posts: 10
Topic starter  

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


   
ReplyQuote
(@bpence)
Member Admin
Joined: 9 months ago
Posts: 1374
 

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


   
ReplyQuote
(@Big_Goomba)
Eminent Member
Joined: 14 years ago
Posts: 10
Topic starter  

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


   
ReplyQuote
Share: