hello again, for quite a long time i unsuccessfully tried to find the error in the following code.
def getintlb{
dotool 2 ();
xold=x;
p=1; for (;p>0;) { type -q ""; second -p 0.2; type -q "Please select left integration bound."; if (x==xold){}; else {draw -c 1 -n intlb -l -v x; p=0;}; second -p 0.5; }; dotool 0 (); type -y "Accept X = $(x)?"; ok=t;
lb=x;
if (ok==1) {}; if (ok==0) {getintlb};
type -q ""; };
this code is designed to get an integration border by clicking on a graph. generally it works. but the first time it is used it doesnt serve the correct x and y values. i triede to clear x and y before use or to set them as zero but nothing worked. maybe someone has an idea. thank you for your efforts.
I did not see a problem using your script. I ran the script - which only defines the macro - then I ran the macro by executing :
getintlb
When I clicked on a graph, the DataDisplay showed the correct X and Y and the message box shows the same X. The script continue until I respond Yes and the final X is correct.
You do not mention what OS or version you have. You should try contacting your tech support with details. In Germany, tech support is provided by Additive : origin(at)additive-net.de.
US/Canada support is provided by : tech(at)originlab.com
hello again, finally i found out what causes my problems. i maximize my graph (win -z graph) before i use the script i posted. this seems to confuse screen reader at the first use. if i dont maximise the script works always well. unfortunately i really want to maximize the graph window. does anyone know a solution? thanks gregor
YES! this works :). finally my project seems to be finished soon, so it may become a little bit more quiet in labtalk forum ;). as this may be my last post for some time i want to take this chance to thank you very much for the consistenlty professional help. gregor
quote: hello again, finally i found out what causes my problems. i maximize my graph (win -z graph) before i use the script i posted. this seems to confuse screen reader at the first use. if i dont maximise the script works always well. unfortunately i really want to maximize the graph window. does anyone know a solution? thanks gregor
same confusion happened to me. your post game a an idea. thanks so much
Edited by - isulong seoph on 07/10/2006 01:58:03 AM