What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » interop call open

interop call open
Author: Message:
roxy_dany22
New Member
*


Posts: 1
Joined: Nov 2007
O.P. interop call open
hi!(i'm italian..sorry 4 my bad english)
i've read in one topic to call this function to execute a file:

code:
Interop.Call("shell32.dll", "ShellExecuteW", null, "open", "C:app.exe", "param1 param2", "", SW_SHOWDEFAULT)

but it says that SW_SHOWDEFAULT is not defined...what shall i do?
11-12-2007 03:14 PM
Profile E-Mail PM Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
35 / Male / Flag
Joined: Aug 2006
RE: interop call open
Constants are not not defined so you need to find the value of SW_SHOWDEFAULT and set it...

I think it's 10 so either declare it globally or just change SW_SHOWDEFAULT to 10.

This post was edited on 11-12-2007 at 03:48 PM by Spunky.
<Eljay> "Problems encountered: shit blew up" :zippy:
11-12-2007 03:45 PM
Profile PM Find Quote Report
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
31 / Male / Flag
Joined: Apr 2004
RE: interop call open
You may also want to change "C:app.exe" to "C:\\app.exe". And I don't know if you want "param1 param2" sent to that application, maybe you need to have a look at those too? :)
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
11-12-2007 05:15 PM
Profile E-Mail PM Web 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