Announcement
Collapse
No announcement yet.
Need Wait or Pause (command or function)
Collapse
X
-
There is no sleep or pause in Lua because there is no sleep in ANSI C so you have to do something and that something on a single thread is going to make the app non responsive so the bundled Application.Sleep() function is about as good as it gets really but there is a few suggestions here along with here and also there is the WinApi Lua module that does have a sleep function but having tried that its only good for a second or two.
Leave a comment:
-
-
Need Wait or Pause (command or function)
Hello Friend
I need the command Wait or Pause
Action Application.Sleep(Ms); Cause the all program to crash
For example :
Code:SerialPort.Output(":7F10011200020400C8000090", "true"); Wait (1000) ; if (SerialPort.BufferCount()==0) then --do nothing else serialget=SerialPort.Input(); end
In all programming language, there is a wait command
I'm surprised, because it without such the ability toTags: None
-
Leave a comment: