Sending mouseup to checkboxes on different card

Klaus on-rev klaus at major.on-rev.com
Wed Oct 20 12:34:31 EDT 2010


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
> cszasz at mac.com
> 
> 
> ...
>> 
>> 
> 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
klaus at major.on-rev.com




More information about the Use-livecode mailing list