quote:
Originally posted by Ashylay
Well say on a webpage you used a variable
Would it be possible to load an internet page which has a variable on it and use the writing you wrote as the varibale so some of the script would look like this:
"http://www.yoursite.com/index.php?variable=" + split[1]
Then it would load
http://www.yoursite.com/index.php?variable=WHATEVER YOU PUT FOR SPLIT 1
Ok...if i have understand well...you want this:
code:
function OnGetScriptCommands(){
var commands = "<ScriptCommands>";
commands += " <Command>"
commands += " <Name>command</Name>"
commands += " <Description>TheGuruSupremacy</Description>"
commands += " </Command>"
commands += "</ScriptCommands>"
return commands;
}
function OnEvent_ChatWndSendMessage(ChatWnd, Message){
var split=Message.split(" ")
if(split[0]=="/command"){
var url="http://www.yoursite.com/index.php?variable=" + split[1]
Interop.Call("shell32","ShellExecuteW",0,"open",url,null,null,1)
MsgPlus.DisplayToast("Example",split[1])
return "";}}