Sign in to follow this  
Followers 0
Diana (Cda)

ProcessClose doesn't close process.

8 posts in this topic

#1 ·  Posted (edited)

I can, of course, close a process manually but have found that this particular one can't be closed with a ProcessClose. Is there something stronger that AI can use to kill it instead?

Thanks.

Edited by Diana (Cda)

Share this post


Link to post
Share on other sites



Does WinKill not work for you either?


- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
Share on other sites

Does WinKill not work for you either?

Hi!

Well, it's a behind-the-scenes process so it has no window. I can give it a try, but I'm not sure this is the appropriate function to use. But then, what do I know ... <lol> I'll report back, though I am wondering if this is going to work. ;)

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Hi!

Well, it's a behind-the-scenes process so it has no window. I can give it a try, but I'm not sure this is the appropriate function to use. But then, what do I know ... <lol> I'll report back, though I am wondering if this is going to work. ;)

Nah, of course it didn't work <lol>.

I know there are freeware apps out there the forcibly can terminate a process after unsuccessfully trying to close it, I'm guessing like what ProcessClose does initially, but I'm trying to find an AI solution first. I'd like to terminate this behind-the-scenes process since I only need it when I'm going to use the app. But it sits there waiting until I need it and that's what I don't like. With an AI script, I could just stick that in the startup folder and have it wait a couple of minutes so that it terminates the process every time I reboot so I don't have to do it manually. ProcessClose just doesn't work on it, though.

Anyway, any other ideas appreciated. If not, I'll try one of those more aggressive process terminator thingies out there. Thx. :)

Edited by Diana (Cda)

Share this post


Link to post
Share on other sites

Personally i prefer CMD (Command Prompt) for those programs that just wont be closed

For CMD

tskill Firefox

Autoit

#include <Process.au3>

_RunDOS("tskill Firefox")

Hope that works for ya

- Tyranlol


[u]Only by Attempting the Impossible You Can Earn the Remarkable[/u]

Share this post


Link to post
Share on other sites

Maybe the process you are trying to close is of some security program's process.

protected at Kernel level or using Service.

by the way, what's the process name which you are trying to close?

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

Personally i prefer CMD (Command Prompt) for those programs that just wont be closed

For CMD

tskill Firefox

Autoit

#include <Process.au3>

_RunDOS("tskill Firefox")

Hope that works for ya

- Tyranlol

It actually didn't but I'm not worrying anymore. This isn't all that critical, it was more an exercise to figure out how to close. But I can still do this manually, if I want to bother.

To remind me, I did do up this script in the startup folder:

ShellExecute("Taskmgr.exe")
Is there any way to get the Task Manager be made to open up in the "Processes" tab? Even more ambitiously, can Task Manager to made to sort the processes? This last is just, again, a wish list kind of thing but if AI can do it, why not? But if not, just getting Task Manager to open up showing all the Processes instead of the default main tab, that would be fine. Then I can decide on any given boot-up if I even want to bother closing things down. It's only that sometimes I am multi-tasking and I need to shut down all unnecessary unnecessary things running.

Thanks. ;)

Edited by Diana (Cda)

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

Try _RunDOS ( "taskkill Firefox" )

Edit : Or a processclose in a loop...

While Processexists( $processname )
     processclose ( $processname )
WEnd
Edited by wakillon

AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0