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

How to remap Logitech keyboard media buttons System
For the people out there like me who want to have the media buttons on their Logitech keyboard controlling something other than iTunes (well, I actually use them to control iTunes on another machine, but that's besides the point) you can change the AppleScripts that Logitech has set up.

To do this, go to /Library -> Application Support -> Logitech. Show the package contents (control-click on the file) of the file LCCDaemon, and go into Contents -> Resources. Show the package contents of the file seraph.plugin, and then go into Contents -> Resources -> Scripts. So the full path would kind of look like /Library -> Application Support -> Logitech -> LCCDaemon --> Contents -> Resources -> seraph.plugin --> Contents -> Resources -> Scripts, if you take --> as a sign to look at the contents of the package.

In that folder, you will find a list of files with strange file extensions (i.e. .stop or .next Track). These are just plain text files. You can replace the text in the files with an AppleScript. The Logitech drivers will use osacript to compile and run the scripts on the fly.

You can use newline characters in the file and it will still work. The changes take effect immediately (as soon as you save the file and press the button). I found (though I did no testing and it could be a placebo effect) that if you replace the text files with compiled scripts (with the same file names), they seem to run a little faster.

You can also set the mouse buttons to different actions depending on the application (like USB Overdrive X does). Usually you can just use USB Overdrive X to achieve this, but if you also own a Logitech keyboard, the drivers that you have installed for your keyboard will block the use of USB Overdrive X for your mouse. The quick workaround I found (as the Logitech support people could not help me) was to set the mouse buttons (all but the left click) to something really weird (i.e. shift-command-option-9) and use another program to map those key combinations (and therefore the mouse buttons) for each application you use.
    •    
  • Currently 1.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (4 votes cast)
 
[24,493 views]  

How to remap Logitech keyboard media buttons | 13 comments | Create New Account
Click here to return to the 'How to remap Logitech keyboard media buttons' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
How to remap Logitech keyboard media buttons
Authored by: DougAdams on Oct 02, '03 12:13:41PM
How to remap Logitech keyboard media buttons
Authored by: Accura on Oct 03, '03 01:36:02AM

Doug, using an edited set of scripts from your site to control my other computer (with Remote Apple Events), thank you very much for the great apple script site.

---
"The time has come," the walrus said. "To talk of many things..."



[ Reply to This | # ]
How to remap Logitech keyboard media buttons
Authored by: Accura on Oct 03, '03 01:36:15AM

Doug, using an edited set of scripts from your site to control my other computer (with Remote Apple Events), thank you very much for the great apple script site.

---
"The time has come," the walrus said. "To talk of many things..."



[ Reply to This | # ]
How to remap Logitech keyboard media buttons
Authored by: glowurm on Oct 02, '03 01:08:54PM

This is an outstanding hint - as you saw from my other comment, I was very interested in a work-around for the Logitech mouse driver software limitations. While this isn't a complicated mod, it's very innovative on your part, and your sharing it is appreciated.

Do you have any recommendations for freeware apps that will allow the key-combo remapping you mentioned? Does it work if you want to hold the key down, such as you might want to do with a right-click or click+drag? What issues have you encountered with this setup?

I would love to be able to use the Logitech keyboard I had - and have now sold - but need to know particulars before I take that plunge again.

Thanks once more.



[ Reply to This | # ]
How to remap Logitech keyboard media buttons
Authored by: Accura on Oct 03, '03 01:33:25AM

http://www.versiontracker.com/dyn/moreinfo/macosx/11485&vid=75326

Youpi Key.

I've stopped using it now because I'm trying to remove the drivers ability to pick up my mouse... its not working. I managed to break my drivers but that is about it.

---
"The time has come," the walrus said. "To talk of many things..."



[ Reply to This | # ]
How to remap Logitech keyboard media buttons
Authored by: 5chm31din6 on Oct 02, '03 01:25:01PM

What I'd like to know is how to change the Logitech mouse wheel scroll (or the one on the keyboard) to scroll an entire screen at a time. The accelerated scroll stinks.

---
your(better than a finger)eye



[ Reply to This | # ]
How to remap Logitech keyboard media buttons
Authored by: neighorn on Oct 06, '03 03:51:48PM

I use USB Overdrive for this. You just set the mouse's 'Wheel down' action to work as the Page Down key. You can also set the number of lines that each 'click' of the wheel will scroll.



[ Reply to This | # ]
How to remap Logitech keyboard media buttons
Authored by: akito on Oct 12, '03 07:52:46PM

i havent gottent USBoverdriveX to work along side the logitech controll center. the LCC trumps USBX for logitech devices, while USBX still works for non logitech ones.. the problem is i have a logitech keyboard and mouse, i want the keyboard drivers, but not the mouse ones. if you can tell me how to make this work words will defy how greatful i will be.



[ Reply to This | # ]
How to remap Logitech keyboard media buttons for controlling Audion
Authored by: ojan on Dec 04, '03 11:37:55AM
I used the hint describe above to remap media keys for controlling Audion on OS X 10.3 and it works just fine… if the scripts begin with iTunes wich is not really nice (i'm controlling Audion now and not iTunes anymore). So i added to the seraph.plugin -> Resources -> Description.plist file this :

<key>Audion Action</key>
		<dict>
			<key>Actor Family</key>
			<string>Opening</string>
			<key>Actor Identifier</key>
			<string>builtin.action.Audion</string>
			<key>Actor Type</key>
			<string>Action</string>
			<key>Actor Version</key>
			<string>1.0</string>
			<key>Actor Weight</key>
			<integer>1</integer>
			<key>Assignment Rule</key>
			<string>hidden</string>
			<key>Classes</key>
			<dict>
				<key>Descriptor</key>
				<string>SEAudionAction</string>
				<key>Editor</key>
				<string>SEAudionActionEditor</string>
			</dict>
			<key>Default Name</key>
			<string>Audion</string>
		</dict>
wich looks pretty the same as the iTunes action but still not work if the scripts begin with Audion.

Here's the contents of the scripts :

Audion.playpause :
tell application "Audion 3" to play front control window

Audion.activate :
tell application "Audion 3" to activate

Audion.previous track:
tell application "Audion 3" to previous track front control window

Audion.stop:
tell application "Audion 3" to stop front control window

Audion.next track:
tell application "Audion 3" to next track front control window

The beauty of the media keys under 10.3 is that you can control Audion on an other user session (no need to switch to the user who launched Audion)

Any idea or suggestion to make this clean and shareable to others ?

[ Reply to This | # ]
How to remap Logitech keyboard media buttons
Authored by: DougAdams on Mar 05, '04 03:11:36PM
This script should open the correct folder, so you don't have to dig and dig and dig. Just copy and paste to Script Editor and save it, or run it right from SE:

tell application "Finder"
	open alias "iMac OS X:Library:Application Support:Logitech:LCCDaemon.app:Contents:Resources:seraph.plugin:Contents:Resources:Scripts:"
	activate
end tell
Sorry about length of that line.

[ Reply to This | # ]
Oops
Authored by: DougAdams on Mar 05, '04 04:01:49PM

Forgot to mention that you should substitute the name of your hard drive for mine, where "iMac OS X" is. You know.



[ Reply to This | # ]
How to remap Logitech keyboard media buttons
Authored by: mortimerpa on Feb 25, '07 02:54:05PM
I have used your hint to create a simple trigger for [link:]http://proxi.griffintechnology.com/ so people can easily remap the keys for something else without dealing with Apple Script.

You can find the installation instructions here:
[link:] http://6v8.gamboni.org/Logitech-Keyboard-Media-Keys-for.html

[ Reply to This | # ]
How to remap Logitech keyboard media buttons
Authored by: tduncklee on Oct 29, '07 11:14:36AM

Anyone having trouble with the Logitech media keys and Leopard? I'm using the Elite Keyboard and really miss having the media keys. All are dead now that I've upgraded to Leopard. Running latest Logitech software.

TD



[ Reply to This | # ]