Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal

Question

Hey I am writing a program and has of right now I am using event.pullMultiple because it is used to control my fluid nuclear reactors. It can shut them off and turn them on and also out puts data but I am having trouble getting it to update automatic without hitting a button on the keyboard. Without losing function of the program I can get code on here later if need be. Thanks

Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 1

event.pullMultiple is a "blocking" call, meaning it waits until an event has happened. Supply it with a timeout in seconds as the first argument to resume every so often.

event.pullMultiple(1, 'interrupted', 'touch') -- # 1 is the number of second to wait for an event before resuming.

 

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.