Sign in to follow this  
Followers 0
HiNoTora

Kids PC help

3 posts in this topic

Hi guys i have a pc where i want to block usage of IEEXPLORER.

This cant be done uner parental settings, so i tought to use autoit script to kill ie.

while 1
ProcessExists("iexplore.exe")
ProcessClose("iexplore.exe")
MsgBox(0, "INTERNET", "INTERNET ON PLOKEERITUD. VÕTA ÜHENDUST OMA ARVUTI HALDAJAGA", 20)

WEnd
 
 
Thats my script. It works fine, but without msgbox only. How to make it so, 
 
If IE is killed then show msgbox

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

This should do it:

Global $iexplore_pid

Do
    $iexplore_pid = ProcessExists("iexplore.exe")
    
    If $iexplore_pid <> 0 Then
        ProcessClose($iexplore_pid)
        
        MsgBox($MB_OK, "INTERNET", "INTERNET ON PLOKEERITUD. VÕTA ÜHENDUST OMA ARVUTI HALDAJAGA", 20)
    EndIf
    
    Sleep(1000)
Until False
Edited by jaberwacky
1 person likes this

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