That's grate! But I have problem with this one... I have a tag with:
code:
sResult = "Okay1"
ShowWindow Form1.hwnd, SW_SHOW
do
DoEvents
loop until Allow
ParseCommand = True
Exit Function
Allow is a global boolean! Now the command desapeares, and Okay1 is displayed, but message is not sent... first I thought it hade something to do with DoEvents, but that's not the case, if I remove the line with ShowWindow, than it works!