Step 6Software
The menu is based on HTA (HTML for applications). Google it. Some code's attached. I had some concerns early on about HTA performance. But, it runs wonderfully and is simple to work with.
| « Previous Step | Download PDFView All Steps | Next Step » |










































on the part for the wshell3.run(a) it gave an error.......
also trying to figure it out it doesn't seem that it grabds the radio.vbs and do the split because a always contain 2 names that are not passed anywhere
like a little test i do the following on thet listActivate()
wshell.Run ('cmd /K cd C:\\Documents and Settings\\All Users\\Documents\\My Music\\Sample Music & CLAmp.exe /PLCLEAR /PLADD "mpehere.mp3" /REPEAT ON /PLAY ' ); it that way im able to load the song....... but how to make it work the way is supposed to be
thnks for the help and great idea :) sorry if this is an old post.
function listActivate() {
if(listStep > 0) return;
divList.style.visibility = "hidden";
divListPointer.style.visibility = "hidden";
a = '"' + listItemActions[setIdx] + '" "' + unescape(listItemParams[setIdx][listIdx]) + '"';
var wshell = new ActiveXObject("WScript.Shell")
alert(a)
wshell.run(a)
wshell.quit
}
Then, it will show you the wshell.run() parameter. Then try running it manually like you did before. It could be the way you're referencing your data in theme.xml, or, the way CLamp is being referenced in album.vbs.
Let me know what you see.
, was this program working from the beginning?
theme.js runs loadTheme() which does: listItemActions[i] = path + "\\" + b.getAttribute('action');
As long as theme.xml has this in the list: <set name="radio" path="theme\radio" action="radio.vbs" paramPre="http://">
radio.vbs will run when selected. That is, as long as you have the Windows Script Host installed...
Try typing "cscript" in a dos window.