Shoutbox

Send variable as command line paramter - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: Send variable as command line paramter (/showthread.php?tid=86387)

Send variable as command line paramter by paulieG on 10-04-2008 at 02:31 AM

Hi,

I can get my command line working with additional arguments, but I want to include the message text as one of these parameters and every time I try to include this variable I get an object error.  See my code below;

var result = Interop.Call("shell32.dll", "ShellExecuteW", null, "open", "C:\\mythtvosd.exe", "--type=scroller --text=" + varmessage,"", 10)

Surely I am just syntaxing it wrong but I cant find anything on the net to help?

Cheers,

PaulieG


RE: Send variable as command line paramter by CookieRevised on 10-04-2008 at 10:21 AM

Start by including all the relevant code. eg: where does varmessage comes from, what routines manipulate it, etc....
Also what exact line in your code generates the object error.

;)