Jump to content

Procces Close If Lag


rambo3889
 Share

Recommended Posts

I was on a netclub today and was using a pc there is VERY slow so a lot of programs lags and freezes like 20 times after 5 times i was angry so i made this to close the window if it lags

HotKeySet("{F3}","quit")
HotKeySet("{F4}","close")

While 1
Sleep(10);Dont take the CPU to hard
WEnd

Func close()
$pid = WinGetProcess("")
ProcessClose($pid)
EndFunc

Func quit()
    
    Exit
    EndFunc
Edited by rambo3889
My Scripts:Radioblog Club Music DownloaderOther stuff:Fun movieIm serious read the help file it helps :PFight 'Till you drop. Never stop, You Cant give up. Til you reach the top Fight! you’re the best in town Fight!
Link to comment
Share on other sites

  • Moderators

What are you using out of the Process.au3?

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.

Link to comment
Share on other sites

Sorry i did forget to remove id because i wanted to make so the procces close was closed by the name not the pid but pid worked sorry

My Scripts:Radioblog Club Music DownloaderOther stuff:Fun movieIm serious read the help file it helps :PFight 'Till you drop. Never stop, You Cant give up. Til you reach the top Fight! you’re the best in town Fight!
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...