Jump to content

Help Please. Process Close Command


Th3Angel
 Share

Recommended Posts

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.

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...