# When I was using a timer loop with 100 millisecond time and if I use the button onclick it doesn’t work

**URL:** <https://community.thunkable.com/t/when-i-was-using-a-timer-loop-with-100-millisecond-time-and-if-i-use-the-button-onclick-it-doesn-t-work/811105>\
**Category:** Questions about Thunkable X\
**Tags:** beginner\
**Created:** [September 12, 2020, 7:35am UTC](https://community.thunkable.com/t/when-i-was-using-a-timer-loop-with-100-millisecond-time-and-if-i-use-the-button-onclick-it-doesn-t-work/811105 "2020-09-12T07:35:32Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![dhakalanimesh385u25](https://avatars.discourse-cdn.com/v4/letter/d/919ad9/32.png) [@dhakalanimesh385u25](https://community.thunkable.com/u/dhakalanimesh385u25)\
**Post date:** [September 12, 2020, 7:35am UTC](https://community.thunkable.com/t/when-i-was-using-a-timer-loop-with-100-millisecond-time-and-if-i-use-the-button-onclick-it-doesn-t-work/811105/1 "2020-09-12T07:35:32Z")

</div>

When I was using a timer loop with 100 millisecond time and if I use the button onclick it doesn’t work

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [September 12, 2020, 11:15am UTC](https://community.thunkable.com/t/when-i-was-using-a-timer-loop-with-100-millisecond-time-and-if-i-use-the-button-onclick-it-doesn-t-work/811105/2 "2020-09-12T11:15:07Z")

</div>

My timer runs 20 times more often than yours and the buttons are pressed perfectly.

[https://x.thunkable.com/projects/5f5b046d9b58f198bef24663/project/properties/designer/](https://x.thunkable.com/projects/5f5b046d9b58f198bef24663/project/properties/designer/)

---

<div class="post-metadata">

**Author:** ![dhakalanimesh385u25](https://avatars.discourse-cdn.com/v4/letter/d/919ad9/32.png) [@dhakalanimesh385u25](https://community.thunkable.com/u/dhakalanimesh385u25)\
**Post date:** [September 15, 2020, 8:29am UTC](https://community.thunkable.com/t/when-i-was-using-a-timer-loop-with-100-millisecond-time-and-if-i-use-the-button-onclick-it-doesn-t-work/811105/3 "2020-09-15T08:29:51Z")

</div>

I can’t explain my problem but you will know by this [https://x.thunkable.com/copy/20cf355dba6d65693a9062f8c7bc3732](https://x.thunkable.com/copy/20cf355dba6d65693a9062f8c7bc3732)

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [September 15, 2020, 9:39am UTC](https://community.thunkable.com/t/when-i-was-using-a-timer-loop-with-100-millisecond-time-and-if-i-use-the-button-onclick-it-doesn-t-work/811105/4 "2020-09-15T09:39:59Z")

</div>

On my device, the button is pressed well.

I showed you how to handle requests. You decided to do it your way. I’m afraid I don’t want to show the same thing twice.

You chose the wrong way to work with data. It makes sense to use timer requests for slow data exchange (no more than 1 time per second). If you need fast data exchange, you need to use Bluetooth, sockets or other more suitable solutions for this

---

<div class="post-metadata">

**Author:** ![dhakalanimesh385u25](https://avatars.discourse-cdn.com/v4/letter/d/919ad9/32.png) [@dhakalanimesh385u25](https://community.thunkable.com/u/dhakalanimesh385u25)\
**Post date:** [September 15, 2020, 12:04pm UTC](https://community.thunkable.com/t/when-i-was-using-a-timer-loop-with-100-millisecond-time-and-if-i-use-the-button-onclick-it-doesn-t-work/811105/5 "2020-09-15T12:04:49Z")

</div>

This is just a test. Can you suggest me best way to do this ?

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [September 15, 2020, 12:08pm UTC](https://community.thunkable.com/t/when-i-was-using-a-timer-loop-with-100-millisecond-time-and-if-i-use-the-button-onclick-it-doesn-t-work/811105/6 "2020-09-15T12:08:47Z")

</div>

Use Web Api in synchronous mode

---

<div class="post-metadata">

**Author:** ![dhakalanimesh385u25](https://avatars.discourse-cdn.com/v4/letter/d/919ad9/32.png) [@dhakalanimesh385u25](https://community.thunkable.com/u/dhakalanimesh385u25)\
**Post date:** [October 12, 2020, 11:01am UTC](https://community.thunkable.com/t/when-i-was-using-a-timer-loop-with-100-millisecond-time-and-if-i-use-the-button-onclick-it-doesn-t-work/811105/8 "2020-10-12T11:01:13Z")

</div>

So How can I use Web API in a synchronous mode ? Any documentation?

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [October 12, 2020, 3:57pm UTC](https://community.thunkable.com/t/when-i-was-using-a-timer-loop-with-100-millisecond-time-and-if-i-use-the-button-onclick-it-doesn-t-work/811105/9 "2020-10-12T15:57:13Z")

</div>

You have to figure this out for yourself. Thunkable X provides the ability to use different technologies, and how to use these technologies is another question that relates to programming. First, understand what synchronous and asynchronous code operation modes are, and so on. I don’t have any documentation. There is only a training course for beginners - [http://droidscript.ru/main/title\_ds15.php](http://droidscript.ru/main/title_ds15.php)

---

<div class="post-metadata">

**Author:** ![dhakalanimesh385u25](https://avatars.discourse-cdn.com/v4/letter/d/919ad9/32.png) [@dhakalanimesh385u25](https://community.thunkable.com/u/dhakalanimesh385u25)\
**Post date:** [October 15, 2020, 6:42am UTC](https://community.thunkable.com/t/when-i-was-using-a-timer-loop-with-100-millisecond-time-and-if-i-use-the-button-onclick-it-doesn-t-work/811105/10 "2020-10-15T06:42:46Z")

</div>

I am very close to the success only there is one problem. The animation of the button are weird. It is good in thinkable live but in real device it’s acting weird. [https://x.thunkable.com/copy/52af9dfb3c38004df4141cd181699692](https://x.thunkable.com/copy/52af9dfb3c38004df4141cd181699692)

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [October 17, 2020, 7:37am UTC](https://community.thunkable.com/t/when-i-was-using-a-timer-loop-with-100-millisecond-time-and-if-i-use-the-button-onclick-it-doesn-t-work/811105/11 "2020-10-17T07:37:03Z")

</div>

In a live test, this doesn’t work for me at all

---

<div class="post-metadata">

**Author:** ![luv.ak.tech](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/luv.ak.tech/32/104896_2.png) [@luv.ak.tech](https://community.thunkable.com/u/luv.ak.tech)\
**Post date:** [October 17, 2020, 8:07am UTC](https://community.thunkable.com/t/when-i-was-using-a-timer-loop-with-100-millisecond-time-and-if-i-use-the-button-onclick-it-doesn-t-work/811105/12 "2020-10-17T08:07:19Z")

</div>

i

---

<div class="post-metadata">

**Author:** ![dhakalanimesh385u25](https://avatars.discourse-cdn.com/v4/letter/d/919ad9/32.png) [@dhakalanimesh385u25](https://community.thunkable.com/u/dhakalanimesh385u25)\
**Post date:** [October 18, 2020, 3:42am UTC](https://community.thunkable.com/t/when-i-was-using-a-timer-loop-with-100-millisecond-time-and-if-i-use-the-button-onclick-it-doesn-t-work/811105/13 "2020-10-18T03:42:29Z")

</div>

I think the web api doesn’t work on live test. You should try it on a real device

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [October 18, 2020, 3:44am UTC](https://community.thunkable.com/t/when-i-was-using-a-timer-loop-with-100-millisecond-time-and-if-i-use-the-button-onclick-it-doesn-t-work/811105/14 "2020-10-18T03:44:14Z")

</div>

WebAPi works fine for me on all versions of thunkable.

---

<div class="post-metadata">

**Author:** ![bilastois](https://avatars.discourse-cdn.com/v4/letter/b/65b543/32.png) [@bilastois](https://community.thunkable.com/u/bilastois)\
**Post date:** [October 19, 2020, 7:46am UTC](https://community.thunkable.com/t/when-i-was-using-a-timer-loop-with-100-millisecond-time-and-if-i-use-the-button-onclick-it-doesn-t-work/811105/15 "2020-10-19T07:46:20Z")

</div>

you can use the block

i used label1 for it is works timer1

if you want to stop timer1, you change timer1 call stop

![Untitled](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/5/e53c6b20605c520cfbc7ed2eb2ee0eb4e9bce18d.jpeg)

---

<div class="post-metadata">

**Author:** ![dhakalanimesh385u25](https://avatars.discourse-cdn.com/v4/letter/d/919ad9/32.png) [@dhakalanimesh385u25](https://community.thunkable.com/u/dhakalanimesh385u25)\
**Post date:** [October 21, 2020, 8:25am UTC](https://community.thunkable.com/t/when-i-was-using-a-timer-loop-with-100-millisecond-time-and-if-i-use-the-button-onclick-it-doesn-t-work/811105/16 "2020-10-21T08:25:40Z")

</div>

Can you explain Briefly ?

---

<div class="post-metadata">

**Author:** ![bilastois](https://avatars.discourse-cdn.com/v4/letter/b/65b543/32.png) [@bilastois](https://community.thunkable.com/u/bilastois)\
**Post date:** [October 21, 2020, 4:36pm UTC](https://community.thunkable.com/t/when-i-was-using-a-timer-loop-with-100-millisecond-time-and-if-i-use-the-button-onclick-it-doesn-t-work/811105/17 "2020-10-21T16:36:08Z")

</div>

timer1.intervalmilliseconds = 100  
timer1 works timing space (every 100 milliseconds timer1 works)

timer1.start  
timer1 is start

timer1.fires block  
it is work every row codding when timer1 is play

if you want to stop timer1  
you use timer1.stop block

label1 isn’t important. i just want to you see timer1 works.

---

<div class="post-metadata">

**Author:** ![luv.ak.tech](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/luv.ak.tech/32/104896_2.png) [@luv.ak.tech](https://community.thunkable.com/u/luv.ak.tech)\
**Post date:** [October 24, 2020, 11:36am UTC](https://community.thunkable.com/t/when-i-was-using-a-timer-loop-with-100-millisecond-time-and-if-i-use-the-button-onclick-it-doesn-t-work/811105/18 "2020-10-24T11:36:45Z")

</div>

put the blocks as  
label1 set text to label1 get text + 1

---

<div class="post-metadata">

**Author:** ![bilastois](https://avatars.discourse-cdn.com/v4/letter/b/65b543/32.png) [@bilastois](https://community.thunkable.com/u/bilastois)\
**Post date:** [October 24, 2020, 11:55am UTC](https://community.thunkable.com/t/when-i-was-using-a-timer-loop-with-100-millisecond-time-and-if-i-use-the-button-onclick-it-doesn-t-work/811105/19 "2020-10-24T11:55:09Z")

</div>

you think it is counter when timer1 is runnig

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 12:21pm UTC](https://community.thunkable.com/t/when-i-was-using-a-timer-loop-with-100-millisecond-time-and-if-i-use-the-button-onclick-it-doesn-t-work/811105/20 "2024-11-08T12:21:57Z")

</div>


