Sie sind nicht angemeldet.

1

Dienstag, 26. September 2023, 06:04

Stop for a few seconds in the javascript action

Hey all,
I wanna stop for a few seconds before continuing to execute the commands in the javascript action.
Do u know how to do?
Thanks

3

Dienstag, 26. September 2023, 11:36

This still executes the remaining commands. But I have another solution so I don't have this problem anymore. Anyway, thank you.

4

Dienstag, 26. September 2023, 17:39

really halting the script like in is not something you do in javascript
there is no "wait" command

https://stackoverflow.com/questions/1569…t-wait-function

Zitat

Any attempt to make execution stop for a certain amount of time will lock up the browser
and switch it to a Not Responding state. The only thing you can do is use setTimeout correctly.

5

Donnerstag, 28. September 2023, 05:48

Any attempt to make execution stop for a certain amount of time will lock up the browser
really halting the script like in is not something you do in javascript
there is no "wait" command

https://stackoverflow.com/questions/1569…t-wait-function

Zitat

Any attempt to make execution stop for a certain amount of time will lock up the browser
and switch it to a Not Responding state. The only thing you can do is use setTimeout correctly.
Ok i got it

6

Donnerstag, 28. September 2023, 17:05

there is something like that in krpano action script... wait() call
but also there it causes problems...
these timeouts or delayedcalls (action script) can make scripts pretty complex ;-)
specially if need return values and do something with them later on etc.