Spyder25000 Posted September 13, 2007 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
smashly Posted September 13, 2007 Posted September 13, 2007 $passwd = InputBox("Security Check", "Enter your password.", "", "*") if $passwd = "qwerty" Then MsgBox (0,"","Greatings") Else Exit EndIf
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