Home | Gallery | Forum | Services | Webmail | Archive | Links | Contact Us | About Us
OS2 World.Com Forum
OS2 World.Com Online Discussion Forum.
Index / OS/2 - General / Programming
author message
adding a shadowId with sysCreateShadow() REXX
Post a new topic Reply to this Topic Printable Version of this Topic Forward this Topic to your Friend Topic Commands (for administrator or moderators only)
cssw
Normal member
in user

View this member's profileSearch all posts from this memberSend an email to this member
posts: 7
since: 26 Jan, 2007
1. adding a shadowId with sysCreateShadow() REXX
Reply to this topic with quote Modify your message
Does anyone know how to add a shadowID after calling the REXX API sysCreateShadow() ?

I need exactly what sysCreateShadow creates but I want to have a unique ID on it, so I can later delete or modify its settings?

Also is there a way to retrieve all the possible setttings for using with the setup string for sysSetObjectData() ?

thanks
cssw

Date: 20 Apr, 2007 on 21:18
Blonde Guy
Normal member
in user

View this member's profileSearch all posts from this memberSend an email to this memberhttp://www.blondeguy.com
posts: 46
since: 12 Apr, 2004
2. Re:adding a shadowId with sysCreateShadow() REXX
Reply to this topic with quote Modify your message
Look at the documentation for WPTOOLS. WPTOOLS.DLL can set and retrieve setup strings, and also manipulate objects by handle, so you don't need an object id or shadow id.

In Classic REXX, this is all you get:

SysCreateShadow( object, destination )

object
The name of the object to shadow. This can be specified as the object's Workplace Shell object ID, or as a fully-qualified path name if the object exists in the file system.

destination
The location in which the shadow will be created. This can be specified as the object ID of an existing folder (e.g. '<WP_DESKTOP>'), or as the path name of an existing file system directory (e.g. 'C:\PROGRAMS').

---
Expert Consulting for OS/2 and eComStation

Date: 20 Apr, 2007 on 23:22
cssw
Normal member
in user

View this member's profileSearch all posts from this memberSend an email to this member
posts: 7
since: 26 Jan, 2007
3. Re:adding a shadowId with sysCreateShadow() REXX
Reply to this topic with quote Modify your message

Blonde Guy (20 Apr, 2007 23:22):
Look at the documentation for WPTOOLS. WPTOOLS.DLL can set and retrieve setup strings, and also manipulate objects by handle, so you don't need an object id or shadow id.

In Classic REXX, this is all you get:

SysCreateShadow( object, destination )

object
The name of the object to shadow. This can be specified as the object's Workplace Shell object ID, or as a fully-qualified path name if the object exists in the file system.

destination
The location in which the shadow will be created. This can be specified as the object ID of an existing folder (e.g. '<WP_DESKTOP>'), or as the path name of an existing file system directory (e.g. 'C:\PROGRAMS').


thanks Neil,

I got the wptools32.zip

NOW I can get it to work for <WP_DESKTOP> but have NOT gotten it to work for fully qualified name of an existing program. Is there some chars that need to be escaped??? i.e '\' and what the escape char??

And is there a way to get HOT KEYS setting too?

cssw

Date: 21 Apr, 2007 on 02:32
davidfor
Premium member
in user

View this member's profileSearch all posts from this memberSend an email to this memberhttp://www.os2world.com/djfos2
posts: 145
since: 20 Jan, 2003
4. Re:adding a shadowId with sysCreateShadow() REXX
Reply to this topic with quote Modify your message
You can't do what you want to do with SysCreateShadow. This only takes the path to the source object and the path place the shadow is to be created. Both parameters can be an ObjectId.

To do what you want, you can use SysCreateObject. An example I use is:

rc = SysCreateObject('WPShadow',
'FireFox',
'<WP_DESKTOP>',
'SHADOWID=<FirefoxEXE>;OBJECTID=<FirefoxShadow>', ,
'Replace')

In the above 'FireFox' is the name of the shadow object, SHADOWID points to the object I am creating a shadow of and OBJECTID is the ObjectID for this Shadow object. This is the id I could use later to delete it. The parameter with these in it is the "Setup String".

There should be a way to set the hot key (I assume you are using XWorkplace or eWorkplace) with a value in the setup string. At the moment I can't see what the setting would be. You could ask this on the XWorplace user mailing list.

---
David

Date: 23 Apr, 2007 on 05:32
adding a shadowId with sysCreateShadow() REXX
Post a new topic Reply to this Topic Printable Version of this Topic Forward this Topic to your Friend Topic Commands (for administrator or moderators only)
All times are CET+1. < Prev. | P. 1 | Next >
Go to:
 

Powered by UltraBoard 2000 Standard Edition,
Copyright © UltraScripts.com, Inc. 1999-2000.
Home | Gallery | Forums | Services | Webmail | Archive | Links | Contact Us | About Us
© OS2 World.Com 2000-2004