Images in this post missing? We recently lost them in a site migration. We're working to restore these as you read this. Should you need an image in an emergency, please contact us at imagehelp@codebetter.com
Presentation Remote

In the last few months I have been using my MacBook to give presentation, both at work and not. I've been meaning to buy one of those presenter remotes. I even got to borrow one and tried it once and I must say it worked pretty well.

Then I remembered that the MacBook came with that useless remote that I had forgotten in a junk drawer somewhere. Well, that remote happens to work well with more than just Front Row. I heard it works with Keynote for presentations. I don't use that application and I'm not planning to buy it since Powerpoint 2007 works very well for me on my PC and I'm too cheap to buy Keynote.

I typically save my PowerPoint presentations to PDF and show them on the mac using Preview (a simple PDF viewer). The remote does not work with Preview out of the box but I found this little freeware called iRed Lite that can make the apple remote control just about any application, as long as the application is controllable with AppleScript, which most apps are.

The only problem was that iRed Lite came with support for Preview but it did not work well for the full screen mode, which I needed. Time to get my hands dirty with AppleScript.

The idea here was to bind the commands associated with the left and right arrows of the remote to the keys PageUp and PageDown, respectively.

The iRed Lite utility allows you to edit each command by assigning a keystroke or an AppleScript snippet. Initially I tried the keystroke alternative but I could not figure out how to send a PageDown or PageUp to the application because on the keyboard they are Fn+UP and Fn+DOWN and Fn was not available in the utility. The AppleScript ended up being rather minimal, as seen in the screenshot.

For the Next Page command I entered:

tell application "System Events" to key code 121

For the Previous Page command I entered:

tell application "System Events" to key code 116

You can find all these key codes in the file /System/Library/Frameworks/Carbon.framework/Frameworks/ HIToolbox.framework/Headers/Events.h provided you installed the developer tools from the OS X installation DVD, i.e. you have Xcode installed.

Wow. All this trouble to save $50? I guess I just liked the fact that I found a use for that remote. Now I just need to hack a laser diode inside the remote to use as a pointer too.


Posted 12-20-2008 2:03 PM by sergiopereira
Filed under: ,

[Advertisement]

Comments

Scott Bellware wrote re: Presentation Remote
on 12-20-2008 7:03 PM

If you have an iPhone, you can use it as a Keynote remote as well: http://is.gd/3bxc

James Gregory wrote re: Presentation Remote
on 12-22-2008 4:55 AM

Remote Buddy is pretty great for making the Apple remote work with anything too.

sergiopereira wrote re: Presentation Remote
on 12-22-2008 8:08 AM

@James Gregory. I believe you. It should. They're charging for it. It looks like iRedLite will turn into shareware at some point, so it's good to know more alternatives.

Anderson Imes wrote re: Presentation Remote
on 12-22-2008 2:32 PM

Have to second Scott's recommendation.  Stagehand is worth every penny and they are making really good improvements to it.

eaton.julie@gmail.com wrote re: Presentation Remote
on 11-17-2009 12:36 AM

I stumbled upon your website when trying to do exactly the same thing you were--in what file did you make the modifications

tell application "System Events" to key code 121

etc?  I realize it's been quite a while since your post, but any pointers would be greatly appreciated!

Thanks,

Julie

sergiopereira wrote re: Presentation Remote
on 11-17-2009 9:11 AM

@Julie, it's a shame the I lost the screenshots for this post, they would have answered your question.

I'm not at my mac right now but one of the configuration options is to create a new Action and choose its type to be AppleScript. That will cause another window to open where you can type that script.

There's a manual on their website at: www.filewell.com/.../iRL-Manual-098.pdf

About The CodeBetter.Com Blog Network
CodeBetter.Com FAQ

Our Mission

Advertisers should contact Brendan

Subscribe
Google Reader or Homepage

del.icio.us CodeBetter.com Latest Items
Add to My Yahoo!
Subscribe with Bloglines
Subscribe in NewsGator Online
Subscribe with myFeedster
Add to My AOL
Furl CodeBetter.com Latest Items
Subscribe in Rojo

Member Projects
DimeCasts.Net - Derik Whittaker

Friends of Devlicio.us
Red-Gate Tools For SQL and .NET

NDepend

SlickEdit
 
SmartInspect .NET Logging
NGEDIT: ViEmu and Codekana
LiteAccounting.Com
DevExpress
Fixx
NHibernate Profiler
Unfuddle
Balsamiq Mockups
Scrumy
JetBrains - ReSharper
Umbraco
NServiceBus
RavenDb
Web Sequence Diagrams
Ducksboard<-- NEW Friend!

 



Site Copyright © 2007 CodeBetter.Com
Content Copyright Individual Bloggers

 

Community Server (Commercial Edition)