two steps forward, one step back...
I need some advice as to the best approach for this design:
Imagine a card with 4 data fields constantly updating. As soon as the card is opened the four data fields start making REST API calls to get values to put into the fields. I need to have them all simultaneously updating. No user intervention needed or wanted. Field update automatically every 2 seconds or so.
After a hunt through all the documentation I'm at a loss as to the best approach for this. I was going to send a mouse up command to a hidden button containing each script:
card script
Code: Select all
on opencard
send mouseup to fld "1"
send mouseup to fld "2"
send mouseup to fld "3"
send mouseup to fld "4"
end opencard
In each button script I have a repeat forever loop which does everything, waits a couple of seconds, and then updates the field.
I'm sure this is completely the wrong way to do this because I'm sure the repeat loops interfere with each other...
Please start me on a better approach!