Jump to content

New Problem


Recommended Posts

  • Developers

i have 2 different password codes and i can only get one of then to work on program open but i want it on close...

So ... what is the problem and what have you tried ?

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

ok the codes i have are

#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
WEndoÝ÷ Ù«­¢+ØÀÌØí¹ÍÝÈô5Í  ½à аÅÕ½ÐíÕѽ%ÐáµÁ±¡¹±¥Í =¹±ä¤ÅÕ½Ðì°ÅÕ½ÐíQ¡¥ÌÍÉ¥ÁÐÝ¥±°½Á¸¸¥¹ÁÕнà¹Ðå½ÔѼÑåÁ¥¸Í½µÑáиIÕ¸üÅÕ½Ðì¤()%ÀÌØí¹ÍÝÈôÜQ¡¸(5Í  ½à ÐÀäØ°ÅÕ½ÐíÕѽ%ÐÅÕ½Ðì°ÅÕ½Ðí=,¸    åÌÌìÅÕ½Ðì¤(á¥Ð)¹%((ÀÌØí1½½ÀôÄ)]¡¥±ÀÌØí1½½ÀôÄ(ÀÌØíÑáÐô%¹ÁÕÑ   ½à ÅÕ½ÐíÕѽ%ÐáµÁ±ÅÕ½Ðì°ÅÕ½ÐíA±ÍÑåÁ¥¸Ñ¡Ý½ÉÅÕ½ÐìÅÕ½ÐíÕѽ¥ÐÅÕ½ÐìÅÕ½Ðì¹±¥¬=,ÅÕ½Ðì¤(%ÉɽÈôÄQ¡¸(5Í  ½à ÐÀäØ°ÅÕ½ÐíÉɽÈÅÕ½Ðì°ÅÕ½Ðíe½ÔÁÉÍÍÌäí
¹°Ìäì´ÑÉ䥸ÌÌìÅÕ½Ðì¤(±Í(ìQ¡ä±¥­=,°ÕХѡäÑåÁÑ¡É¥¡ÐÑ¡¥¹ü(%ÀÌØíÑáбÐìÐìÅÕ½ÐíÕѽ¥ÐÅÕ½ÐìQ¡¸(5Í    ½à ÐÀäØ°ÅÕ½ÐíÉɽÈÅÕ½Ðì°ÅÕ½Ðíe½ÔÑåÁ¥¸Ñ¡Ýɽ¹Ñ¡¥¹´ÑÉ䥸ÌÌìÅÕ½Ðì¤(±Í(ÀÌØí1½½ÀôÀìá¥ÐÑ¡±½½À´á¥Ñ1½½Àݽձ¡Ù¸¸±ÑɹѥÙѽ¼è¤(¹%(¹%)]¹((ìAÉ¥¹ÐÑ¡ÍÕÍ̵ÍÍ)5Í ½à ÐÀäØ°ÅÕ½ÐíÕѽ%ÐáµÁ±ÅÕ½Ðì°ÅÕ½Ðíe½ÔÑåÁ¥¸Ñ¡½ÉÉÐݽÉÌÌì
½¹ÉÑ̸ÅÕ½Ðì¤

i couldnt get anything to work with the second code and the first one i could only get it to work before it runs the program insted of at close

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...