Search found 4 matches

by bambster
Tue Apr 03, 2018 7:21 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Assigning a keyboard shortcut to a button
Replies: 44
Views: 4870

Re: Assigning a keyboard shortcut to a button

Hi bambster, if you have two IDENTICAL named handlers in the same script, LC will only execute the first one it encounters! Use a SWITCH structure to tell LC what you want: on rawKeyUp RUP switch RUP case 65474 click at the loc of button "btnTeamWin1" break case 65475 click at the loc of button "bt...
by bambster
Tue Apr 03, 2018 1:52 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Assigning a keyboard shortcut to a button
Replies: 44
Views: 4870

Re: Assigning a keyboard shortcut to a button

Hey everyone! So I finally got to play around with the shortcut functionality you provided me with. Works like a charm. The key combinations (e.g. Ctrl + shift + F1) work as well. I quickly ran into one problem though: the script only seems to recognize the first assigned shortcut. In the case below...
by bambster
Thu Mar 29, 2018 10:20 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Assigning a keyboard shortcut to a button
Replies: 44
Views: 4870

Re: Assigning a keyboard shortcut to a button

Here's a way to do this: BPress.png The button "Button F1" contains this script: on mouseUp put "You just clicked on button Button F1." end mouseUp The card contains this script: on rawKeyUp RUP if RUP = 65470 then send "mouseUp" to btn "Button F1" else pass rawKeyUp end if end rawKeyUp Button Pres...
by bambster
Thu Mar 29, 2018 4:43 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Assigning a keyboard shortcut to a button
Replies: 44
Views: 4870

Assigning a keyboard shortcut to a button

Hey! I'm a total beginner - not experienced at all in coding but I've been fiddeling around with Live Code for quite some time now and got my first few applications up and running. One thing that I wasn't quite able to figure out is the following: I have a couple of buttons that I'd like to be activ...

Go to advanced search