All Discussions > Steam Forums > Off Topic > Topic Details
Fish Knight 15 Mar, 2013 @ 12:06pm
LUA PROGRAMMING HELP
post what you need help with below!
< >
Showing 1-6 of 6 comments
I wanna make a virus that only attacks non-open source products.
Peltron5000 15 Mar, 2013 @ 8:52pm 
Originally posted by abcabcabc339:
I wanna make a virus that only attacks non-open source products.

Good god! I agree with you, but I wouldn't want all the windows users to get angry and start a war on open-source!


Originally posted by harrison:
post what you need help with below!

You probably have good intentions, but as one Computer Science Major to another at least Computer Science oriented person from what it sounds like, Don't give people answers. Give them help, but half of the learning experience is learning a programming language and features on your own. Otherwise, they'll be lost in later courses.
Fish Knight 15 Mar, 2013 @ 9:37pm 
does anybody know how to time io.read?
like... io.read for 5 seconds?
thanks.
DarkCrystalMethod 15 Mar, 2013 @ 10:29pm 
Is that an asynchronous command? You want it to tell you when its done reading or do you want to interrupt it (if its still going) after 5 seconds?

at best perhaps a loop
while(1)
startime=getmiliseconds
io.read //however its used
endtime=getmiliseconds
print endtime-starttime . " seconds";
endwhile

And I don't know LUA at all but you should be able to subtract the begin time from the end time and print it.
Last edited by DarkCrystalMethod; 15 Mar, 2013 @ 10:34pm
Fish Knight 2 Apr, 2013 @ 5:12am 
i want it to interrupt it.
Fish Knight 2 Apr, 2013 @ 5:16am 
Last edited by Fish Knight; 2 Apr, 2013 @ 5:17am
< >
Showing 1-6 of 6 comments
Per page: 1530 50

All Discussions > Steam Forums > Off Topic > Topic Details
Date Posted: 15 Mar, 2013 @ 12:06pm
Posts: 6