Page 1 of 1

Are Mac and Windows key codes the same?

Posted: Thu Nov 15, 2007 7:48 pm
by heyvern
I want to track the "save" key commands. In order to do this I need to check for "s" key (cntrl + s).

AS only gets the key code so I get a "115" for the s on the Mac. Is this the same on Windows?

This is how I plan to "save" bone group information to a file in the same folder with the anime studio file. This bone group file is read back in when the file is opened.

I would check myself but the power supply blew on my PC and I haven't replaced it yet.

-vern

Posted: Thu Nov 15, 2007 10:01 pm
by mkelley
Vern,

If no one else replies I'd be glad to test for you, but in examining the scripts (I'm a programmer but have zero experience with LUA) I don't find any getkey type function to let you know (and the globals and API scripts don't seem to show this key combo).

LUA looks interesting, though.

Posted: Thu Nov 15, 2007 10:14 pm
by heyvern
Thanks but I got it figured out. It is the ASCII code so the "s" is the same for mac and windows.

I will post the script/s for anyone who wants to try it out probably tomorrow or monday if I can't figure out the latest bug.

-vern