How to make some commands run without using mouseUp

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
ECNU4271
Posts: 93
Joined: Tue May 07, 2013 4:33 pm

How to make some commands run without using mouseUp

Post by ECNU4271 » Sun Aug 25, 2013 11:42 pm

Hi all!

Most commands in the tutorial need users to click on the button.
How to make some commands run when turning into a new card, without click anything?

What is this command call?

Thanks!!
Michael

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10367
Joined: Wed May 06, 2009 2:28 pm

Re: How to make some commands run without using mouseUp

Post by dunbarx » Sun Aug 25, 2013 11:59 pm

You are on your way...

Look up "openCard" in the dictionary.

This is just one of the many messages that are sent by the engine as events unfold. Clicking the mouse is an event. There are others. Practice using that message, trapping it in a card script.

After that, think about the possibility of one message sending another. Can you do this with your newfound "openCard" experience? Make a new stack that does absolutely nothing useful except to inform you how one message works with another. For example, can you make a list of all the things the cursor does when it moves around a card with a smattering of objects on it?

Write back...

Craig Newman

Post Reply