Clear text in upper left corner of screen from script?

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
sysQuik
Corporal
Posts: 25
Joined: Fri Feb 07, 2003 9:54 am

Clear text in upper left corner of screen from script?

Post by sysQuik »

Does anyone know how to clear the text displayed in the upper left corner of the screen? I've been looking through all the classes in the SDK and I know it must be in there, but I'm not finding it. I've used the poormans methed of a few iprintln "", but it's hard to catch what else has been listed in the console unless I log it to a file. Also the text jumps up and down with that method. I've search through the index here as well, but to no avail. Also this would be from script, not typing a command into the console.

Thanks,
SysQuik
User avatar
The Jackal
Sergeant Major
Posts: 101
Joined: Wed May 07, 2003 10:09 am
Contact:

Post by The Jackal »

I am not sure what you are referring to, but here is an array of print commands.

Code: Select all

iprint
iprintln
iprintlnbold
iprintln_noloc
iprintlnbold_noloc
mprint
mprintln
centerprint
stufftoprint
locprint
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

Iprintln dissappears after a while on it's own .
sysQuik
Corporal
Posts: 25
Joined: Fri Feb 07, 2003 9:54 am

Post by sysQuik »

I just want to clear the text on the screen. I know it will fade after awhile, but I mean clear it right away with a line of script. It must be possible. Thanks for all your input!

Sysquik
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Post by Bjarne BZR »

How about printing multiple lines of empty strings, to push the exising lines out... ( think there is a max to the number of lines that fit ).
Admin .MAP Forums
Image
Head above heels.
User avatar
The Jackal
Sergeant Major
Posts: 101
Joined: Wed May 07, 2003 10:09 am
Contact:

Post by The Jackal »

I think its 5 lines per print screen. But I still do not understand what he is tryng to do. Perhaps he or anyone can break it down for a dummy. :oops:
nuggets
General
Posts: 1006
Joined: Fri Feb 28, 2003 2:57 am
Location: U-england-K (england in the UK) :P
Contact:

Post by nuggets »

clear:
iprintln "";iprintln "";iprintln "";iprintln "";iprintln ""
end

only problem though, if it's being used too quickly, you will end up with more than 5 lines
hope this helps, prob not cos it's all foreign 2 me :-/
Slyk
Lieutenant Colonel
Posts: 361
Joined: Sun Jul 14, 2002 12:42 am
Location: Elizabethtown, PA

Post by Slyk »

Nuggets is right. I'd mod it a bit by printing the line you WANT, then put in a wait statement like:

iprintln "my text stuff"
wait 5
iprintln ""
wait .5
iprintln ""
wait .5
iprintln ""
wait .5
iprintln ""
wait .5
iprintln ""

Just alter the wait time to something fair enough for reading the text. The .5 waits between the blanks prints would make it move up at a good pace....ofcourse no .5 or no wait at all will give ya the immediate clear. Whichever looks best to you.
sysQuik
Corporal
Posts: 25
Joined: Fri Feb 07, 2003 9:54 am

Post by sysQuik »

Thanks everyone for the input. I've been doing that 5 blank lines to clear the text, but it makes it hard to read earlier messages in the console. No biggie really, I just logfile if I think I'll need it.

Thanks again,
Sysquik
Post Reply