Shoutbox

Shell application, minimized - 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: Shell application, minimized (/showthread.php?tid=69017)

Shell application, minimized by Aski on 11-30-2006 at 08:54 PM

Hello everybody!
This might be a stupid question...:

I execute an external EXE File with this command:

code:
var objShell = new ActiveXObject("Shell.Application");
    objShell.ShellExecute(MsgPlus.ScriptFilesPath + '\\app.exe', "", "", "open", 3);


What do I have to do, that this application doesn't start maximized?

Thank you very much!
RE: Shell application, minimized by Spunky on 11-30-2006 at 09:14 PM

MSDN gives you this information

You just need to find the value for SW_SHOWMINIMIZED (which just happens to be 2)

EDIT:
  SW_HIDE = 0
  SW_SHOWNORMAL = 1
  SW_NORMAL = 1
  SW_SHOWMINIMIZED = 2
  SW_SHOWMAXIMIZED = 3
  SW_MAXIMIZE = 3
  SW_SHOWNOACTIVATE = 4
  SW_SHOW = 5
  SW_MINIMIZE = 6
  SW_SHOWMINNOACTIVE = 7
  SW_SHOWNA = 8
  SW_RESTORE = 9
  SW_SHOWDEFAULT = 10
  SW_FORCEMINIMIZE = 11
  SW_MAX = 11


RE: Shell application, minimized by Aski on 12-01-2006 at 05:19 PM

Oh... I'm sorry, that I didn't looked through the MSDN Libary!

thanks anyway!

Have a nice Weekend...