P
Peted
Hi
wondering what is the best way to do this
Need a user to click a button, that sends 3 or 4 string based commands
via a TCP/ip socket link
I can connect to the ip device no problems, am using indy sockets, and
can send information ok
but i need a good way to send 3 or 4 consecutive commands/data to the
ip device with variable (200ms to 1000ms) dellay between the commands,
from 1 button click
The number of commands to be sent can vary and the delay time between
the commands can vary depnding on the needs at the time
EG to IP device
command 1
pause 200ms
command 2
pause 250ms
coomand 3
pause 300ms
command 4
pause 200ms
and i need to be able to have the gui not lock up or freeze while
waiting for the routine to finish sending.
Can anyone point me to atechnique or algorithm to do the pausing
without gui lock
thanks
wondering what is the best way to do this
Need a user to click a button, that sends 3 or 4 string based commands
via a TCP/ip socket link
I can connect to the ip device no problems, am using indy sockets, and
can send information ok
but i need a good way to send 3 or 4 consecutive commands/data to the
ip device with variable (200ms to 1000ms) dellay between the commands,
from 1 button click
The number of commands to be sent can vary and the delay time between
the commands can vary depnding on the needs at the time
EG to IP device
command 1
pause 200ms
command 2
pause 250ms
coomand 3
pause 300ms
command 4
pause 200ms
and i need to be able to have the gui not lock up or freeze while
waiting for the routine to finish sending.
Can anyone point me to atechnique or algorithm to do the pausing
without gui lock
thanks