I got a dialog with 2 buttons, PLAY and PLAYSLIDESHOW
PLAY - clicking this button, i want to make some action, for example run command ---logfilewrite "hello NI"---
PLAYSLIDESHOW - here i would like to create loop, which will click every second on first PLAY button.
The problem i got is i dont know how to let the user end this loop.
Got following code
Do While Not IsKeyPressed(&H20)
Call KeyWait
Call btNext.RunClick
Call oUDI.Sleep(1000)
Loop
This is useless, because its frozen untill user press some key. I would like it to run every second, but ends only when user press ESC. This could be done, if the function "KeyWait" would have a ms parameter like Sleep command has.
Does Diadem got some pattern for creating this kind of loop?
If i comment the "KeyWait" function, its sleeps for one second and in this one second, all diadem buttons and everything is frozen, so i cant do nothing, even stop it and needs to kill Diadem application.