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
 Screen Reader position

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
bf1978 Posted - 05/06/2005 : 2:56:52 PM
How can I access continuously the Screen Reader position? I know that the X and Y variables contain these positions AFTER the Screen Reader exited (QuitProc, EndProc etc.) But I would need the values while the Screen Reader is running.

It is displayed in the Data Display control, but I didn't find the reference where is it written.
6   L A T E S T    R E P L I E S    (Newest First)
bf1978 Posted - 05/06/2005 : 9:18:59 PM
CP,

perfect, thanks!


bf
cpyang Posted - 05/06/2005 : 7:55:36 PM
Maybe this is not documented, there is another macro that you can defined called OnTool, which also receive two argument
%1 = tool index, should be 2 for screen reader
%2 = event id, 1 for start of tool, 100 for tracking(dragging) of tool and 0 for end of tool. Tool ID = 0 during tracking, it seems.

X and Y are available during tracking. try this

def OnTool {
type "tool=%1, event=%2, x= $(x), y = $(y)";
};



CP


bf1978 Posted - 05/06/2005 : 6:37:07 PM
You are right, pointproc won't give the real time values. But my question is still the same: how can I get them?

It must be possible somehow, because they are displayed in that Data Display control.
Mike Buess Posted - 05/06/2005 : 4:51:53 PM
You need to use the PointProc macro. Search the forum for 'PointProc' and 'getpts' and you'll find several examples.

...Even that won't give you real time values. It will only give you the values on click or enter.

Mike Buess
Origin WebRing Member

Edited by - Mike Buess on 05/06/2005 4:53:23 PM
bf1978 Posted - 05/06/2005 : 4:21:53 PM
The dotoolbox help says the following:
"X, Y -- The X and Y coordinate values of the current cursor position. The values update each time you click the cursor."

So how can I get the cursor position while dragging the Screen Reaser cursor for example? I need the same realtime values as they appear on the Data Display control.
Mike Buess Posted - 05/06/2005 : 4:16:14 PM
X and Y are the coordinates at the cursor position. For documentation, look for LabTalk's doToolBox in the programming guide.

Mike Buess
Origin WebRing Member

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