Sign in to follow this  
Followers 0
Joosh

Erm... help?

4 posts in this topic

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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

thanks so much... could you do me another big favour and explain to me how that makes an infinite loop?

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  
Followers 0