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
 Clear data marker in Labtalk

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
LC_ Posted - 03/14/2016 : 09:47:31 AM
Origin Ver. 2016 and Service Release (Select Help-->About Origin):
Operating System: Win 7

Easy question, but I couldn't find a solution in the help. I've created data markers with Labtalk's dotool 4 command, now how is it possible to clear the markers in the end of pointproc or immediately after it?

All I could find in the help was a reference to mark -r in the Range Notation help, but neither this command is documented in Mark command neither it does anything...

Thanks in advance
2   L A T E S T    R E P L I E S    (Newest First)
LC_ Posted - 03/15/2016 : 03:12:26 AM
Hi Hideo!

Thanks so much. It works! The reason it didn't before was because I had put the mark -r statement before going back to the arrow. It makes sense why it couldn't clear the markers...

May I just leave a reminder that this switch is not listed in the Labtalk help of the Mark command!
Hideo Fujii Posted - 03/14/2016 : 3:04:41 PM
Hi LC,

I have tried dotool 4 as in the following code, and mark -r worked okay to remove the Data Selector:
dotool 4;  //Data Selector
def pointproc {
  %A=xof(%C);
  py1=%C[mks1];   px1=%A[mks1];
  py2=%C[mks2];   px2=%A[mks2];
  type -b %A %C ($(px1),$(py1))-($(px2),$(py2));
  dotool 0; //You need to set the cursor back to the Arrow
  mark -r;  //Remove the Data Selector
}
Make sure that you press ENTER key to commence the PointProc macro as the explanation of
the dotool command says: "re-program the PointProc macro to automatically execute a script
after you double-click or press ENTER to set the markers
" in:
http://www.originlab.com/doc/LabTalk/ref/DoToolbox-cmd#Syntax

Hope this makes sense.

--Hideo Fujii
OriginLab

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