Article View: comp.os.os2.programmer
Article #1399Re: WPS Program objects from cmd, Rexx, or C
From: Cliff Nadler
Date: Fri, 04 Sep 1992 14:55
Date: Fri, 04 Sep 1992 14:55
22 lines
1657 bytes
1657 bytes
In <Bu1zIH.3u6@world.std.com> bsn@world.std.com (Brent S Noorda) writes: > I set up program objects' settings so that by double-clicking on them in > the WPS I can launch them in wonderful ways. For example, I can set up > a desktop Program Object to launch a program in a DOS session with such-and- > such memory and window, etc... Now I can launch this program with these > setting whenever I want by using a mouse on the shell. But is there any > way to launch these same programs with the same settings from the command > line or from Rexx or from C programming? > Can messages be sent to the shell? > Are the settings saved somewhere accesible? > Yes, they are (if you know the OBJECT_ID of the object, and you have the very latest REXX20 updates). You can use SysSetObjectData to open an object that exists on the desktop, or you can use SysCreateObject with <WP_NOWHERE> and (I think) "OPEN=DEFAULT" in the setup string parameter. -- Cliff Nadler (cnadler@vnet.ibm.com) IBM Federal Systems Company - TEAM OS/2 Disclaimer: This post represents the views of the poster, not IBM Corporation.
Technical Details
Message-ID:
<1992Sep04.145541.51099@watson.ibm.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!newsgate.watson.ibm.com!yktnews!admin!watson!References:
<Bu1zIH.3u6@world.std.com>Show Full Headers
Complete Article Headers
Newsgroups: comp.os.os2.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!newsgate.watson.ibm.com!yktnews!admin!watson! From: cnadler@vnet.ibm.com (Cliff Nadler) Subject: Re: WPS Program objects from cmd, Rexx, or C Sender: @watson.ibm.com Message-ID: <1992Sep04.145541.51099@watson.ibm.com> Date: Fri, 04 Sep 92 14:55:41 GMT News-Software: IBM OS/2 PM RN (NR/2) v0.11 by O. Vishnepolsky and R. Rogers Lines: 22 Reply-To: cnadler@vnet.ibm.com (Cliff Nadler) References: <Bu1zIH.3u6@world.std.com> Organization: IBM T. J. Watson Research