Sep-24-2023, 07:55 PM
(This post was last modified: Sep-25-2023, 01:42 AM by Larz60+.
Edit Reason: added bbcode formatting
)
Hi, i have 2 script where one is the Gui i.e script A and another is an api call functions i.e script B.
As i import script B into script A and perform Api call using my Gui button. In my script B , the Api call function have a while loop which will be checking request from the server till time out.
I would like to use a button in script A gui to terminate the while loop in script B. I have tried using global variable from script A and import to script B but it results in error.
Is there a way to terminate the while loop or restart the whole script with a button?
For ex.
Script A :
As i import script B into script A and perform Api call using my Gui button. In my script B , the Api call function have a while loop which will be checking request from the server till time out.
I would like to use a button in script A gui to terminate the while loop in script B. I have tried using global variable from script A and import to script B but it results in error.
Is there a way to terminate the while loop or restart the whole script with a button?
For ex.
Script A :
Import script B Some_functions()Script B
Some_functions() ... .... While (time<maxtime) .... ; request from server ....