Jump to content

2 questions (again)


Recommended Posts

1) is it possible to save something like hello.txt w/o actually doing run(notepad.exe) send ("blah") send("{alt}")send("{f}")send("{enter}") ect....

2) how would you add a password to something that you can change so basicly do what i said above and have it read from the .txt document?

Link to comment
Share on other sites

#include <GUIConstants.au3>
#include <String.au3>
$File = IniWrite("my pass.ini" , "password" , "1" ,  _StringEncrypt(1 , "password" , "" , 1))
$Pass = IniRead($File , "password" , "1" , "password")
$Form1 = GUICreate("Password Dialog", 252, 100, 0, 0)
$MaskEdit1 = GUICtrlCreateInput("password", 8, 32, 233, 21 , $ES_PASSWORD,$ES_AUTOHSCROLL)
$Button1 = GUICtrlCreateButton("&OK", 86, 64, 75, 25, 0)
$Button2 = GUICtrlCreateButton("&Cancel", 167, 64, 75, 25, 0)
$Label1 = GUICtrlCreateLabel("Enter password", 8, 12, 77, 17)
GUISetState(@SW_SHOW)

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit
        Case $Button1
            If $Pass = GUICtrlRead($MaskEdit1) Then 
                ExitLoop
            Else
                MsgBox(0 , "" , "Wrong password")
                Exit
                EndIf
        Case $Button2
            Exit
            EndSwitch
WEnd

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...