The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
 All Forums
 Origin Forum for Programming
 LabTalk Forum
 tools script

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
domhuet Posted - 05/03/2001 : 12:16:01 PM
I have built a tool with script in the label control dialog box that refer to script in an ogs file and I have saved it in an ogo file. After launching it with 'dotool -w myobject', I can't reach the script in the label control dialog box from outside the tools. If i have an action on the tool it's OK, but if I try to launch the script from the script window with the command myobject.run(), nothing happens. It seems that the tool is not really an object (list o shows nothing) and it cannot be reachable from outside itself. Can you give me some informations about this.
Thanks
1   L A T E S T    R E P L I E S    (Newest First)
Mike Buess Posted - 05/04/2001 : 12:22:16 PM
Assuming the tool is already open, use 'dotool -wl myobject' to control it by script. The following script opens the tool, runs it and then closes it.

dotool -w myobject; //open myobject
dotool -wl myobject; //allow script access to myobject
myobject.run(); // run myobject
dotool -wl0 myobject; // disallow script access
dotool -wc myobject; //close myobject

If your tool were already open and you wanted it to stay open, then you would leave out the first and last lines.

Use the exist() function to find out if myobject is already open. 'exist(myobject)=' will return 7 if it is open and 0 if not. (I think that this usage of exist() was broken in some versions of Origin 6.0.)

-Mike

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000