Sending mouseup to checkboxes on different card

charles61 cszasz at mac.com
Wed Oct 20 12:36:32 EDT 2010


Klaus,

Thanks!

Charles Szasz
cszasz at mac.com




On Oct 20, 2010, at 12:35 PM, Klaus on-rev [via Runtime Revolution] wrote:

> Hi Charles, 
> 
> > Klaus, 
> > 
> > Your script worked!   
> 
> Go figure :-) 
> 
> > What changes do I have to make if I wanted to use this script to send a mouseUp to checkboxes on marked cards?  I did not use marked cards in my sample stack. 
> 
> See below... 
> 
> > Charles Szasz 
> > [hidden email] 
> > 
> > 
> > ... 
> >> 
> >> 
> > on mouseUp 
> > ## We want to return to this card after the script has finished! 
> > put the num of this cd into tStartCard 
> > lock screen 
> >  repeat with y = 1 to the number of cards
> 
>   if the mark of cd y <> true then 
>    next repeat 
>   end if
> 
> > 
> >  ## We actually have to GO to the cards but to avoid unnecessary 
> >  ## PRE/OPENCARD messages we have to: 
> > lock messages 
> > go cd y 
> > unlock messages 
> >     repeat with b= 1 to the number of buttons 
> >        if the style of button b  = "checkbox" then 
> >           if the hilite of button b  = "true" then 
> >               send "mouseUp" to button b 
> >           end if 
> >       end if 
> >     end repeat 
> > end repeat 
> > 
> > ## Go back 
> > lock messages 
> > go cd tStartCard 
> > unlock messages 
> > unlock screen 
> > end mouseUp
> 
> Best 
> 
> Klaus 
> -- 
> Klaus Major 
> http://www.major-k.de
> [hidden email] 
> 
> _______________________________________________ 
> use-revolution mailing list 
> [hidden email] 
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: 
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 
> View message @ http://runtime-revolution.278305.n4.nabble.com/Sending-mouseup-to-checkboxes-on-different-card-tp3003921p3004211.html 
> To unsubscribe from Sending mouseup to checkboxes on different card, click here.
> 


-- 
View this message in context: http://runtime-revolution.278305.n4.nabble.com/Sending-mouseup-to-checkboxes-on-different-card-tp3003921p3004215.html
Sent from the Revolution - User mailing list archive at Nabble.com.



More information about the use-livecode mailing list