I have an application (last.fm 1.5.4) that doesn't use global keyboard shortcuts, i.e. its shortcuts only work when the application has focus.

Is there a way of manually defining a global shortcut in windows7 that will be routed to the application, even when it doesn't have focus?

link|improve this question
feedback

3 Answers

Only to remark that AutoHotkey, suggested by Botond Balázs, started as a fork of AutoIt.

AutoIt has continued to evolve even more, and may be more pleasurable for writing scripts.

link|improve this answer
Thanks for the tip, I will check out AutoIt! – Botond Balázs Nov 1 '09 at 12:23
feedback

If we're all going the autohotkey route, let's give some scripting help!

This script was reccomended by Lifehacker, and looks pretty good to me. Never used last.fm, so that's all I've got :)

Looks like it's a little complex, but if you simply paste that script into the top of a .ahk file (basically a text file with the extension .ahk), then you can use things like:

#p::ControlLastFM("Toggle")

to play/pause on Winkey (# is the winkey modifier) and P (p is p, any key will do :))

link|improve this answer
feedback

You can use AutoHotKey to define a global shortcut, and bind it to a script that sends key presses to the window.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.