Guidance
指路人
g.yi.org
Guidance Forums / Reginald Rexx / GuiSendMsg(...

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. GuiSendMsg(...
#12638
Posted by: PeterJ 2009-01-16 02:35:01 Last edited by: PeterJ 2009-01-16 02:37:28 (Total edited 3 times)
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
  /* It's the 40000 event someone GuiSendMsg()'ed to us */
    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.
Message2.
#12639
Posted by: Jeff Glatt 2009-01-16 04:09:25
"POST" needs to come first, and its part of the second argument, not the first argument.

guisendmsg(somewindowhandle, "POST" 40000, 1, -1)
Message3.
#12640
Posted by: PeterJ 2009-01-16 06:08:29
I see, tried it and it works! I'll go into round 2 now!

Can you please correct your SENDMSG2 sample, there POST is within parameter 1.

The hyperlink in your sample page is invalid:
http://home.roadrunner.com/~jgglatt/rexx/SendMsg1.rex 
instead
http://home.roadrunner.com/~jgglatt/rexx/scripts/SendMsg1.rex
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Fri 2024-3-29  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0