Jump to content
Sign in to follow this  
Th3Angel

Help Please. Process Close Command

Recommended Posts

Th3Angel

Hi, I'm trying to create a simple script to close some unnecessary processes that i dont want to have running, but when i press the hotkey, nothing happens. Also, I want it to run a program at the end.

Code:

Hotkeyset("c", "CloseProcess")

While 1

Sleep (500)

WEnd

Func CloseProcess()

ProcessClose("AdobeARM.exe")

ProcessClose("CLMLSVC.exe")

ProcessClose("dllhost.exe")

ProcessClose("hpqbam08.exe")

ProcessClose("hpqgpc01.exe")

ProcessClose("hpqste08.exe")

ProcessClose("hpswp_clipbook.exe")

ProcessClose("hpwuschd2.exe")

ProcessClose("iPodService.exe")

ProcessClose("iTunesHelper.exe")

ProcessClose("jusched.exe")

ProcessClose("LSSRVC.exe")

ProcessClose("mDNSResponder.exe")

ProcessClose("PictureMover.exe")

ProcessClose("PMB.exe")

ProcessClose("sppsvc.exe")

ProcessClose("sqlservr.exe")

ProcessClose("sqlwriter.exe")

ProcessClose("TeamViewer_Service.exe")

ProcessClose("TrustedInstaller.exe")

ProcessClose("winampa.exe")

ProcessClose("WmiPrvSE.exe")

Run("C;\Users\NoBob\Desktop\Other\GameBooster.exe")

EndFunc

Can someone help me? Because apparently I can't do a simple task.

Share this post


Link to post
Share on other sites
ALTIN

Th3Angel welcome to forums,

I see you already dit that "simple task" ;)

Yuo just missplaced a ( ; ) at the end when you run your program, so it does not get the correct path of the program you want to run.

Replace

Run("C;\Users\NoBob\Desktop\Other\GameBooster.exe")

with

Run("C:\Users\NoBob\Desktop\Other\GameBooster.exe")

the difference is just C;\Users\ and C:\Users\ :)

Edited by ALTIN

Share this post


Link to post
Share on other sites
somdcomputerguy

Well I can't say why the ProcessClose lines appear not to work, but there's a typo in the Run line, try C: instead of C;

Edited by somdcomputerguy

- 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
Th3Angel

Th3Angel you already dit that "simple task" ;)

Yuo just missplaced a ( ; ) at the end when you run your program, so it does not get the correct path of the program you want to run.

Replace

Run("C;\Users\NoBob\Desktop\Other\GameBooster.exe")

with

Run("C:\Users\NoBob\Desktop\Other\GameBooster.exe")

the difference is just C;\Users\ and C:\Users\ :)

Some processes that I told to close doesnt close, and the program I want to run doesnt run.

Edited by Th3Angel

Share this post


Link to post
Share on other sites
ALTIN

Some processes that I told to close doesnt close, and the program I want to run doesnt run.

...some of the processes that you say dont close, may depend in other processes that run them again immediately after detecting you closed them, so take a closer look at this point...

For the program, try ShellExecute("C:\Users\NoBob\Desktop\Other\GameBooster.exe")

Edited by ALTIN

Share this post


Link to post
Share on other sites
KurogamineNox

It might be possible that some programs arnt closing because they might can only close with administrator privilages. You should try running your program with admin privilages.

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.