Share Pastebin
Guest
Public paste!

Henk

By: a guest | Feb 5th, 2010 | Syntax: AutoIt | Size: 4.17 KB | Hits: 224 | Expires: Never
Copy text to clipboard
  1. Global $ueberschrift = "Passwortsave v1.0"
  2.  
  3.  
  4.  
  5.  
  6. #include <ButtonConstants.au3>
  7. #include <EditConstants.au3>
  8. #include <GUIConstantsEx.au3>
  9. #include <StaticConstants.au3>
  10. #include <WindowsConstants.au3>
  11. #Region ### START Koda GUI section ### Form=C:\Users\user\Desktop\AutoIT\Koda\Forms\Passworttresor.kxf
  12. $Form1 = GUICreate("Form1", 625, 443, 192, 124)
  13. $Label1 = GUICtrlCreateLabel("Label1", 144, 24, 284, 25)
  14. $Input1 = GUICtrlCreateInput("Input1", 56, 104, 249, 21)
  15. $Input2 = GUICtrlCreateInput("Input2", 56, 144, 249, 21)
  16. $Input3 = GUICtrlCreateInput("Input3", 56, 184, 249, 21)
  17. $Input4 = GUICtrlCreateInput("Input4", 56, 224, 249, 21)
  18. $Input5 = GUICtrlCreateInput("Input5", 56, 264, 249, 21)
  19. $Input6 = GUICtrlCreateInput("Input6", 56, 304, 249, 21)
  20. $Input7 = GUICtrlCreateInput("Input7", 56, 344, 249, 21)
  21. $Input8 = GUICtrlCreateInput("Input8", 56, 384, 249, 21)
  22. $Button2 = GUICtrlCreateButton("Speichern", 368, 144, 75, 25, $WS_GROUP)
  23. $Button1 = GUICtrlCreateButton("Speichern", 368, 104, 75, 25, $WS_GROUP)
  24. $Button3 = GUICtrlCreateButton("Speichern", 368, 184, 75, 25, $WS_GROUP)
  25. $Button4 = GUICtrlCreateButton("Speichern", 368, 224, 75, 25, $WS_GROUP)
  26. $Button5 = GUICtrlCreateButton("Speichern", 368, 264, 75, 25, $WS_GROUP)
  27. $Button6 = GUICtrlCreateButton("Speichern", 368, 304, 75, 25, $WS_GROUP)
  28. $Button7 = GUICtrlCreateButton("Speichern", 368, 344, 75, 25, $WS_GROUP)
  29. $Button8 = GUICtrlCreateButton("Speichern", 368, 384, 75, 25, $WS_GROUP)
  30. $Group1= GUICtrlCreateGroup("Passwörter", 48, 80, 273, 337)
  31. GUICtrlCreateGroup("", -99, -99, 1, 1)
  32. $Group2 = GUICtrlCreateGroup("Speichern", 360, 80, 89, 337)
  33. GUICtrlCreateGroup("", -99, -99, 1, 1)
  34. $Button9 = GUICtrlCreateButton("Infos", 504, 200, 75, 25, $WS_GROUP)
  35. $Button10 = GUICtrlCreateButton("Sicherheit des Scriptes", 504, 240, 75, 25, $WS_GROUP)
  36. $Button11 = GUICtrlCreateButton("Beenden", 504, 280, 75, 25, $WS_GROUP)
  37. $Group3 = GUICtrlCreateGroup("Einstellungen", 488, 176, 105, 145)
  38. GUICtrlCreateGroup("", -99, -99, 1, 1)
  39. #EndRegion ### END Koda GUI section ###
  40.  
  41.         $nMsg = GUIGetMsg()
  42.         Switch $nMsg
  43.                 Case $GUI_EVENT_CLOSE
  44.                 Exit
  45.                
  46.                 Case $Button11
  47.                         Exit
  48.                        
  49.                 Case $Button10
  50.                         Sleep (100)
  51.                         MsgBox (0, $ueberschrift , "Die Sicherheit deiner Passwörter steht natürlich an erster Stelle. Die Passwörter sind in der Registry in einem verschlüsselten Ordner gespeichert, den man nicht sehen kann. Außerdem werden deine Passwörter verschlüsselt gespeichert. Du musst dir keine Sorgen deswegen machen :) ")
  52.                        
  53.                        
  54.                        
  55.                        
  56.  
  57.         EndSwitch
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65. #include <GUIConstants.au3>
  66. $1 = RegRead("HKEY_CURRENT_USER\Software\PWSafe", "alreadyrunned")
  67. $Masterpw = RegRead("HKEY_CURRENT_USER\Software\PWSafe", "Passwort")
  68. If $1 = "" Then
  69.         MsgBox (0, "Willkommen", "Willkommen bei Henks Passwort Safe!")
  70.         $abc = InputBox ("Master Pw", "Bitte geben sie das Master passwort ein,"& @LF &"welches sie bei jedem Start des Safes eingeben müssen.")
  71.         regwrite("HKEY_CURRENT_USER\Software\PWSafe", "Passwort", "REG_SZ", $abc)
  72.         regwrite("HKEY_CURRENT_USER\Software\PWSafe", "alreadyrunned", "REG_SZ","1")
  73. ElseIf $1 = "1" Then
  74.     $Passwort = InputBox ("Passwort abfrage", "Geben sie bitte ihr Master Passwort ein.")
  75.         If $Masterpw = $Passwort Then
  76.         Sleep(1)
  77.         MsgBox (48, "Falsches Passwort!", "Das eingegebene Passwort ist nicht korrekt. Der Safe wird beendet!")
  78.         Exit
  79.  
  80.  
  81.  
  82.  
  83.  
  84. #Region ### START Koda GUI section ### Form=
  85. $Form1 = GUICreate("Form1", 625, 443, 613, 300);------------mach hier dein gui rein
  86. GUISetState(@SW_SHOW)                          ;------------mach hier dein gui rein
  87. #EndRegion ### END Koda GUI section ###
  88.  
  89.  
  90.         $nMsg = GUIGetMsg()
  91.         Switch $nMsg
  92.                 Case $GUI_EVENT_CLOSE
  93.                         Exit
  94.  
  95.         EndSwitch
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119. #include <GUIConstantsEx.au3>
  120. #include <StaticConstants.au3>
  121. #include <WindowsConstants.au3>
  122. #Region ### START Koda GUI section ### Form=
  123. $Form1 = GUICreate("Form1", 399, 226, 308, 225)
  124. $Label1 = GUICtrlCreateLabel("Label1", 48, 40, 300, 153)
  125. #EndRegion ### END Koda GUI section ###
  126.  
  127.         $nMsg = GUIGetMsg()
  128.         Switch $nMsg
  129.                 Case $GUI_EVENT_CLOSE
  130.                         Exit
  131.  
  132.         EndSwitch