KiXforms Forum Index KiXforms
The Forum for the KiXforms Community
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 Quick Links 
Site News
Downloads
Documentation
Donations
Script Archive
Tracking Systems

twinkle...

 
Post new topic   Reply to topic    KiXforms Forum Index -> Fun & Games
View previous topic :: View next topic  
Author Message
Lonkero
KiXforms Devotee
KiXforms Devotee


Joined: 13 Mar 2003
Posts: 1022
Location: Espoo, Finland

PostPosted: Wed May 07, 2003 7:07 am    Post subject: twinkle... Reply with quote

just wrapped something together and decided to post on own topic as it might develop...

does not use at all the processor... well less than some.

all it does it twinkles "snow" or "star" around the screen.

this could run during logonscript Wink

click on it to close it.
btw, could someone explain why line:
$Form.onclick="$$Form.hide"

needs double $$?
if I take the other one off kix will error with "unexpected command line 0"

and shawn, there is still borders even though I say border=0
this is problem of all builds since last gold.

Code:

$Form = CreateObject("Kixtart.Form")
$=setoption("varsinstrings","no")
$Y = $Form.screen.width
$X = $Form.screen.height
$Form.Width = $Y
$Form.Height = $X
$Form.left=0
$Form.top=0
$Form.border=0
$Form.Backcolor= "black"
$Form.Forecolor = "silver"
$Form.fontsize=36

$=srnd(@ticks)
$Form.show

$timethis=$Form.timer(100)
$timethis.ontimer="$current=drawer($current)"

$Form.onclick="$$Form.hide"
while $Form.Visible
    $=execute($Form.DoEvents)
loop

FUNCTION drawer($)
  $drawer=rnd($X),rnd($Y)
  $Form.printxy($drawer[0],$drawer[1],"*")
  $Form.Forecolor = "black"
  $Form.printxy($[0],$[1],"*")
  $Form.Forecolor = "silver"
ENDFUNCTION

_________________
Hammer
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Jochen
KiXforms Devotee
KiXforms Devotee


Joined: 05 Mar 2003
Posts: 1204
Location: Stuttgart, Germany

PostPosted: Fri May 16, 2003 11:47 am    Post subject: Reply with quote

Quote:
btw, could someone explain why line:
$Form.onclick="$$Form.hide"


because the string is execute()-ed and obviously already pre-tokenized in some way whatsoever Wink

_________________
Jochen

Tell me, and I will forget.
Show me, and I may remember.
Involve me, and I will understand.
Back to top
View user's profile Send private message MSN Messenger
Sealeopard
KiXforms Aficionado
KiXforms Aficionado


Joined: 05 Mar 2003
Posts: 436
Location: Boston, MA

PostPosted: Fri May 16, 2003 12:49 pm    Post subject: Reply with quote

However,
Code:
$=setoption("varsinstrings","no")
should not make the doubling up of the '$' sign necessary.
_________________
Jens

'There are two kinds of vessels, submarines and targets.'
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Lonkero
KiXforms Devotee
KiXforms Devotee


Joined: 13 Mar 2003
Posts: 1022
Location: Espoo, Finland

PostPosted: Fri May 16, 2003 3:38 pm    Post subject: Reply with quote

it kinda feels like bug...
will need to test with the new release...

_________________
Hammer
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
jose3
KiXforms Regular
KiXforms Regular


Joined: 05 Mar 2003
Posts: 55
Location: Buenos Aires - Argentina

PostPosted: Fri Jul 04, 2003 7:50 pm    Post subject: Reply with quote

Ja!
Code:

$Form = CreateObject("Kixtart.Form")
$=SetOption("varsinstrings","no")
$Y = $Form.screen.width
$X = $Form.screen.height
$Form.Width = $Y
$Form.Height = $X
$Form.Left=0
$Form.top=0
$Form.border=0
$Form.Backcolor= "black"
$Form.Forecolor = "silver"
$Form.fontsize=36

$=SRND(@ticks)
$Form.show

$timethis=$Form.timer(100)
$timethis.ontimer="$current=drawer($current)"

$Form.onclick="$$Form.hide"
While $Form.Visible
    $=Execute($Form.DoEvents)
Loop

Function drawer($)
 $drawer=Rnd($X),Rnd($Y)
 $Form.Forecolor = Rnd(0)
 $Form.fontsize = Rnd(200)
 $Form.printxy($drawer[0],$drawer[1],@USERID)
 CLS
EndFunction

_________________
I am green and I am proud.
THE CABBAGE MAN
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Lonkero
KiXforms Devotee
KiXforms Devotee


Joined: 13 Mar 2003
Posts: 1022
Location: Espoo, Finland

PostPosted: Wed Aug 20, 2003 1:47 pm    Post subject: Reply with quote

jose, what ja?
_________________
Hammer
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    KiXforms Forum Index -> Fun & Games All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group