Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Small-simplistic program, need help

Author
Message
timax
19
Years of Service
User Offline
Joined: 25th Jan 2005
Location:
Posted: 26th Jan 2005 06:58
Hey all, I am working on my first program and one member made a simple text based program here:
print "press space to start"
do
if spacekey()=1 then goto start
loop
start:
print "downloading virus..."
wait 2000
print "virus downloaded"
wait 2000
print "deleting all Documents..."
wait 2000
print "all documents deleted"
wait 2000
print "deleting all programs..."
wait 2000
print "Warning going to internet to download virus stopper"
wait 2000
print "error #230 internet connection unavailiable"
wait 2000
print "computer erase process complete":wait 2000:print "Have a nice day":wait key

I am looking to remove the waiting and let the veiwer pick when they are ready to go on. I messed about with trying to make the spacebar replace the waits but no good came of it. Any suggestions?
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 26th Jan 2005 08:25
timax
19
Years of Service
User Offline
Joined: 25th Jan 2005
Location:
Posted: 26th Jan 2005 13:43
ok-could you place the code for that? thx much- (yes I Know all these questions are very noobish, but *sigh* you have to start somewhere)
artofwot
19
Years of Service
User Offline
Joined: 22nd Jan 2005
Location: Right behind you...
Posted: 27th Jan 2005 04:31
It's just "WAIT KEY"

(No quotes)... Like this...



When you press the space bar (or any other key it will advance to the next line)...

Or is that not your question?
timax
19
Years of Service
User Offline
Joined: 25th Jan 2005
Location:
Posted: 27th Jan 2005 06:28
that is my question, thank you

Login to post a reply

Server time is: 2024-11-27 21:48:35
Your offset time is: 2024-11-27 21:48:35