eastmus Posted August 23, 2011 Share Posted August 23, 2011 #Include <WinAPI.au3> _WinAPI_CreateProcess($sAppName, $sCommand, $pSecurity, $pThread, $fInherit, $iFlags, $pEnviron, $sDir, $pStartupInfo, $pProcess) $sAppName The name of the module to be executed $sCommand The command line to be executed $pSecurity Pointer to $tagSECURITY_ATTRIBUTES structure that determines whether the returned handle can be inherited by child processes. $pThread Pointer to $tagSECURITY_ATTRIBUTES structure that determines whether the returned handle can be inherited by child processes. $fInherit If True, each inheritable handle in the calling process is inherited by the new process $iFlags Flags that control the priority class and creation of the process $pEnviron Pointer to the environment block for the new process $sDir The full path to the current directory for the process $pStartupInfo Pointer to a $tagSTARTUPINFO structure $pProcess Pointer to a $tagPROCESS_INFORMATION structure i need some example on how to use this. I only need it to launch another executable like "game.exe". How do i write the parameter for $sDir to be current dir? thanks #Include <WinAPI.au3> $sAppName = "game.exe" $sCommand = "" $pSecurity = "" $pThread = "" $fInherit = "" $iFlags = "" $pEnviron = "" $sDir = "" $pStartupInfo = "" $pProcess = "" _WinAPI_CreateProcess($sAppName, $sCommand, $pSecurity, $pThread, $fInherit, $iFlags, $pEnviron, $sDir, $pStartupInfo, $pProcess) Link to comment Share on other sites More sharing options...
JohnOne Posted August 23, 2011 Share Posted August 23, 2011 Run("Game.exe") AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
eastmus Posted August 23, 2011 Author Share Posted August 23, 2011 Run("Game.exe")thanks.Is there a way to hide the PID from taksmanager ? Run an executable as hidden process Link to comment Share on other sites More sharing options...
JohnOne Posted August 23, 2011 Share Posted August 23, 2011 thanks.Is there a way to hide the PID from taksmanager ? Run an executable as hidden processI dont know, but I do know that that sort of discussion attracts the wrong kind of attention here, and I personally cannot think of a single non malicious reason to hide a process from task manager.I'm sure you will get other views though. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
eastmus Posted August 23, 2011 Author Share Posted August 23, 2011 I dont know, but I do know that that sort of discussion attracts the wrong kind of attention here, and I personally cannot think of a single non malicious reason to hide a process from task manager.I'm sure you will get other views though.i see, thanks. Didnt think that way Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now