quiz button system

Moderator: Moderator Group

quiz button system

Postby maarten » Mon Dec 28, 2015 8:35 pm

hey Guys,

Sorry, I am a bit new with WD so there might (hopefully) be an easy solution for my problem...

I would like to use WD to make a quiz button system i have a phidgets 8/8/8 card to attach 6 button to WD
the challenge is to make sure that when one person pushes a button the signal of the others doesn't come trough until a reset button is pushed..

is that possible with WD and so yes.. could you help me please


regards

Maarten
maarten
 
Posts: 23
Joined: Fri Jun 14, 2013 3:26 pm
Location: Hoorn, The netherlands

Re: quiz button system

Postby Benni_M » Tue Dec 29, 2015 1:12 am

Hey Maarten,
it is possible.
In custom script buttons, you could use an if-clause in order to check if you should be allowed to click or not.
for example:

You create a variable "check".
if check = 0
{
check = 1
WDLabelText,1,Button 3
}

And the Reset Button sets the Variable back to 0.

Greets,
Benni
Benni_M
 
Posts: 148
Joined: Thu Apr 12, 2012 3:45 pm

Re: quiz button system

Postby maarten » Tue Dec 29, 2015 2:46 pm

Hey Benni,

Thanks so much for your reply!!

to be honest i still do not completly understand..

so i make the variable...

but what do i do with the outputs of the phidgets node exactly ?

regards Maarten
maarten
 
Posts: 23
Joined: Fri Jun 14, 2013 3:26 pm
Location: Hoorn, The netherlands

Re: quiz button system

Postby JustynR » Tue Dec 29, 2015 7:19 pm

I thought a screen shot would be the easiest way to explain it.

I hope it makes sense.


The reason that I will put scripts like that in buttons is so I can quickly edit them and so there is a visual feedback like this.

You could do it without the buttons certainly, but you will only have the label letting you know what's happening.

This is how I would make it.
Of course you'll have to add 6 more script nodes than what I have.

Let me know if you've got any questions.
You do not have the required permissions to view the files attached to this post.
Justyn Roy
Toronto Ontario Canada
JustynR
 
Posts: 560
Joined: Wed Mar 25, 2009 1:33 am
Location: Toronto, Canada


Return to Widget Designer V4.7

Who is online

Users browsing this forum: No registered users and 21 guests