General information
Category:
Coding, syntax & commands
>>>I have this app that communicates with the COM ports using a DLL. I need to send a request to the DLL and wait about 100 miliseconds before I loop id the wrong return value is received. To achieve this I have a WAIT WINDOW"" TIMEOUT .1
>>>This procedure is called approx every 200 mili seconds with a timer.
>>>
>>>DO WHILE err_code #0
>>> err_code = dll_call(parm1,parm2...)
>>> WAIT WINDOW '' TIMEOUT .1
>>>ENDDO
>>>
>>>...rest of procedure.
>>>
>>>The problem is that the wait window firing as fast as it is my keystrokes to the main application as well as mouse clicks are being "EATEN" by the Wait Window.
>>>
>>>IS THERE ANY OTHER WAY TO "PAUSE" CODE EXECUTION IN A PROGRAM FOR A SPECIFIED TIME BUT WITHOUT A FUNCTION THAT EATS KEYSTROKES??
>>>
>>>THANKS
>>>
>>>BERNARD
I developed an app that had to support user input and poll data at the same time. I broke up the functions. I ran the polling as a seperate app so it wouldn't interfere with my screen input. Just a thought. It gets pretty messy trying to poll something so often and supporting user interface input at the same time.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only