Jump to content

Kids PC help


Go to solution Solved by jaberwacky,

Recommended Posts

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
Link to post
Share on other sites
  • Solution

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
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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...