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
 dotool 0;

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
coetzw01 Posted - 01/08/2003 : 2:05:48 PM
I'd like the user to select a pre-drawn object on a graph (a line) and then type some information about that line.

The code I use is:

[PickAnObject]
dotool -d;
dotool 0;
def PointProc {
done=1;
type "Exits Procpoint now";
};
for(done = 0; done == 0; ) {
second -p 0.2;
}
However, the PointProc macro never gets called (it does when other tools are selected). How can I get the function to select the line and then wait for the selection to be completed before moving on with the code?
2   L A T E S T    R E P L I E S    (Newest First)
greg Posted - 01/08/2003 : 2:53:16 PM
Tool "0" is the Pointer Tool, but it's really just a "dummy" tool to indicate that no other tool is in use. "DoTool 0" is often used when some other tool (like Data Reader or Screen Reader) has been programmed to do something, but is now finished.

The POINTPROC macro can only be programmed for the Data Reader Tool and the Screen Reader Tool.

It isn't clear what you mean when you say "line". If you mean a plotted 'line', then you could use the Data Reader tool (or Screen Reader tool) to create a "commenter" with:

dotool 3; // or use dotool 2 for screen reader
dotool -d; // means use single-click to run
def pointproc {
dotool 0;
getstring (Comments for this data);
label -s -a X Y %B;
}

If you are talking about a drawn line, then you could use the Screen Reader tool as above, but you would actually only be clicking "near" the line.


Laurie Posted - 01/08/2003 : 2:42:16 PM
The PointProc macro only gets executed when you click using the Screen Reader or the Data Reader. In other words, only these 2 tools are programmable. You can not program the pointer tool.

You'll have to associate your script with the object (line) itself. You won't need to use the pointproc macro. Right-click on the line, and select Label Control, to open the Label Control dialog. Put your script here and set the Script, Run After event to Button Up. Click OK. Now when the user selects the line, the script will execute. (You could also set the Script, Run After to Moved, so that the script will run when the user moves the line.)

Note: Once the object is a button, in order to get back to the Label Control dialog, you can Alt.+double-click on the object, or select Edit:Button Edit Mode.

OriginLab Technical Support

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