The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: gavin on July 12, 2005, 11:31:31 AM

Title: Would this work INVOKE WaitForInputIdle
Post by: gavin on July 12, 2005, 11:31:31 AM
Hi guys.

I have a slight problem.

Im running an app with a command line like this.

invoke GetStartupInfo,ADDR startupinfo

invoke CreateProcess,ADDR FileName,ADDR command,NULL,NULL,NULL,\
NORMAL_PRIORITY_CLASS,\
NULL,NULL,ADDR startupinfo,ADDR processinfo
invoke CloseHandle,processinfo.hThread



C:\Program Files\Valve\Steam\Steam.exe thats the program and when i add the command line

-applaunch 10 +connect  this tells steam to start another program after it has loaded .

So how would i do this?


The applaunch tells steam to run a program called counter strike.

Thanks alot.
Title: Re: Would this work INVOKE WaitForInputIdle
Post by: sluggy on July 12, 2005, 11:49:45 AM
Use ShellExecuteEx instead as it gives you the option of specifying arguments to go on the command line.
Title: Re: Would this work INVOKE WaitForInputIdle
Post by: gavin on July 23, 2005, 11:37:03 PM
Thanks Sluggy that worked fine :U :bg