There is no delay function in nsb app studio.though I can creat my own,but the delay greatly differs in different os, different device;which performs really bad.is there any chance to have a new command , something like: setdelay(800).I have a for loop,I wanted to set some delay in the for loop…,tst
I can set my beloved delay in android 15,but it is a very very very slow delay in android 11.
Can u help to code a for loop using settimeout function.what I know is settimeout jumps to other function;so ,in this case,can’t use in a for loop.it isn’t something like goto,which can use to jump within a for loop.best rdgs, tst
Seems,setinterval can jumps to a loop,which helps in my case. Am I right?, tst
Hi,first,a few random pick tone,me do fa re mi,each with some delay.that the user have to memerise these few tone,and key in the exact few tone to win.i am on the mid way to achieve with a for loop;but I want show me pic,then back pic,then do pic,then back pic,so on and so forth,each with delay.but I haven’t have the luck to see it flipping in action.in between the tone,I use my delay function to slow down each piece of tone.but the delay function differs in each phone ,each android os.best rdgs,tst
Hi,doing some tweak to the given function,search online,using convert to JavaScript,using JavaScript end JavaScript.now,mission accomplished.thanks a lot to @slm.sweet dreams,tst
Glad it worked. I saw you comment on async so I think you might need the following short explanation.
A function marked “async” doesn’t cause the rest of the code to wait until its done. So it you have a function like “async function someFunction()” and you call it in another function like this
X(){
someFunction();
someOtherFunction();
}
the function “someOthterFunction will run immediately after the call to someFunction, even if someFunction hasn’t finished yet.
The “await” keyword, tells the function X not to do someOtherFunction until someFunction if finished.