Hypercard flash solution

Mark Schonewille m.schonewille at economy-x-talk.com
Thu Dec 23 10:25:27 EST 2010


Hi Shari,

Run this in the AppleScript editor.

tell application "System Events"
	tell application processes
		repeat 2 times
			key code 28 using {command down, option down, control down}
		end repeat
	end tell
end tell

You could also store the script in a custom property and use the do as AppleScript command to run it.

Enjoy :-)

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

New: Download the Installer Maker Plugin 1.5 for LiveCode here http://qurl.tk/ce

On 23 dec 2010, at 15:58, Shari wrote:

> For those of you who remember the Hypercard "flash" command, I've come up with this solution.
> 
> This works great on OSX and does not rely on creating a special graphic.  I haven't tried it on the winMachine yet (and probably won't until the project is done and ready for testing over there). If you try it on WIN and it's happy, let us know!   Could also be done via "put 3 into howMuch" and then "flasher howMuch" adding the repeat to the flasher handler.
> 
> The card this is tested on has a lot of btns with graphic icons (I tend to prefer btn objects to img objects for most things even graphical.)  It has fields with the backPattern set.  The card itself has a backPattern and there are dozens of different objects.
> 
> on mouseUp
>  repeat 3
>      flasher
>   end repeat
> end mouseUp
> 
> on flasher
>  lock screen
>  repeat with x = 1 to the number of controls of this cd
>    set the ink of control x of this cd to "notSrcCopy"
>  end repeat
>  unlock screen
>  wait 3 ticks
>  lock screen
>  repeat with x = 1 to the number of controls of this cd
>    set the ink of control x of this cd to "srcCopy"
>  end repeat
>  unlock screen
>  wait 3 ticks
> end flasher
> 
> -- 
> Bad Dog Books
> http://books.gityasome.com
> Critters, humor, patriots and sports t-shirts
> http://www.villagetshirts.com
> WlND0WS and MAClNT0SH shareware
> http://www.gypsyware.com





More information about the Use-livecode mailing list