Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Use AppleScript for a Virtual Numpad' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Use AppleScript for a Virtual Numpad
Authored by: lsequeir on Jul 23, '10 08:01:31AM

I believe there is a simpler and more effective solution than using an Applescript and then copy and paste.
Using a free utility like Ukelele, one can easily create a new keyboard layout - call it "Numeric", and make it the way you want it - just decide what the output of each required key in keyboard should be.
Place this in ~/Library/Keyboard Layouts.
Then activate the "Show keyboard and character viewer in menu bar" in System Preferences->Keyboard.

No, after you log out and back in, you have almost the equivalent of the old "num lock" key: just go to the menu bar and switch back and forth between the normal and the numeric keyboard. The numeric keyboard will be an actual keyboard, entering content directly into any application you want, not a middleman script followed by copy and paste.

Chances are a good enough keyboard layout may exist already.

---
Luís



[ Reply to This | # ]
Use AppleScript for a Virtual Numpad
Authored by: lsequeir on Jul 23, '10 10:18:43AM

I have tried my own proposed "solution" and:
1) there is no need to logout and login - the new keyboard layout is immediately available under System Preferences->Language & Text

2) it works :-)


---
Luís



[ Reply to This | # ]