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

Has anyone had any success getting Autohotkey to work with VLC?

DetectHiddenWindows , On
ControlSend , ahk_parent, !{right}, VLC Media Player
DetectHiddenWindows , Off

DetectHiddenWindows , On
ControlSend , ahk_parent, !{left}, VLC Media Player ahk_class QWidget
DetectHiddenWindows , Off  

DetectHiddenWindows , On
ControlSend , ahk_parent, {space}, ahk_class QWidget
DetectHiddenWindows , Off

Used these (a different method for each one) and they're not working. The scripts work with Itunes btw.

share|improve this question

Try to use VLC HTTP Interface LIbrary, I hope that could help you... This is a library of the http interface commands for VLC Media Player.

Here are some advantages of using VLCHTTP and VLC Media Player:

  • VLC does NOT need to be the active window to use HTTP functions and therefore doesn't interfere with other windows.

  • HTTP functions can be used over the internet, local networks or on one computer.

  • VLC can play full screen on any monitor, not just the default monitor.

  • VLC will open full screen on which ever monitor the media link was clicked.

  • VLC does not drop out of full screen when it looses focus. Play a movie on one monitor and work on the other.


Gui, Add, Button, gButton1, Play/Pause
Gui, Add, Button, gButton2, Volume Up
Gui, Show

VLCHTTP_Pause() ; Use pause instead of play to toggle play/pause mode.

VLCHTTP_VolumeUp(1) ; Turns the volume up 1 step.

More info can be found at this link.

share|improve this answer
Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference. – slhck Dec 20 '12 at 14:38
Thank you for leting me know that, as you can see Im still new here and Im learning, but want to help as much as I can :) – Nidzaaaa Dec 20 '12 at 14:39
No problem! Please just edit your answer and tell us what that link talks about instead of just posting the link. That way people know what to expect, et cetera. Thanks! – slhck Dec 20 '12 at 14:40

Your ControlSend command should probably have different parameters (read the help file for more information). This works on my PC (Win7 32):

SetTitleMatchMode, 2
ControlSend, , {space}, VLC media player

It turns out that you don't need any control ID: VLC will accept space in any control (or at least the topmost control). The problem with your code was, I think, that you used both window class and text from the title to identify the window: you should just use one or the other, not both.

I always set the title match mode to 2 (= words can be anywhere in the title) because that catches most titles and works more intuitively (I am too lazy to test whether it works with a different match mode).

share|improve this answer

You must log in to answer this question.

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