You still have not explained how to handle a call to a procedure thats in a looped procedure
It looks like you did not understand "background processing" and itoo. You do not register events again and again. You do that only once. And
Your RunMain blocks do not really make sense.
To get specific help,
Unfortunately you did not explain what you are trying to do... the only advice I can give is
Taifun
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


