tsue Posted May 29, 2008 Share Posted May 29, 2008 hello, here is my problem i want to lock the program firefox so my brothers cant use it , because when they use my computer they enter to the firefox program and as u may know firefox tab sistem grants the access to unclosed tabs so when the program is opened again is shows the tabs from the last time, but they dont respect them and they close them all, so thats why i want to know the code to stop firefox from opening Link to comment Share on other sites More sharing options...
sandin Posted May 30, 2008 Share Posted May 30, 2008 #include <GUIConstants.au3> Opt("WinTitleMatchMode", 2) Global $check = False Guicreate("Firefox blocker", 169, 92) $Start = GUICtrlCreateButton("Start blocking", 10, 10, 150, 30) $exit = GUICtrlCreateButton("Exit", 10, 50, 150, 30) GUISetState(@SW_SHOW) While 1 $Msg = GUIGetMsg() Select Case $Msg = $Start if $check = True Then $check = False GUICtrlSetData($Start, "Start blocking") Else $check = True GUICtrlSetData($Start, "Stop blocking") EndIf Case $Msg = $exit Exit case $Msg = $GUI_EVENT_CLOSE Exit EndSelect if $check = True Then $hWNd = WinGetTitle(" - Mozilla Firefox") if $hWnd then WinClose($hWnd) MsgBox(262144, "Error", "You do not have permision to start Firefox!", 10) EndIf EndIf WEnd Some cool glass and image menu | WinLIRC remote controler | Happy Holidays to all... | Bounce the sun, a game in which you must save the sun from falling by bouncing it back into the sky | Hook Leadtek WinFast TV Card Remote Control Msges | GDI+ sliding toolbar | MIDI Keyboard (early alpha stage, with lots of bugs to fix) | Alt+Tab replacement | CPU Benchmark with pretty GUI | Ini Editor - Edit/Create your ini files with great ease | Window Manager (take total control of your windows) Pretty GUI! | Pop-Up window from a button | Box slider for toolbar | Display sound volume on desktop | Switch hotkeys with mouse scroll 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