Hi,
Sorry if this seems to be a simple question - I'm quite new to this!
What is the command to make something happen when someone presses the space bar? I know for instance that for the tab key it's on tabKey, but I can't seem to find the equiviliant for the space bar.
Thanks in advance!
Space Bar?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
there is no specific message for the space key, because it's not a modifier key, like shift and the others. You can catch it with the key or rawkey messages, for example:
if you want to do something while the spacebar is down in some other messag, then this could be one way to do it:
Code: Select all
on keyUp theKey
if theKey = space then
--do stuff here
end if
end keyUp
Code: Select all
on mouseUp
if 65293 is among the items of the keysDown then
--spacebar is down
end if
end mouseUp
Various teststacks and stuff:
http://bjoernke.com
Chat with other RunRev developers:
chat.freenode.net:6666 #livecode
http://bjoernke.com
Chat with other RunRev developers:
chat.freenode.net:6666 #livecode