AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

MouseMote - Use your wireless mouse as a remote!

 
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
TheGood



Joined: 30 Jul 2007
Posts: 516

PostPosted: Tue Jan 20, 2009 11:14 pm    Post subject: MouseMote - Use your wireless mouse as a remote! Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
TheGood



Joined: 30 Jul 2007
Posts: 516

PostPosted: Tue Jan 20, 2009 11:20 pm    Post subject: Reply with quote

Also, if anyone knows of a more reliable way to control VLC/MPC instead of using shortcuts, please let me know.
Back to top
View user's profile Send private message Visit poster's website
Krogdor



Joined: 18 Apr 2008
Posts: 1390
Location: The Interwebs

PostPosted: Wed Jan 21, 2009 1:31 am    Post subject: Reply with quote

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...
Back to top
View user's profile Send private message AIM Address
Z_Gecko
Guest





PostPosted: Wed Jan 21, 2009 4:35 am    Post subject: Reply with quote

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
Back to top
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group