|
You last visited: Today at 16:17
Advertisement
help me in Lock
Discussion on help me in Lock within the AutoIt forum part of the Coders Den category.
05/02/2012, 16:02
|
#1
|
elite*gold: 0
Join Date: Jun 2010
Posts: 42
Received Thanks: 18
|
help me in Lock
how i Lock my Script with Password ?
Code:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("tees", 400, 229, 299, 218)
$PasswordEdit = GUICtrlCreateInput("", 96, 24, 233, 21, BitOR($GUI_SS_DEFAULT_INPUT,$ES_PASSWORD))
$ButtonOk = GUICtrlCreateButton("&OK", 166, 56, 75, 25, $BS_NOTIFY)
$Checkbox1 = GUICtrlCreateCheckbox("Checkbox1", 24, 112, 97, 17, $BS_AUTO3STATE)
$Checkbox2 = GUICtrlCreateCheckbox("Checkbox2", 168, 112, 97, 17, $BS_AUTO3STATE)
$Checkbox3 = GUICtrlCreateCheckbox("Checkbox3", 296, 112, 97, 17, $BS_AUTO3STATE)
$Checkbox4 = GUICtrlCreateCheckbox("Checkbox4", 24, 144, 97, 17, $BS_AUTO3STATE)
$Checkbox5 = GUICtrlCreateCheckbox("Checkbox5", 168, 152, 97, 17, $BS_AUTO3STATE)
$Checkbox6 = GUICtrlCreateCheckbox("Checkbox6", 296, 152, 97, 17, $BS_AUTO3STATE)
$Checkbox7 = GUICtrlCreateCheckbox("Checkbox7", 24, 184, 97, 17, $BS_AUTO3STATE)
$Checkbox8 = GUICtrlCreateCheckbox("Checkbox8", 168, 184, 97, 17, $BS_AUTO3STATE)
$Checkbox9 = GUICtrlCreateCheckbox("Checkbox9", 296, 184, 97, 17, $BS_AUTO3STATE)
$EnterPassLabel = GUICtrlCreateLabel("Enter password", 0, 28, 77, 17, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
i went Lock Checkbox9 when write password Open lock unlock can help?
|
|
|
05/02/2012, 16:12
|
#2
|
elite*gold: 528
Join Date: Jan 2012
Posts: 2,127
Received Thanks: 2,404
|
Sry but I don't know what you mean exactly.
Maybe something like that?:
Code:
$sPW = InputBox('PW','Enter PW','','*')
If Not $sPW == 'YOUR PASSWORD' Then
exit
Endif
Best Regards
EDIT:
btw read some tutorials or you'll fail
|
|
|
05/02/2012, 16:20
|
#3
|
elite*gold: 0
Join Date: Jun 2010
Posts: 42
Received Thanks: 18
|
Quote:
Originally Posted by Achat
Sry but I don't know what you mean exactly.
Maybe something like that?:
Code:
$sPW = InputBox('PW','Enter PW','','*')
If Not $sPW == 'YOUR PASSWORD' Then
exit
Endif
Best Regards
EDIT:
btw read some tutorials or you'll fail
|
when add not work too and Checkbox dont lock
Code:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("tees", 400, 229, 299, 218)
$PasswordEdit = GUICtrlCreateInput("", 96, 24, 233, 21, BitOR($GUI_SS_DEFAULT_INPUT,$ES_PASSWORD))
$ButtonOk = GUICtrlCreateButton("&OK", 166, 56, 75, 25, $BS_NOTIFY)
$Checkbox1 = GUICtrlCreateCheckbox("Checkbox1", 24, 112, 97, 17, $BS_AUTO3STATE)
$Checkbox2 = GUICtrlCreateCheckbox("Checkbox2", 168, 112, 97, 17, $BS_AUTO3STATE)
$Checkbox3 = GUICtrlCreateCheckbox("Checkbox3", 296, 112, 97, 17, $BS_AUTO3STATE)
$Checkbox4 = GUICtrlCreateCheckbox("Checkbox4", 24, 144, 97, 17, $BS_AUTO3STATE)
$Checkbox5 = GUICtrlCreateCheckbox("Checkbox5", 168, 152, 97, 17, $BS_AUTO3STATE)
$Checkbox6 = GUICtrlCreateCheckbox("Checkbox6", 296, 152, 97, 17, $BS_AUTO3STATE)
$Checkbox7 = GUICtrlCreateCheckbox("Checkbox7", 24, 184, 97, 17, $BS_AUTO3STATE)
$Checkbox8 = GUICtrlCreateCheckbox("Checkbox8", 168, 184, 97, 17, $BS_AUTO3STATE)
$Checkbox9 = GUICtrlCreateCheckbox("Checkbox9", 296, 184, 97, 17, $BS_AUTO3STATE)
$EnterPassLabel = GUICtrlCreateLabel("Enter password", 0, 28, 77, 17, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
$sPW = InputBox('PW','Enter PW','','*')
If Not $sPW == 'test' Then
exit
Endif
|
|
|
05/02/2012, 16:44
|
#4
|
elite*gold: 528
Join Date: Jan 2012
Posts: 2,127
Received Thanks: 2,404
|
Quote:
Originally Posted by Achat
btw read some tutorials or you'll fail
|
What did I just say?
This can't work because the password prompt comes after the while-loop and after the GUI.
But your script (in that case) will never go out of the while-loop.
Simply place it on top of your Script.
Best Regards
Read some tutorials, it'll help!
|
|
|
05/02/2012, 20:41
|
#5
|
elite*gold: 26
Join Date: Jan 2012
Posts: 3,474
Received Thanks: 18,847
|
Dont do it with this way. Hash your Password with MD5 and generate a new hash from the password that was entered, then compare the 2 hashes ;O
|
|
|
05/02/2012, 20:57
|
#6
|
elite*gold: 528
Join Date: Jan 2012
Posts: 2,127
Received Thanks: 2,404
|
That's unsave, too
You could decompile the *.exe and delete the password prompt ^^
Regards
|
|
|
Similar Threads
|
Lock mob
03/15/2010 - Nostale - 1 Replies
Sie können eine lockmob wie metin2?
|
MOB LOCK
04/14/2009 - Metin2 - 8 Replies
also ich würde gerne mal ein programm von euch wissen, das Moblock drinne hat. Das zeug da mit Dem altenmulti fkt net richtig der kackt ständig ab mit der "??? frage". bitte mal was ganz simples xDDD bin da schwer von brgriff, warum is der net bei dem Multi von Banjo mit drin ?:mofo::mofo:
|
Betteln an die lock mob götter S 15 lock mob
02/04/2009 - Metin2 - 1 Replies
dieser thread geht vor allen dingen an banjo aber wers sonst noch kann kann den lock mob ja auch mal updaten
also pls lock mob für s15/16
|
Lock Mob
09/06/2008 - Metin2 Private Server - 7 Replies
Álso irgendwie kommt bei mir immer nen Error wnen ich den LocK Mob starten will vielleich kann mir einer helfen hir ein Bild:
Pic-Upload.de - Kostenlos Bilder & Fotos hochladen
|
PK LOCK
07/24/2006 - Conquer Online 2 - 10 Replies
Is it me or does it just not work? (in co partner)
|
All times are GMT +2. The time now is 16:17.
|
|