Jump to content
Sign in to follow this  
Spyder25000

Password with GUI

Recommended Posts

Spyder25000

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.