Marcel Kilgus wrote:
>Dilwyn Jones wrote:
>> 100 REMark try to read pointer co-ordinates
>> 110 driver_address = CHAN_L(#0,4)
>> 120 REPeat loop
>> 130   PRINT
>> PEEK_W(driver_address+HEX('20')),PEEK_W(driver_address+HEX('22'))
>> 140 END REPeat loop
>
>The mouse position is really at $3c and $3e. $20 is the address of
the
>open routine. However, this is definitely NOT the way to do it in
>application programs.

Thanks for the information. I agree with what you say that this is not
a good way of doing this in pllication programs. However, I got
frustrated trying to get RDPT to do what I wanted and the lack of
understandable documentation.


I only need to read the pointer position, no need to dangerously write
all over anything.

What I wanted to do was a simple background job looking to see if the
mouse or keyboard had been used for a given number of minutes. If not,
start a job to do something else. Trouble was, every time I used RDPT
and the job got buried by another job, it 'suspended' and no useful
data came.


Any ideas how I could do this 'legally' in such a background job?
--
Dilwyn Jones
[EMAIL PROTECTED]
http://www.soft.net.uk/dj/index.html


Reply via email to