Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

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.

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

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
add comment

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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