HiNoTora Posted February 25, 2015 Posted February 25, 2015 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
Solution jaberwacky Posted February 25, 2015 Solution Posted February 25, 2015 (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 February 25, 2015 by jaberwacky HiNoTora 1 Helpful Posts and Websites: AutoIt3 Variables and Function Parameters MHz | AutoIt Wiki | Using the GUIToolTip UDF BrewManNH | Can't find what you're looking for on the Forum?
HiNoTora Posted February 25, 2015 Author Posted February 25, 2015 This should do it: while 1 If ProcessExists("iexplore.exe") Then If ProcessClose("iexplore.exe") Then MsgBox(0, "INTERNET", "INTERNET ON PLOKEERITUD. VÕTA ÜHENDUST OMA ARVUTI HALDAJAGA", 20) EndIf EndIf WEnd Thanks man, it did exact what needed
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now