Page 1 of 1

Shortcuts-property inspector

Posted: Fri Jun 22, 2012 3:47 pm
by laurpapo
Hi,

So I have a bunch of buttons created and want to create shortcuts for each of them. I know I could edit the script with if/then statements to determine whether or not certain keys are down, but I saw that we can create shortcuts in the property inspector, instead. I did that, selecting command and shift and putting 'n' as the accelkey, yet nothing happens. Am I missing something?

Thank you,

Laurel

Re: Shortcuts-property inspector

Posted: Fri Jun 22, 2012 4:14 pm
by Mark
Hi Laurel,

Are you using Mac? I never could get this to work on a Mac, but it works fine on Windows.

Kind regards,

Mark

Re: Shortcuts-property inspector

Posted: Fri Jun 22, 2012 4:18 pm
by laurpapo
Bummer. I am indeed using a mac.

I just tried to do it the long way (if the commandkey is down then, etc.) and this seems not to work either...any ideas?

-Thanks

Re: Shortcuts-property inspector

Posted: Fri Jun 22, 2012 4:28 pm
by Mark
Hi,

I don't know what you tried exactly, but you could put this into the card or stack script:

Code: Select all

on commandKeyDown theKey
  if theKey is "B" and the shiftKey is down then
    send "mouseUp" to btn "B"
  end if
end commandKeyDown
This script works with a button with name "B".

Kind regards,

Mark

Re: Shortcuts-property inspector

Posted: Fri Jun 22, 2012 4:57 pm
by laurpapo
Well now I just feel dumb...worked perfectly.

Thanks much!

-Laurel