| Author |
Message |
|
PHX
Lieutenant
Joined: Sat Mar 03, 2001 3:00 am Posts: 592 Location: USA
|
Ive seen some scripts display small data screens showing like busts, xp, and whatever. Could these windows be used to display incoming fed/sub messages? How do I generate such a window?
|
| Wed Apr 14, 2004 3:24 am |
|
 |
|
Zentock
Lieutenant J.G.
Joined: Mon Sep 22, 2003 2:00 am Posts: 486 Location: USA
|
Heres how to do it but i understand that the windows will be back in twx ver 203. so all u need to do is wait a bit.
setWindowContents
Purpose: Sets the display content of a script window.
Syntax: setWindowContents {windowName} {value}
{windowName}: The name of the script window to have its contents set.
{value}: The text content to place inside the script window.
Notes: Script windows are not supported in TWX Proxy v2.00. This command is provided for backwards compatibility only.
Cut and pasted from the twx script html file enclosed w/twx
thank you Xide for that great file.
_________________ C.E.O. Corp Noble House Sysop - Zentock's Realm TWGS Co-Sysop - Vulcans Forge TWGS
Admin. Vulcans Forge Forums Vulcans Forge TeamSpeak
|
| Wed Apr 14, 2004 5:08 am |
|
 |
|
ElderProphet
Commander
Joined: Tue Oct 07, 2003 2:00 am Posts: 1134 Location: Augusta, GA
|
Well, I doubt you've seen script windows... those are just clever ANSI displays. Keep in mind that the text scrolls upwards, so to accomplish these windows in the current revision of TWX, you have to clear the screen using the ANSI escape code #27 "[2J". Then you have to redisplay the information and it will appear at the top left of the screen. Let me show you... copy the following to test.ts and run it:
echo ANSI_15 #27 "[2J####################*#Top-Left of screen#*#Data Window: Text #*####################*"
Make sure that ends up on just one line.
Script Windows will be supported in 2.03, but they are a Message box type of window, as in, a Windows pop up message box... nothing Telnet or ANSI about them. They show up with the pretty blue bar at the top, red X in the top-right corner, and whatever contents you've setup... you know... a window.
Lots of other Escape codes for you to learn... so get busy.
+EP+
_________________ Claim to Fame: only guy to ever crack the TW haggle algorithm, and fig/shield/hold price formula, twice.
|
| Wed Apr 14, 2004 10:53 pm |
|
 |
|
Cherokee-TLTT
Ensign
Joined: Sat Jan 19, 2002 3:00 am Posts: 214 Location: USA
|
"Well, I doubt you've seen script windows... "
Why is that? TWX version 1.09 supported them, so it's quite likely that a player like PHX has seen them.
_________________ Cherokee
The Lost Traders Tavern
http://tavern.homeip.net
Deployed Fighters Report Sector 911: Cherokee's Imperial Starship entered sector.
|
| Thu Apr 15, 2004 11:12 am |
|
 |
|
PHX
Lieutenant
Joined: Sat Mar 03, 2001 3:00 am Posts: 592 Location: USA
|
Indubidibly.
|
| Thu Apr 15, 2004 11:22 am |
|
 |
|
ElderProphet
Commander
Joined: Tue Oct 07, 2003 2:00 am Posts: 1134 Location: Augusta, GA
|
Assumptions... and you know what they say about assumptions. I stand corrected. If you were talking about TWX v1.09 script windows, then they will be available again in v2.03. Until then... escape codes.
+EP+
_________________ Claim to Fame: only guy to ever crack the TW haggle algorithm, and fig/shield/hold price formula, twice.
|
| Thu Apr 15, 2004 10:05 pm |
|
 |
|
PHX
Lieutenant
Joined: Sat Mar 03, 2001 3:00 am Posts: 592 Location: USA
|
Heh, ASSUME make an Butt out of U and ME...
|
| Thu Apr 15, 2004 11:09 pm |
|
 |
|
Strider_2001
Lieutenant J.G.
Joined: Sat Mar 15, 2003 3:00 am Posts: 463 Location: USA
|
I was a freshman in high school when my science teacher told us that assume things PHX i thouhgt it was the funniest thing that i had ever heard
_________________ The Republic
|
| Fri Apr 16, 2004 2:05 am |
|
 |
|