de en es fr
Let the machine help
Light teasing, exhibition, BDSM, sissyfication, watersports... with sounds and pictures


Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Button timeout help
PostPosted: Mon Jul 18, 2016 12:37 pm 
Offline
Active member
User avatar
I am not able to write in english or write code....but i try

My problem is:
No button pressed --> script goes on
Button pressed --> show a message

how can i write: if button pressed then... ?
I know timeout save number of second....but where can i find this variable?
Thanks in advance


Top
 Profile Send private message 
 
 Re: Button timeout help
PostPosted: Mon Jul 18, 2016 12:56 pm 
Offline
Site Admin
User avatar
The 2nd parameter set a timeout ; the result is the total time waiting.
Here I put it in a variable :
Code:
def time = showButton("Please click", 10)
if(time<10) {
  show("Clicked !")
}
// goes on


Top
 Profile Send private message 
 
 Re: Button timeout help
PostPosted: Mon Jul 18, 2016 1:42 pm 
Offline
Active member
User avatar
doti wrote:
The 2nd parameter set a timeout ; the result is the total time waiting.
Here I put it in a variable :
Code:
def time = showButton("Please click", 10)
if(time<10) {
  show("Clicked !")
}
// goes on


THAN YOU!


Top
 Profile Send private message 
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Maroon Fusion theme created by Oxydo
Software, theme modifications, phpBB modification by Doti 2010 - 2020
This website uses session cookies only.