Depending on button set time interval to 2000ms, 5000ms, 1000 ms ...etc and clock enabled to true. When clock timer set clock enabled to false
assignments from school
I'm going to try now
in my opinion this is wrong?
Make sure you disable 'TimerEnabled' property of all of the Clocks in the designer.
Is this what you want?
'when Clock1. Timer' means that the clock is already enabled. I suggest you watch this video for a better understanding (even though it is abould variables).
for example, I press the -1,2,3 button. The text field should display the characters "rmk" and click the "Send" button via Bluetooth. Firstly "r" and 1 second delay, "m" - 2 seconds delay, "k" - 5 seconds delay.
thank you ok, I'll see it now
it seems to me or it doesn't look like the solution to my problem
OK, I'll show you later. It maybe a bit hard to understand; one year ago, when I was a beginner, I was too, stuck on the same problem.
Try this. I used dynamic components extension by @yusufcihan to create 10 different buttons, and two lists, one with letters and one with time intervals. When any button click a different letter is added to textbox and clock is triggered for a specific period. At the same time all others buttons are disabled . When timer all buttons are enabled again
test_buttons.aia (37.0 KB)
Thank you very much, I looked at your application, but this is not what I wanted, you have a delay in pressing one button and symbol, but I need to write everything, then send everyone "ABS" and then press the send button, then you need to trigger delays
You can always modify the code according to your needs. This was just a test to see how can be done with one clock component
I just don't understand anything, can you help?
When screen initialize 10 buttons automatically created. When any button click I check whether this button was created with above procedure. Then I create a list with all button components and a list with all buttons components except the one I clicked. All buttons in that list (disabled) are disabled. I set the text in textbox to join previous text plus the one the one that I set in letters list - for example if I press button3 C is added to textbox and if I press button 10 K is added. Then I set clock's interval to also choose from a list and set timer to true. When clock timer I enable again all buttons
What if you add bluetooth send text in the procedure maybe like this ?
thanks, but it's not that, for example, I press the first button and the textbox the symbol "a" appears, I press the second button, the symbol "b" appears, I press the third button, the symbol "c" appears and then I press send. Then the application acts like this. The first character "a" is sent "and a delay of 1 seconds, then a 2 character" b "a delay of 3 seconds, then a third character" c "a delay of 5 seconds everything after pressing the send button and everything is sent in order with its delay
If you wish you can post here or pm me your aia to see it
This problem is similar in its timing to sending Morse code, except you are sending letters instead of sounding tones.
See here for how to use lists to feed a Clock Timer...