Keycodes intelmac
-
Hi everyone,
does someone know the keycodes for a intelmac.
Im trying to use Jan Sandstrom JSMovetool but it wont work on a intel based mac...
Im dont know any ruby script, but i thinkit has something todo with the keycodes. I opened de RB-file and saw it was written for PC and Powerpc mac.
I know some AS flash scripting and im almost sure it doesnt work cause of the wrong keycodes here. Seedef activate # This sets the label for the VCB Sketchup;;set_status_text "Distance", SB_VCB_LABEL end model = Sketchup.active_model entities = model.active_entities ss = model.selection if RUBY_PLATFORM == "i386-mswin32" then # Win XP $leftArrow = 37 # Arrow Left Key $upArrow = 38 # Arrow Up Key $rightArrow = 39 # Arrow Right Key $downArrow = 40 # Arrow Down Key $altKey = 18 # Alt Key $shiftKey = 16 # Shift Key $controlKey = 17 # Control Key elsif RUBY_PLATFORM == "powerpc-darwin" then # Mac OSX $leftArrow = 63234 # Arrow Left Key $upArrow = 63232 # Arrow Up Key $rightArrow = 63235 # Arrow Right Key $downArrow = 63233 # Arrow Down Key $altKey = 524288 # Alt/Option Key $shiftKey = 131072 # Shift Key $controlKey = 1048576 # Command (Apple) Key elsif RUBY_PLATFORM == "intelmac" then # Mac OSX $leftArrow = 108 # Arrow Left Key $upArrow = 30 # Arrow Up Key $rightArrow = 39 # Arrow Right Key $downArrow = 31 # Arrow Down Key $altKey = 524288 # Alt/Option Key $shiftKey = 16 # Shift Key $controlKey = 20 # Command (Apple) Key end #ifi tried some things getting the keycode but i think its not running cause of this line "elsif RUBY_PLATFORM == "intelmac"
i just put in intelmac, but cause i dont know any ruby im not sure thisis correct.
if someone could help, please your welcome

-
Here is a snippet of a tool that prints out the key code for pressed keys. Download the file in your Plugins folder. Open the Ruby Console to see the codes.
-
Thanx Jim...
i had some other solutions but they give me different codes back.
By know i found that thecodes are the same as on the powerpc-darwin OS.
I think ineed to work on this part"elsif RUBY_PLATFORM == "powerpc-darwin" then"
I think on my imac it passes this on cause i have intel duo core...
So if you happen to know the code for this part
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better π
Register LoginAdvertisement