yakir Posted February 18, 2010 Share Posted February 18, 2010 (edited) is there a way to get Handle of a process by use it pid? i have a PID and want to get it's Handle using the PID i try to build a show and hide win script Edited February 18, 2010 by yakir Link to comment Share on other sites More sharing options...
PsaltyDS Posted February 18, 2010 Share Posted February 18, 2010 _WinAPI_OpenProcess() See help file. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
wolf9228 Posted February 19, 2010 Share Posted February 19, 2010 is there a way to get Handle of a process by use it pid? i have a PID and want to get it's Handle using the PID i try to build a show and hide win script #Include <WinAPI.au3> $PID = Run(@WindowsDir & "\Notepad.exe", "", @SW_MAXIMIZE) WinWaitActive("[CLASS:Notepad]") Dim $PROCESS_ALL_ACCESS = 0x000F0000 + 0x00100000 $Processhandle = _WinAPI_OpenProcess($PROCESS_ALL_ACCESS, False, $PID , False) If ($Processhandle) Then MsgBox(0,"",$Processhandle) صرح السماء كان هنا 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