suspend mouse clicks?
Lynch, Jonathan
bnz2 at cdc.gov
Fri Aug 12 18:28:37 EDT 2005
The script sets it as a custom property.
You can set any nonexistant property you wish (only, best to use
one-word prop names) - and the program will create that property for the
object.
When you set the field's lockMouseClicks property to true, all it does
is store the word "true" in a custom property of the field named
"lockMouseClicks"
In the mousedown handler of the field, it only passes the mousedown
message if the field's lockMouseClicks property is not equal to true.
-----Original Message-----
From: use-revolution-bounces at lists.runrev.com
[mailto:use-revolution-bounces at lists.runrev.com] On Behalf Of Mark
Swindell
Sent: Friday, August 12, 2005 6:13 PM
To: How to use Revolution
Subject: Re: suspend mouse clicks?
Thanks for the suggestion and script. I'm having trouble locating
the lockMouseClicks property. Where did you come up with it?
Mark
On Aug 12, 2005, at 2:53 PM, Lynch, Jonathan wrote:
> Put the below script in the field, and send "PreventMouseClicks
> pSeconds" to that field when you are ready to lock it. pSeconds
> Would be
> the number of seconds you want the field locked. You can bypass using
> the pSeconds parameter if the length of time will always be two
> seconds.
> The script would look something like this:
>
> Put 2 into pSeconds
> Send "PreventMouseClicks pSeconds" to field "myField"
>
>
>
> And the field script would be this:
>
> On preventmouseclicks pSeconds
> Set the LockMouseClicks of me to true
> Send allowMouseClicks to me in 2 seconds
> End preventMouseClicks
>
> On AllowMouseClicks
> Set the lockMouseClicks of me to false
> End AllowMouseClicks
>
> On MouseDown
> If the LockMouseClicks of me <> true then pass MouseDown
> End MouseDown
>
> -----Original Message-----
> From: use-revolution-bounces at lists.runrev.com
> [mailto:use-revolution-bounces at lists.runrev.com] On Behalf Of Thomas
> McGrath III
> Sent: Friday, August 12, 2005 5:43 PM
> To: How to use Revolution
> Subject: Re: suspend mouse clicks?
>
> I might look into the lock messages as a possible solution.
>
>
> tom
>
> On Aug 12, 2005, at 3:48 PM, Mark Swindell wrote:
>
>
>> Is there a way to suspend the receiving/recording of mouseclicks
>> within a field for a specified duration of time?
>>
>> Example:
>>
>> A two second sound file is playing. I don't want any mouse clicks
>> recorded in a specified field until the condition of the play is
>> over.
>>
>> I want to say, essentially:
>> suspend (the receiving of) mouseclicks in this field until the
>> player
>>
>
>
>> is stopped
>>
>> Short of showing/hiding a transparent field upon initiating/ending
>> playback and trapping the mouseclicks in it, is there a way via
>> scripting to accomplish this?
>>
>> Thanks
>> Mark
>> _______________________________________________
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>
>>
>>
> Thomas J McGrath III
> 3mcgrath at adelphia.net
>
> Lazy River Software(tm)
> http://homepage.mac.com/mcgrath3/lazyriver.html
>
> Meeting Wear(tm) - Unique Apparel Design
> http://www.cafepress.com/meetingwear
>
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
_______________________________________________
use-revolution mailing list
use-revolution at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution
More information about the use-livecode
mailing list