AutoHotkey Community

It is currently May 26th, 2012, 2:25 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: January 20th, 2009, 11:14 pm 
Offline

Joined: July 30th, 2007, 11:32 pm
Posts: 581
While watching movies on my computer, one thing I hate (even more when I'm lying down) is having to move the mouse around to pause, raise/lower the volume, or even rewind just a bit. So I made a script which transforms the mouse into a simple remote! Currently, it only supports VLC, MPC and Winamp, but it is very easy to add support for other players.

Here's more info from the script header:
Code:
/* TheGood
MouseMote

ONLY ENABLED WHILE IN FULLSCREEN

Raise/Lower volume              Mouse wheel Up/Down
Seek forward/backward           Hold RButton + Mouse wheel Up/Down
Play/Pause                      LButton click
Stop                            Middle click

To turn off hotkeys while in fullscreen, simply place the mouse in the upper-left corner of the
monitor. This is useful especially to access the context-menu (right-click menu) and to leave
fullscreen mode (most players require a double click). Also, clicking off the screen (in a multi-
monitor setup) will disable the hotkeys.

MouseMote automatically exits when no players are running. For this reason, it must be started
after the player is opened.

To add support for your own player:
    1. Add the class name to the window group (both when fullscreen and not)
    2. Make a wrapper for your player (look at the other wrappers for template)
    3. Add an Else If in DoActions() to call your wrapper

*/


Download


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 20th, 2009, 11:20 pm 
Offline

Joined: July 30th, 2007, 11:32 pm
Posts: 581
Also, if anyone knows of a more reliable way to control VLC/MPC instead of using shortcuts, please let me know.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 21st, 2009, 1:31 am 
Offline

Joined: April 18th, 2008, 7:57 am
Posts: 1390
Location: The Interwebs
For VLC, this page gives information on how to control VLC from the command line, but I haven't figured out how to make it interact with a currently open window instead of opening a new one, if that's possible...


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 21st, 2009, 4:35 am 
VLC can launch additional control interfaces.
if you use the RC [Remote Control] interface locally,
you get an additional command window.
http://www.videolan.org/doc/play-howto/en/ch04.html#id310730

You could also use the RC-interface via TCP/IP or
use the http-server-interface via urldownloadtofile/httpget


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 11 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group