Spyder25000 0 Posted September 13, 2007 CODE#include <GuiConstants.au3> ; GUI $passwd = InputBox("Security Check", "Enter your password.", "", "*") if $passwd "qwerty" Then MsgBox ("Greatings") Else Exit GuiCreate("Wireless Policy Deleter", 225, 50) $Button_1 = GUICtrlCreateButton ("Delete the Wireless Policy", 0, 0, 225) $password = "qwerty" ; MENU GuiCtrlCreateMenu("File") GUISetState () Do $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $Button_1 RegDelete ("HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Wireless") ; Delte Reg EndSelect ; GUI MESSAGE LOOP GuiSetState() Until GuiGetMsg() = $GUI_EVENT_CLOSE Okay how do you make a password The password is supposed to be "qwerty" if you get it right it will go to the GUI and if you get it wrong it will close down Share this post Link to post Share on other sites
smashly 12 Posted September 13, 2007 $passwd = InputBox("Security Check", "Enter your password.", "", "*") if $passwd = "qwerty" Then MsgBox (0,"","Greatings") Else Exit EndIf Share this post Link to post Share on other sites