OK,
How about you explain a procedure that loops that needs to call another procedure every time it goes through to update status how you would do it.
Once I know how to deal with one i will know how to do the remaining ones.
OK,
How about you explain a procedure that loops that needs to call another procedure every time it goes through to update status how you would do it.
Once I know how to deal with one i will know how to do the remaining ones.
use a clock timer event
and in the background register the Clock1.Timer event and call your procedure in that event handler
remember to not use user interface components in the background
Taifun
What you are doing does not need itoo
Remove the itoo extension, what you were doing is nonsense.
You never created a process, your blocks run in the foreground
And you are trying to create a delay... which is not the way to go, because you block the user interface...
I already suggested what you have to do
Here are example blocks to do this
Taifun
PS: I move this discussion into its own thread, what you are doing is not itoo related
well turns out I do need iToo. So once the app loses focus it does not send the SMS even when the time is up. It only sends when the app has the focus
Yes, you need itoo if you want to do something in the background
Taifun
no clue how to do this correctly
Follow the suggestions in this thread and if you got stuck, post a screenshot of your relevant blocks
Taifun
Can you please post high-resolution blocks? Or atleast a clear portion of the blocks involved.
Did you know you could just right click on the block and save it as an image?
i did
really, and you got a white background ?
Are you serious?
A monster procedure?
Start simple, get it running, then add more logic
For example have 3 phone numbers in a list
Create a background process using the Clock.Timer event, use a timer interval of 10 seconds and send a sms to the next number on each timer event
Taifun
the issue is that while the app is foreground it sends. Its when its in the background it doesnt. It waits till its foreground again.
Start from this example
and get it running in the background
Taifun
Taking another look at your monster procedure...
Remember, there does not exist any user interface in the background... no labels, no textboxes etc
Taifun
no clue
And not interested to start from a simple working example? How do I make a delay interval per text on my bulk SMS app? - #7 by TIMAI2
Here is an example which does something in the background every 5 seconds Open Source • Background Tasks: Itoo 🚀 - #1297 by Kumaraswamy
Now combine those 2 examples to send sms in the background
Taifun