| T O P I C R E V I E W |
| G.Bartsch |
Posted - 06/14/2006 : 04:06:00 AM 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. |
| 6 L A T E S T R E P L I E S (Newest First) |
| isulong seoph |
Posted - 07/10/2006 : 01:56:45 AM 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 |
| G.Bartsch |
Posted - 07/07/2006 : 07:25:59 AM 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 |
| Mike Buess |
Posted - 07/05/2006 : 09:30:27 AM Hi Gregor,
This works in Origin 7.5...
win -z winName; sec -p 0.1; // pause getintlb; // run macro
Mike Buess Origin WebRing Member |
| G.Bartsch |
Posted - 07/05/2006 : 06:35:32 AM 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 |
| greg |
Posted - 06/20/2006 : 12:14:43 PM 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
|
| G.Bartsch |
Posted - 06/20/2006 : 10:52:51 AM well... no one has an idea? pleas s.o. at least tell me if you can reconstruct that error. just plot something an try code. thanks |