LiquidNitrogen Posted January 15, 2012 Share Posted January 15, 2012 (edited) This is a Simple "Application Blocker" for Your Computer. I think its Quicker to Use than the Windows UAC or Whatever. #NoTrayIcon MsgBox(0, "Ok", "Your Administrative Interface Is Now Active.") While 1 $App = IniReadSection("interface.ini", "APPS") For $i = 1 To $App[0][0] If ProcessExists($App[$i][1]) Then ProcessClose($App[$i][1]) MsgBox(16, "Access Denied!", "You Are Restricted From Using This Application. Contact the Administrator for Usage.") Sleep(2000) EndIf Next WEnd To Use it You Need to Make a INI File that Looks Like this: [APPS] 1=Process Name of Application 1 2=Process Name of Application 2 ... Then Put that in the Folder With the Script. Edited January 16, 2012 by ReaperX Formerly ReaperX Link to comment Share on other sites More sharing options...
JohnOne Posted January 15, 2012 Share Posted January 15, 2012 (edited) I'd add a little sleep in that loop if I were you. But If I were a person hindered by it, I'd probably just end the process. Edited January 15, 2012 by JohnOne AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
LiquidNitrogen Posted January 15, 2012 Author Share Posted January 15, 2012 I'd add a little sleep in that loop if I were you.But If I were a person hindered by it, I'd probably just end the process.Yeah. That's the Only Bad Part. I Originally Made it Just for Family Members that Wouldn't Know about Processes and Stuff. Formerly ReaperX Link to comment Share on other sites More sharing options...
JohnOne Posted January 15, 2012 Share Posted January 15, 2012 Indeed, things like this are nice and easy for some. Still add a sleep though else it will hammer the CPU. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
LiquidNitrogen Posted January 16, 2012 Author Share Posted January 16, 2012 (edited) I Added the Sleep. 2000 Ms Should Be Enough Edited January 16, 2012 by ReaperX Formerly ReaperX Link to comment Share on other sites More sharing options...
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