repeat until the mouseClick

Jim Ault JimAultWins at yahoo.com
Sun Apr 22 20:27:44 EDT 2007


On 4/22/07 4:12 PM, "Mike Hughes" <hughesmike2 at hotmail.com> wrote:

> I use the following 2 lines of code to pause a program until the user clicks
> the mouse:
> 
> repeat until the mouseClick
> end repeat
> 
> I would like to extend the functionality of this script so that a user can
> stop the pause with a keystroke in addition to clicking the mouse.
> 
> How would I tweak that code to allow for this?

If you are looking for the modifier keys only then use

if the shiftkey is down
if the controlkey is down
if the optionkey is down
if the comanndkey is down

if the comanndkey is down and the optionkey is down then

Jim Ault
Las Vegas





More information about the use-livecode mailing list