Lefora Pro Forum
login join
Loading
616 views

PenApt: Modbook Pen Settings That Vary By App

Page 1
1–9
superstar - admin
284 posts

Sometimes I want the eraser on my Modbook's pen to be an eraser, like when I'm using inkBook or a drawing application, but sometimes, like when I'm using a vector graphics app, I want the eraser to act like a shift key. I'd really like to see the way the pen buttons work to vary depending on what I'm doing. I described in ‘Expanding the Options for Your Pen/Stylus Buttons’ how to use the popup menu to address that issue, but the solution there is a bit clunky. The best solution is the one used in Wacom's Cintiq and Intuos pen tablets: to configure the pen buttons for specific applications and to automatically change the buttons configuration depending on which application that you are using. Unfortunately, the tablet software for the Modbook and many other Wacom-based tablets allow for only one global configuration for the pen buttons.

PenApt is an applet that uses AppleScript to vary the Modbook pen button functions depending on which application you are using. (It also may be usable with Wacom's Bamboo tablets.)

When you start the applet, this this dialog box appears:


Choosing ‘Add/Edit App Pen Settings’ allows you to configure the pen buttons for given application, and choosing ‘Activate’ puts your configuration choices into effect, automatically changing the button functions to suit the app you are using.

If you choose to edit your pen settings, you are offered this dialog box,


allowing you to add pen settings for a new app, change the default pen settings, or change the pen settings for a particular app. If you choose an option, after a confirmation box, the following appears:



Use the System Preferences dialog to configure the pen's two barrel buttons. If you want the eraser to erase, click on ‘Done / Standard Eraser’. On the other hand, if you want the eraser to do something else, click on ‘Done / Replace Eraser’.

Once PenApt is activated, it will adjust the pen preference in accordance with the application you are using. If that particular app has not been configured, PenApt will use the default (current) pen settings. While PenApt is activated, you can configure additional applications by clicking on its icon in the dock.

The applet comes with the Finder application already configured so that the eraser functions as an option-click. That way, while the pen's tip can be used to move files, the eraser can be used to copy them.


Download: PenApt.zip [Updated June 21, 2010 — settings are now retained between runs] 

regular - member
34 posts

wow! this is so great thanks! 

superstar - admin
284 posts


No Problem, it was fun to build, and I use it all the time now.  My favorite app set up is for Safari: set the eraser to middle click while I have Smart Scroll's Grab tool is set to middle click — so the pen tip works normally, but the eraser scrolls.

Let me know if you have any problems. I need to work on the icon, I know.

EricN


superstar - admin
284 posts


A bug that prevented pen settings from being remembered between runs has been fixed.

EricN

regular - member
34 posts

yah I use it for safari works great. It be nice if it possible to have the icon on the menu bar rather then the dock. 

superstar - admin
284 posts


I don't think Menu Bar items can be made using AppleScript. That would have to wait until I learn Cocoa. 

In any event, putting up more Menu Bar Icons, which will disappear when the Modbook gets put into portrait orientation, is probably not the right thing to do either. A third option is needed. Perhaps, I could create a 'pause' script like is available for MacFlip, but most people wouldn't want to set that up. I'm not sure. 

superstar - admin
284 posts

I've updated PenApt (download available above) to properly set a button to act as a 4th click, 5th click, or play a keystroke. This problem was reported in a post at Axiotron Forums. I'm hoping it is fixed now.
 

member
3 posts

A bug that prevented pen settings from being remembered between runs has been fixed.EricN

-ericn


Thanks for building this Eric; application specific pen settings are something that I've sorley missed since migrating away from the Cintiq.

However, I'm having trouble getting Penapt to work for me.
When I try to set the buttons for a specific program, Penapt returns:

Can't get <<class xppb>> "Pen Tablet" of application "System Preferences"

Am I missing something crucial or doing something wrong?  Thanks for any feedback, I'd love to be able to use this.

Thanks again,
-sketcherazzi

member
3 posts

Actually, I think I see the problem, but can't fix it on my own.  It looks like the latest drivers I installed for my Modbook changed their name from Pen Tablet to Bamboo... so the current PenApt script isn't compatible with the most recent drivers (5.2.4-4).  Can anyone out there using PenApt tell me which drivers were the latest that it was compatible with?

Thanks!
Sketcherazzi   

Page 1
1–9

Locked Topic


You must be a member to post in this forum

Join Now!