Not logged in. · Lost password · Register

All posts by Idiomatic (2)

topic: Hotkeys?  in the forum: Features request
Idiomatic #1
Member since Mar 2010 · 2 posts
Group memberships: Members
Show profile · Link to this post
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~
topic: PHP Script for BrowseAmp  in the forum: General discussion
Idiomatic #2
Member since Mar 2010 · 2 posts
Group memberships: Members
Show profile · Link to this post
In reply to post ID 3224
I made a jscript that lets me control the music remotely.... Really simple, it just loads the button presses in the background. Not sure what your setup is if you have to use PHP. But I imagine the idea would be the same, just hit the url silently.

Though I'm sure you'll never end up coming back and reading this anyways.

var args = {};

var objIEA = new ActiveXObject("InternetExplorer.Application");
if( WScript.Arguments.Item(0) == "pause" ){
    objIEA.navigate("http://URLGOESHERE/index.html?pause");
}
if( WScript.Arguments.Item(0) == "vol10" ){
    objIEA.navigate("http://URLGOESHERE/index.html?volume=10");
}
objIEA.visible = false;
while(objIEA.readyState != 4) {}
objIEA.quit();
Close Smaller – Larger + Reply to this post:
Special characters:
Special queries
Go to forum
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Page created in 180.2 ms (81 ms) · 46 database queries in 62 ms
Current time: 2019-08-22, 09:01:41 (UTC +00:00)