Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question

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.

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

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 :))

share|improve this answer

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

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .