Computer Science Canada Screensaver with time across the screen |
Author: | xmen [ Mon Mar 29, 2004 10:40 pm ] |
Post subject: | Screensaver with time across the screen |
yea so my question is how do i make a screensaver with time across the screen keep on movin to left n back out from rite again? i kno turing can actually read the time of the day......but i just duno how to put it across the screen if the time thing doesnt work, i kno how to read n get from a text file.....so whatever i type on the first line on that text file will be shown across the screen like the time....... DOES ANYONE KNOW HOW TO DO THIS?????????? |
Author: | Paul [ Mon Mar 29, 2004 10:59 pm ] |
Post subject: | |
well you can take a look at thoughtfull's clock program, see if it helps you: http://www.compsci.ca/v2/viewtopic.php?t=2133 |
Author: | Tony [ Mon Mar 29, 2004 11:04 pm ] | ||
Post subject: | |||
Eh... you'd want to use Font.Draw for that
|
Author: | xmen [ Mon Mar 29, 2004 11:33 pm ] | ||
Post subject: | |||
thnx tony but i combine with some stuff with urs to actually make the program exactly i wanted with actually time (with moving seconds) if anyone wants it its here:
|
Author: | xmen [ Mon Mar 29, 2004 11:44 pm ] |
Post subject: | |
lol ok im quite picky here but.......noticing that the time in my program is 24hrclock.......does anyone kno how i can change that to 12hrclock?? how bout with am/pm at the back?? anyone who knows plzzzz share with us. Thankyou. |
Author: | Tony [ Tue Mar 30, 2004 12:33 am ] |
Post subject: | |
well its a string, so grab your first two characters, convert them to numbers (strint) and take a look if its above 12 or not. If so, its PM and you subtracks 12 and stick it back in, otherwise you leave it as it is and its AM |
Author: | xmen [ Tue Mar 30, 2004 4:25 pm ] |
Post subject: | |
sry but i cant reli get the strint part to work.....can ya plz show me?? |
Author: | xmen [ Tue Mar 30, 2004 4:48 pm ] | ||
Post subject: | |||
i get error for this
why??? |
Author: | Cervantes [ Tue Mar 30, 2004 5:11 pm ] |
Post subject: | |
because a colon ( ![]() |
Author: | xmen [ Tue Mar 30, 2004 5:22 pm ] |
Post subject: | |
ok i just want the program to display the hour in 12 hr clock format, NOT 24hr clock can someone just simply modify my screensaver program for me?? i just dont get it man |
Author: | xmen [ Tue Mar 30, 2004 5:34 pm ] | ||
Post subject: | |||
ok nvm guys.....its all done its here if ya wanna see it...
|
Author: | xmen [ Tue Mar 30, 2004 10:06 pm ] |
Post subject: | |
ok another but similar question, the one ive asked above is showing the time to start from the left edge of the screen n goes all the way to the right edge but is there a way not to do that, but instead hav it start at 200 pixels (x axis) n ends at 600?? so like the text wouldnt touch the edge of the screen at all anyone knows how?? |
Author: | jonos [ Tue Mar 30, 2004 10:18 pm ] |
Post subject: | |
make a for loop: for i : 200..600 Font.Draw(intstr(timeofday), i, 100, fontThing) end for i think that will work, im not sure about the intstr because i don't really know if the time is an integer or a string :/ |