openframeworks - How to create a control flow? C++ -


First of all, sorry for the generic title, I did not know who wrote my question

I am in a hassle, I am trying to make a control, but I do not know how to do it. Here's what I would like to do:

I have created a chronometer (just an int that is incremented from 1 to 1) and I want to write it: if click click == 1 and the chronometer is less than 144, it Wait till reaching the number, if it is 144, then do it and take action, in the same way, if clickthrough is less than == 2 and the calender is less than 72, then wait until this number reaches, if the chronometer == is 72 Make and Action

I Feel It To Do It can be so easy, but I do not know how to do it.

Thank you all

In case of events and objects, your problem is better .

Assume that you have a chronometer and it has at least three parts: display, buttons and code. The display will show the value of the chronometer. The button button will behave as you describe the code that is the part that manages everything.

Your chronometer code will receive events from at least two sources: The timer and button timer is a system time that sends messages periodically (such as once). The button will send an event to your chronometer code when the user clicks the button.

So you will need some steady variables to keep your information.

You will need to think in terms of this incident:

  If the event == click the button then click increment and click on click count. Andif if event == timer, then the chronometer increases the value. If price measurement value == limit, then stop the timer. Endiff  

The implementation of the algorithm depends on the GUI framework you are using.


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

lua - HowTo create a fuel bar -