Not logged in. · Lost password · Register
Forum: Features request RSS
Hotkeys?
DoubleG #1
Member since Jan 2009 · 2 posts
Group memberships: Members
Show profile · Link to this post
Subject: Hotkeys?
First off, thanks for a great tool to control Winamp remotely - very nice work.


I have two ideas, that are somewhat related:
I'm not even sure if this is possible, but it would be nice to have the interface (on the "controlling" end) be able to respond to hotkeys (i.e. "B" for next, etc. - like Winamp does)

The 2nd is to have the interface respond to an IR remote - currently I have Winamp set up to use Windows Media Center remote commands via a plug-in (which simply just interprets the remote commands as hotkeys)  The same functionality for the Browseamp interface would be very cool.

Thanks again.
Avatar
Henry (Administrator) #2
Member since Jan 2003 · 865 posts · Location: Munich Germany
Group memberships: Administrators, Members
Show profile · Link to this post
So you need a remote control for the remote control... ok...
However, this is possible with some JavaSrcipt you can use in every Browseamp skin. http://www.google.com/search?hl=en&q=javascript+hotkey found some useful ressources.
Idiomatic #3
Member since Mar 2010 · 2 posts
Group memberships: Members
Show profile · Link to this post
In reply to post #1
For anyone that wants hotkeys try the following:

1) Save the following as bamp.js. Change (MYIPADRESS:MYPORT) to your target computer.
var args = {};

var objIEA = new ActiveXObject("InternetExplorer.Application");
if( WScript.Arguments.Item(0) == "pause" ){
    objIEA.navigate("http://MYIPADRESS:MYPORT/index.html?pause");
}
if( WScript.Arguments.Item(0) == "next" ){
    objIEA.navigate("http://MYIPADRESS:MYPORT/index.html?next");
}
if( WScript.Arguments.Item(0) == "prev" ){
    objIEA.navigate("http://MYIPADRESS:MYPORT/index.html?prev");
}
if( WScript.Arguments.Item(0) == "vol50" ){
    objIEA.navigate("http://MYIPADRESS:MYPORT/index.html?volume=50");
}
if( WScript.Arguments.Item(0) == "vol100" ){
    objIEA.navigate("http://MYIPADRESS:MYPORT/index.html?volume=100");
}
if( WScript.Arguments.Item(0) == "vol10" ){
    objIEA.navigate("http://MYIPADRESS:MYPORT/index.html?volume=10");
}
objIEA.visible = false;
while(objIEA.readyState != 4) {}
objIEA.quit();

2) Create shortcuts like the following. Change the part in the quotes to point to the bamp file you made. And change the bit at the end to the control you want. pause,vol100,w/e (refer to the .js file):
C:\Windows\System32\wscript.exe "C:\Users\Username\Documents\bamp.js" pause

3)You can give the shortcuts icons and add them to a toolbar (quicklaunch w/e) OR you can use a hotkey program such as http://www.autohotkey.com/ to allow you to use them with hotkeys.

Tada~
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Page created in 151.8 ms (67.6 ms) · 53 database queries in 59.9 ms
Current time: 2018-12-16, 05:55:43 (UTC +00:00)