Thanks Jacque. 

I was hoping to present the user with vision of a cursor moving to the button 
and then clicking on it.

I think now that I will manufacture my own cursor, using RR's line graphic 
(with arrow attached) and thereby simulate a cursor.

It is perhaps the dark side of my nature that allows me this ruse, but at least 
I am not wresting control of the cursor from the user, and my intentions are 
honorable.

Ken's suggestion (using screenMouseLoc) would allow me to take control of the 
cursor. It is odd that there is a command to locate the mouse relative to the 
screen but not the card. I wonder whether this, and the notion of exercising 
"power only for good,"  might not date back to Scott Rainey. He had strong 
feelings about the rights and wrongs of programming. I remember a battle I had 
with him over "repeat while the mouse is down," an instance where the 
programmer wrests control of the COMPUTER from the user. 

Jim

> 
> Message: 16
> Date: Mon, 02 Jan 2012 15:26:40 -0600
> From: "J. Landman Gay" <jac...@hyperactivesw.com>
> To: How to use LiveCode <use-livecode@lists.runrev.com>
> Subject: Re: Setting the cursor
> Message-ID: <4f022110.1000...@hyperactivesw.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> 
> On 1/2/12 2:37 PM, Jim Hurley wrote:
>> Thanks Ken,
>> 
>> I see that the dictionary warns against taking control of the mouse,
>> The discussion concludes with this admonishment: "You must use this
>> power only for good."
>> 
>> I feel evil. I just wanted to simulate the clicking of a button in my
>> "help" script.
>> 
>> I will need to consult my spiritual advisor to see if this usage
>> conforms with RR's ethical standards.
> 
> :) You can avoid all evil by:
> 
>   click at the loc of btn "whatever"
> 
> No cursor movement necessary. But even better, if you only need the 
> mouseup action (i.e., there is no need to simulate mousedown, 
> mousestilldown, etc.) then just:
> 
>  send "mouseup" to btn "whatever"
> 
> Either of these methods avoids the need to consult with outside parties. :)
> 
> -- 
> Jacqueline Landman Gay         |     jac...@hyperactivesw.com
> HyperActive Software           |     http://www.hyperactivesw.com
> 
> 


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to