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