Jump to content

Erm... help?


Joosh
 Share

Recommended Posts

Ok I was just wondering if there is anyway to make a script that is always open and when a specific program activates it automatically closes it? I am helping one of the administrators of my school to find loopholes in the security system so that they can then patch them up. any ideas? any info would be greatly appreciated

Link to comment
Share on other sites

If I understand right, you need a script which waiting for some program run and close it immediately? You need simple infinite loop and you can put into it anything:

While 1
; You need this line to reduce CPU load
    Sleep(100)
; You can find window by title (or by window class)
    If WinExists("your program window title") Then WinClose("your program window title")
; Or you can find and close process
    If ProcessExists("processname.exe") Then ProcessClose("processname.exe")
Wend
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...