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
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 LabTalk Forum
 Problems with screen reader tool
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

G.Bartsch

Germany
Posts

Posted - 06/14/2006 :  04:06:00 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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.

G.Bartsch

Germany
Posts

Posted - 06/20/2006 :  10:52:51 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

greg

USA
1380 Posts

Posted - 06/20/2006 :  12:14:43 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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

Go to Top of Page

G.Bartsch

Germany
Posts

Posted - 07/05/2006 :  06:35:32 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

Mike Buess

USA
3037 Posts

Posted - 07/05/2006 :  09:30:27 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Gregor,

This works in Origin 7.5...

win -z winName;
sec -p 0.1; // pause
getintlb; // run macro

Mike Buess
Origin WebRing Member
Go to Top of Page

G.Bartsch

Germany
Posts

Posted - 07/07/2006 :  07:25:59 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

isulong seoph

Taiwan
Posts

Posted - 07/10/2006 :  01:56:45 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000