Th3Angel 0 Posted September 18, 2010 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 0 Posted September 18, 2010 (edited) 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.ReplaceRun("C;\Users\NoBob\Desktop\Other\GameBooster.exe")withRun("C:\Users\NoBob\Desktop\Other\GameBooster.exe")the difference is just C;\Users\ and C:\Users\ Edited September 18, 2010 by ALTIN Share this post Link to post Share on other sites
somdcomputerguy 103 Posted September 18, 2010 (edited) 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 September 18, 2010 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 0 Posted September 18, 2010 (edited) 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.ReplaceRun("C;\Users\NoBob\Desktop\Other\GameBooster.exe")withRun("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 September 18, 2010 by Th3Angel Share this post Link to post Share on other sites
ALTIN 0 Posted September 18, 2010 (edited) 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 September 18, 2010 by ALTIN Share this post Link to post Share on other sites
KurogamineNox 0 Posted September 18, 2010 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