question i use os.pullevent all the time for cursor and bottons how do i make it so if they press e do this but dont wait for them to press e let them use the computer regulary but if they press e do this?
os.pullevent while thing?
Started by Crowdy199, Jan 26 2013 09:16 AM
5 replies to this topic
#1
Posted 26 January 2013 - 09:16 AM
#2
Posted 26 January 2013 - 09:20 AM
What..?
event, p1 = os.pullEvent() if event == "char" and p1 == "e" then --Do Something endThis What you want?
#3
Posted 26 January 2013 - 09:21 AM
Just some weird grammar you had there..
EDIT: Grammar Nazi On Duty!
EDIT: Grammar Nazi On Duty!
#4
Posted 26 January 2013 - 10:46 AM
What he means is that you can use the computer like you normally would but if "e" is pressed then something happens..
Good question though.. I dont know how to do that and the script hellkid98 posted wont work, that would freeze the computer untill "e" is pressed...
Good question though.. I dont know how to do that and the script hellkid98 posted wont work, that would freeze the computer untill "e" is pressed...
#5
Posted 26 January 2013 - 10:52 AM
What do you mean by "let them use the computer regulary"?
#6
Posted 26 January 2013 - 10:56 AM
You will need a big while true do loop or use parallel.waitForAny().
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











