Sign in to follow this  
Followers 0
Shyke

3rd Party Chat Killer

9 posts in this topic

Alright for a game one of the people asked if I could make a program that could close off all 3rd party chat methods so the game would be more challenging. I noticed that if using Proccessclose that the proccess name is changed if the *.exe of the program is changed. How can I work around this... so I really close the wanted program?

Share this post


Link to post
Share on other sites



Just so I understand this question:

1. You want to use ProcessClose

2. People can change the .exe name

3. Even if the .exe name is changed to something unique that you have NO idea what it is or could be, you want to know it is the same program as originally installed.

4. If it is the same program you want to close the process.

Sound about right?


[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Oh! Under it all you are hinting that I use registry to read where the *.exe would be then try to find the name of the *.exe or did I just figure that out?

But yeah that is basically what I want.

Edited by Shyke

Share this post


Link to post
Share on other sites

Oh! Under it all you are hinting that I use registry to read where the *.exe would be then try to find the name of the *.exe or did I just figure that out?

But yeah that is basically what I want.

It would have to be the registry or a known window name or handle... Because if there's not a unique identifier (like if there was a semaphore set by it and you knew that), I can't imagine you being able to find it.


[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

You could use like Mirc and stuff... yeah.

There is a set name that is unchangeable for all of them but how can you do a processclose when you only have a windows name or can you use a winkill and just drop it right there?

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

You could get the handle of the window, then run it against the handles of the process list and see what the exe name is.

Or you could just do something like what was being done earlier in another thread...

I'll see if I can whip up an example:

Edited by SmOke_N

[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

you could also read the title of the windows

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

I wrote out the really bad ass UDF to do it... then as I was writing it... I realized I do things so complicated sometimes!!

Opt('WinTitleMatchMode', 4)
$WindowPartTitle = WinGetTitle('Mirc')
$Process = WinGetProcess($WindowPartTitle)
ProcessClose($Process)
Edited by SmOke_N

[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

#9 ·  Posted (edited)

Thanks, it should work for all my problems!

EDIT: Yep, it suits the job perfectly... now I just gotta make it useable with a database from the internet...

Edited by Shyke

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