Jeff, from your description of the:
guisendmsg(somewindowhandle "POST",...)
I had the impression the sender of it, doesn't wait until the receiving task has processed the request.
But testing it, it seems it does! I used you SENDMSG2 and added:
...
SAY TIME('L')
guisendmsg(somewindowhandle "POST", 40000, 1, -1)
SAY TIME('L')
...
and SENDMSG2 with the modification:
...
WHEN 40000 THEN DO
guisay("Received event 40000 with ARG(1) =" ARG(1) "and ARG(2) =" ARG(2))
SLEEP(15)
END
...
my results show, that sendmsg2 doesn't proceed before sendmsg1 (with the sleep function) has returned control. |