ExoCore Posted October 15, 2011 Posted October 15, 2011 (edited) I am new to AutoIt but I was wondering how could I set it up to run like... for this process only.. so I can do something else.. Kind of like a dll injection to that certain program.. or maybe like... running it in the background so what ever it is doing is not affecting my screen Programs > I was referring to process Edited October 15, 2011 by ExoCore
Ramzes Posted October 15, 2011 Posted October 15, 2011 CreateProcess: Func _CreateProcess($sAppName, $sCommand, $pSecurity, $pThread, $fInherit, $iFlags, $pEnviron, $sDir, $pStartupInfo, $pProcess) Local $pAppName, $tAppName, $pCommand, $tCommand, $pDir, $tDir, $aResult if $sAppName <> "" then $tAppName = DllStructCreate("char Text[" & Stringlen($sAppName) + 1 & "]") $pAppName = DllStructGetPtr($tAppName) DllStructSetData($tAppName, "Text", $sAppName) endif if $sCommand <> "" then $tCommand = DllStructCreate("char Text[" & Stringlen($sCommand) + 1 & "]") $pCommand = DllStructGetPtr($tCommand) DllStructSetData($tCommand, "Text", $sCommand) endif if $sDir <> "" then $tDir = DllStructCreate("char Text[" & Stringlen($sDir ) + 1 & "]") $pDir = DllStructGetPtr($tDir) DllStructSetData($tDir, "Text", $sDir) endif $aResult = DllCall("Kernel32.dll", "int", "CreateProcess", "ptr", $pAppName, "ptr", $pCommand, "ptr", $pSecurity, "ptr", $pThread, _ "int", $fInherit, "int", $iFlags, "ptr", $pEnviron, "ptr", $pDir, "ptr", $pStartupInfo, "ptr", $pProcess) Return SetError(GetLastErreur(), 0, $aResult[0]<>0) EndFunc Func GetLastErreur() Local $aResult $aResult = DllCall("Kernel32.dll", "int", "GetLastError") Return $aResult[0] EndFunc from A3LWinAPI.au3. Sorry for my bad English but nobody is perfect. [font=arial, helvetica, sans-serif]Ramzes[/font]
ExoCore Posted October 15, 2011 Author Posted October 15, 2011 I mean make it attach to the process so watever I do is not affecting it... I mean it still works like I want it to in minimize mode
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