LIBRARY rexxgui, rxclip
guierr = "SYNTAX"
guiheading = 1
cliperr = "SYNTAX"
clipheading = 1
guicreatewindow('NORMAL')
FORMAT = clipnewformat("WindowHandle")
clipset("GuiWindow", format)
again:
DO FOREVER
guigetmsg()
CATCH SYNTAX
CONDITION()
SIGNAL again
CATCH HALT
FINALLY
guidestroywindow()
END
RETURN
wm_extra:
SELECT ARG(3)
WHEN 40000 THEN DO
guisay("Received event 40000 with ARG(1) =" ARG(1) "and ARG(2) =" ARG(2))
END
WHEN 40001 THEN DO
guisay("Received event 40001. Returning the value 1000 to the other script.")
RETURN 1000
END
OTHERWISE
END
RETURN "" |