What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Send variable as command line paramter

Send variable as command line paramter
Author: Message:
paulieG
New Member
*


Posts: 1
Joined: Oct 2008
O.P. Send variable as command line paramter
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
10-04-2008 02:31 AM
Profile E-Mail PM Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: Send variable as command line paramter
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.

;)
.-= A 'frrrrrrrituurrr' for Wacky =-.
10-04-2008 10:21 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On