NeoMorph
July 22nd, 2007, 08:11 PM
I swear that I'm getting very irritated by error dialogs that chop off the end of the message. I can't see what the error is to try and fix it.. See attached error dialog snapshot for what I mean. An error message that doesn't actually say anything informative is just hopeless - it just gets me angry.
All I'm trying to do is a simple slider to send a volume commands to XBMC (XBOX Media Center). Unfortunately whenever I put anything in the system lua it kicks out errors (which I don't understand becuase it cuts off the important info. It might as well just say "HA HA ... YOU GOT IT WRONG!" :)
One thing I feel is missing in the help files is proper coded examples. An example shows things a lot better than the existing syntax only.
OK... back to the problem...
Once my slider has finished moving I want it to send a value to a webpage. For instance to set the volume to 80%...
http://xbox/xbmcCmds/xbmcHttp?command=setvolume¶meter=80 The web browser plugin in on pagefile "XBMC".
To retrieve the volume level you do the following
http://xbox/xbmcCmds/xbmcHttp?command=GetVolume and it returns
<html>
<li>80</html>
I have setup a slider bar (nicked from the example ccf) and changed the variable from "mp.volume" to "xbmc.volume". The slider is on the same page as the web browser plugin.
Unfortunately I now know absolutely nothing about what I should be doing next as the helpfile doesn't tell me. I'm just plain and simply lost. I really need to sit down and get a background in lua coding as I keep putting in php, C++, visual basic and god knows what else as the syntax. Also the lua methodology seems slightly different as it doesn't seem to have the same flow as those other languages (or it may just be the way I'm getting confused).
Can someone send me a simple ccf that shows me how to use sliders as I'm getting nowhere fast.
All I'm trying to do is a simple slider to send a volume commands to XBMC (XBOX Media Center). Unfortunately whenever I put anything in the system lua it kicks out errors (which I don't understand becuase it cuts off the important info. It might as well just say "HA HA ... YOU GOT IT WRONG!" :)
One thing I feel is missing in the help files is proper coded examples. An example shows things a lot better than the existing syntax only.
OK... back to the problem...
Once my slider has finished moving I want it to send a value to a webpage. For instance to set the volume to 80%...
http://xbox/xbmcCmds/xbmcHttp?command=setvolume¶meter=80 The web browser plugin in on pagefile "XBMC".
To retrieve the volume level you do the following
http://xbox/xbmcCmds/xbmcHttp?command=GetVolume and it returns
<html>
<li>80</html>
I have setup a slider bar (nicked from the example ccf) and changed the variable from "mp.volume" to "xbmc.volume". The slider is on the same page as the web browser plugin.
Unfortunately I now know absolutely nothing about what I should be doing next as the helpfile doesn't tell me. I'm just plain and simply lost. I really need to sit down and get a background in lua coding as I keep putting in php, C++, visual basic and god knows what else as the syntax. Also the lua methodology seems slightly different as it doesn't seem to have the same flow as those other languages (or it may just be the way I'm getting confused).
Can someone send me a simple ccf that shows me how to use sliders as I'm getting nowhere fast.