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
 does origin stores active tool status?

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
zangyef Posted - 04/06/2006 : 06:47:41 AM
Origin Version: 6.0
Operating System: WinXP HE

Hi everyone,
I would like to know if origin stores the status of active tool (data reader, screen reader, etc) in any sort of variable. I would like to know that because I wrote a script that has to perform some action if data reader tool is choosen.
Thank you

2   L A T E S T    R E P L I E S    (Newest First)
greg Posted - 04/10/2006 : 5:16:05 PM
Note that certain variables and macros can be used in conjunction with script execution of tools. The variables X, Y and index are set by using the Data Reader or Screen Reader, while the variables mks1 and mks2 are set when using the Data Selector.
PointProc and other macros can be defined to do whatever you like.

Here is an example that mimics what the Data Display windows shows by typing to the Script Window:

dotool 3;
def pointproc {
PX = X;
PY = Y;
%A = %C[$(index)]: X \x3D $(PX), Y \x3D $(PY);
type -a %A;
}

Plot some data
Execute the above script
Double-click on points in the plotted data

easwar Posted - 04/06/2006 : 09:12:12 AM
Hi,

Please look at the Programming help file and the following topic:
LabTalk Language Reference->Command Reference->Alphabetic Listing of Commands->DoToolbox

Does this address what you want?

Easwar
OriginLab


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