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 want to make music play/pause pressing space (like it does in VLC).

How can I change this?

Edit: I am aware of global hotkey option, but i dont want it to be global, thus, i dont want to pause/unpause every time i press space while writing a message... :D

share|improve this question
    
Use VLC ... :D dont bother it. although vlc is quite better than winamp. –  TechLife 2 days ago

3 Answers 3

I managed to have the spacebar act as the "pause" button of WinAmp by modifying the accelerator tables in the executable with Resource Hacker (http://www.angusj.com/resourcehacker/). For instance, I edited the accelerator with ID 40046 (which was VK_C, corresponding to the current shortcut for the Pause button) in the three accelerator tables containing it (1371, 1372, 1373), by replacing it with VK_SPACE (then you have to click the Compile script button on the top).

Editing VK_C to have VK_SPACE

In one of the accelerator tables (1372) there is already a VK_SPACE accelerator. I just removed it (as leaving it there was preventing the spacebar to act as Pause/Unpause if the playlist window was focused). Not sure what the space was doing before in the playlist.

All the other default keyboard shortcuts of Winamp could be changed the same way.

Note that you will probably not be able to edit Winamp.exe in-place in its installation folder (except if running Resource Hacker with elevated privileges), so the easiest is to make a copy somewhere else and copy it back. Make sure anyway to keep a copy of the original executable, in case something goes wrong.

share|improve this answer

Ctrl + P -> Preferences -> General Preferences -> Global hotkeys, there should have checkbox to enable editing the key combinations.

Choose action and at the "hotkey" press the Space

share|improve this answer
    
i dont want it to be global key... i just want it to work when winamp is focused. –  winuser May 8 '11 at 19:07
    
They are builded like that, no direct way to override them. There are some plugins, which I haven`t tested. –  Bakudan May 10 '11 at 4:56
    
This answer does not accomplish the question requeriments. I'm in the same issue, not wanting to set a GLOBAL hotkey. –  ElektroStudios Dec 19 at 9:37

The Winamp Global hotkeys are designed to be global, so as to continue working even while Winamp is minimized to the background. This is by design and cannot be changed - all I can offer is a workaround.

Here is my workaround :

  1. Disable in Preferences all the Global hotkeys that you do not need, only leaving the ones you intend to use.

  2. Assign these Global hotkeys to unlikely key combinations that will never be used for anything else.
    For example assigning Alt+Shift+Control+P to play/pause.

  3. Use AutoHotkey to create a script that, only when Winamp has the focus, maps the hotkeys you really want to use to these defined shortcuts.
    For example, map Space to the play/pause shortcut of Alt+Shift+Control+P.

share|improve this answer

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.