fred666777 Posted August 4, 2007 Share Posted August 4, 2007 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 More sharing options...
testingtest Posted August 4, 2007 Share Posted August 4, 2007 #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 More sharing options...
Bert Posted August 4, 2007 Share Posted August 4, 2007 question1: fileopen filewrite fileclose question2: inputbox look in the helpfile. it has examples of this that shows you how. The Vollatran project My blog: http://www.vollysinterestingshit.com/ 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