Reeling Posted May 9, 2012 Share Posted May 9, 2012 (edited) Hey so let me explain my problem. I need to close a program using ProcessClose There are mutliple windows with the same name so ProcessList wont work. I tried to do ProcessList(WinGetHandle("[ACTIVE]") but that didnt work. I can not close the window using WinKill or WinClose because for what ever reason it resists being closed in this way. Maybe there is an alternative?. Lastly and possibly most importantly the Run command wont work to get the PID because the process ID changes after the program has been run. Suggestions? SOLVED using WinGetProcess("[ACTIVE]") I knew there must be a way to do it! Edited May 10, 2012 by Reeling Link to comment Share on other sites More sharing options...
JohnOne Posted May 10, 2012 Share Posted May 10, 2012 Lets get some things straight. You want to close a process or a window? 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...
Reeling Posted May 10, 2012 Author Share Posted May 10, 2012 (edited) Lets get some things straight.You want to close a process or a window?a process that is related to a window if that makes sense, sorry for being a bit unclear.I want to close the window but the window becomes unresponsive so I am trying to close it with the process ID instead. Edited May 10, 2012 by Reeling Link to comment Share on other sites More sharing options...
spudw2k Posted May 10, 2012 Share Posted May 10, 2012 (edited) if you know the processname (i.e. notepad.exe) then you can use processexists to retrieve the PID edit: Thinking about it more...if you know the processname then you should just be able to do ProcessClose on that. Edited May 10, 2012 by spudw2k Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX BuilderMisc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retreive SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose ArrayProjects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalcCool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF 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