name options

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

ittzy
Posts: 27
Joined: Thu Feb 04, 2016 11:48 pm

Re: name options

Post by ittzy » Fri Apr 15, 2016 8:32 pm

if im using the script "on functionKey tKey" can i use that to "press" a button on the interface? i would like it to start the timer as you see on the picture.



i tried to add the function i have on the button to the "case 1" script but i get an error on the countUp function.

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

Re: name options

Post by dunbarx » Fri Apr 15, 2016 9:33 pm

Hi.

You can do your timer routine directly from the functionKey handler, or you can

Code: Select all

send "mouseUp" to button "timerButton"
. If you want to be cute, you can

Code: Select all

click at the loc of button "timerButton"
But there is no reason to be cute when being sober and competent will do. I only added that to see if I can get some idea of where you are with learning LC.

Craig

ittzy
Posts: 27
Joined: Thu Feb 04, 2016 11:48 pm

Re: name options

Post by ittzy » Sat Apr 16, 2016 5:51 pm

Back to the name function that i asked in the beginging, how would you do so you can edit and add players? and so i can search them by number?

Post Reply