I can't guarantee this won't have a problem, however, it's been
working fine for me so far. It executes a console application without
ever creating, not just hiding, a console window. It doesn't affect
the behavior of a GUI app, btw.

Run it as .NoConWind(Cmd,Param,Work). For example,
.NoConWind(?"C:\path1\gplay.exe",?'"My Song.ogg"',?"c:\My Music")

----------- NoConWind.PowerPro -------------------------------------
@NoConsole
local si,pi,pid,tid,hProc,hThrd,sCmd,sParam,sWork

sCmd=arg(1)
sParam=" "++arg(2)
sWork=arg(3)++if(not arg(3),".")

pi=dll.create_struct("ui ui ui ui","hProc","hThrd","pid","tid")
si=dll.create_struct("ui s s s ui ui ui ui ui ui ui ui uo uo uc ;;+
ui ui ui","","","","","","","","","","","","","","","","","","")

dll.call("CreateProcess|s s ui ui i ui ui s t* t* i", ;;+
"sCmd","sParam","","",0,0x08000000,"","sWork",si,pi)
; dll.call("CloseHandle|ui i",hProc)
; dll.call("CloseHandle|ui i",hThrd)
quit
--------------------------------------------------------------------

Sean





Attention: PowerPro's Web site has moved: http://www.ppro.org 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to