#37075 - 2003-02-27 05:51 PM
Marque style text screen
|
WillUK
Fresh Scripter
Registered: 2001-12-30
Posts: 18
Loc: derby, uk
|
Hi,
I am looking to create a kixform/dos window script, that can display text moving across the screen like the marque screen saver.
Can someone give me a hint on how I can set the text moving from one side of the screen to another. The text would come from a text file, and loop around.
Someone please help....
_________________________
If at first you don't succeed, give up your making a fool of yourself.
|
|
Top
|
|
|
|
#37078 - 2003-02-27 06:54 PM
Re: Marque style text screen
|
WillUK
Fresh Scripter
Registered: 2001-12-30
Posts: 18
Loc: derby, uk
|
Thanks,
Can you let me know how to do the following:
I have made a text file on my c drive, and this needs to be updated - when saved can this update the form too:
$=createobject("kixtart.form") $.size=$.screen.width,60 $.left=0 $.top=804 $.borderstyle=5 Open(1, "c:\test.txt",2) $text = ReadLine(1) $looper=$.timer(100) $looper.ontimer="mover"
$.show while $.visible $eh=execute($.doevents) loop
function mover() $.backcolor=$.backcolor $.printxy($.width-$counter,5,$text) $counter=$counter+3 if $counter>0.9*$.fontsize*len($text)+$.width $counter=0 endif endfunction Close (1)
When I try and save an update to the text file, it says that that the file is in use....
Also can the kixform be made to always be on top?
thanks again
_________________________
If at first you don't succeed, give up your making a fool of yourself.
|
|
Top
|
|
|
|
#37080 - 2003-02-27 07:05 PM
Re: Marque style text screen
|
WillUK
Fresh Scripter
Registered: 2001-12-30
Posts: 18
Loc: derby, uk
|
Currently we have a web page that refreshes every 60secs, users can update the text file and at the next update this also updates the screen..
Setfocus("window name") loop
_________________________
If at first you don't succeed, give up your making a fool of yourself.
|
|
Top
|
|
|
|
#37081 - 2003-02-27 08:39 PM
Re: Marque style text screen
|
WillUK
Fresh Scripter
Registered: 2001-12-30
Posts: 18
Loc: derby, uk
|
while $.visible $eh=execute($.doevents) Open(1, "c:\test2.txt",2) $text = ReadLine(1) $looper=$.timer(40) $looper.ontimer="mover" close (1) loop
Thanks [ 27. February 2003, 20:40: Message edited by: WillUK ]
_________________________
If at first you don't succeed, give up your making a fool of yourself.
|
|
Top
|
|
|
|
#37083 - 2003-02-28 04:59 PM
Re: Marque style text screen
|
WillUK
Fresh Scripter
Registered: 2001-12-30
Posts: 18
Loc: derby, uk
|
Thanks,
Is there anyway that I can stop the text from flickering at all - or is this a video card issue?
_________________________
If at first you don't succeed, give up your making a fool of yourself.
|
|
Top
|
|
|
|
#37085 - 2003-03-03 10:59 AM
Re: Marque style text screen
|
WillUK
Fresh Scripter
Registered: 2001-12-30
Posts: 18
Loc: derby, uk
|
Can the close button be switched off - to prevent closing the window?
_________________________
If at first you don't succeed, give up your making a fool of yourself.
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 837 anonymous users online.
|
|
|