|
You last visited: Today at 21:07
Advertisement
Problem mit IniRead und Hide/Show.
Discussion on Problem mit IniRead und Hide/Show. within the AutoIt forum part of the Coders Den category.
01/28/2011, 17:47
|
#1
|
elite*gold: 0
Join Date: Aug 2010
Posts: 827
Received Thanks: 414
|
Problem mit IniRead und Hide/Show.
Ich habe mich seit einer langen seit mal wieder an Autoit gesetzt und auch gleich etwas ordentliches versucht...
nur bin ich nach kurzer Zeit schon auf die ersten Problemchen gestoßen...
vorerst einmal der Script:
Nun, kommen wir zu den Problemen:
1. Im Menü, man wählt erst Create Account und dann Log In aus, jedoch überlappen sich die beiden Controls dann leider.
Und mit Show/Hide hat es nicht geklappt <.<
2. Wenn ich einen Account erstelle, und dann einloggen will, wird immer angezeigt, dass das pw nicht stimmt (Id hab ich erstmal außenvor gelassen..).
Ich hoffe euch fällt dazu eine Lösung ein, Danke im Vorraus.
Ps: Ja, ich weiß ist ein wenig umständlich geschrieben, aber wie oben genannt, nach einer Zeit verlenrt man's <.<
|
|
|
01/28/2011, 18:13
|
#2
|
elite*gold: 0
Join Date: Mar 2009
Posts: 2,317
Received Thanks: 1,255
|
geht auch besser, zb mit 2 weiteren gui´s, die dann einfach @sw_hide bzw @sw_show machen kannst, aber so gehts auch:
PHP Code:
#include <GUIConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <String.au3>
#include <File.au3>
#include <Array.au3>
$Form1 = GUICreate("frogiih's World", 818, 559, 0, 0)
GUISetBkColor(0xABABAB)
$Progress1 = GUICtrlCreateProgress(0, 528, 814, 9)
DirCreate("C:\\program files\frogiih's World")
$button_gesinnung = GUICtrlCreateButton("Gesinnung", 736, 120, 75, 25)
$button_fertigkeiten = GUICtrlCreateButton("Fertigkeiten", 736, 96, 75, 25)
$button_option = GUICtrlCreateButton("Optionen", 736, 72, 75, 25)
GUICtrlSetState($button_gesinnung, $GUI_DISABLE)
GUICtrlSetState($button_option, $GUI_DISABLE)
GUICtrlSetState($button_fertigkeiten, $GUI_DISABLE)
$Group_action = GUICtrlCreateGroup("Aktivität", 8, 160, 540, 361)
$action = GUICtrlCreatePic("", 16, 184, 524, 329)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Group_welt = GUICtrlCreateGroup("Welt", 8, 8, 185, 145)
$pic_map = GUICtrlCreatePic("", 16, 32, 164, 108)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$pic_head = GUICtrlCreatePic("", 192, 8, 356, 132)
$Group_auswahl = GUICtrlCreateGroup("Auswahl", 552, 160, 265, 361)
$MenuItem_acc = GUICtrlCreateMenu("Account")
$MenuItem_cre_acc = GUICtrlCreateMenuItem("Create Account", $MenuItem_acc)
$MenuItem_login = GUICtrlCreateMenuItem("Log In", $MenuItem_acc)
$MenuItem_help = GUICtrlCreateMenu("Help")
$MenuItem_how = GUICtrlCreateMenuItem("How To Play", $MenuItem_help)
$txt_name = GUICtrlCreateLabel("Name:", 560, 80, 35, 17)
$txt_Rasse = GUICtrlCreateLabel("Rasse:", 560, 100, 37, 17)
$txt_geschlecht = GUICtrlCreateLabel("Geschlecht", 560, 120, 58, 17)
$input_name = GUICtrlCreateInput("-", 624, 80, 105, 21, BitOR($ES_CENTER, $ES_AUTOHSCROLL, $ES_READONLY), 0)
GUICtrlSetBkColor(-1, 0x696969)
$input_rasse = GUICtrlCreateInput("-", 624, 100, 105, 21, BitOR($ES_CENTER, $ES_AUTOHSCROLL, $ES_READONLY), 0)
GUICtrlSetBkColor(-1, 0x696969)
$input_geschlecht = GUICtrlCreateInput("-", 624, 120, 105, 21, BitOR($ES_CENTER, $ES_AUTOHSCROLL, $ES_READONLY), 0)
GUICtrlSetBkColor(-1, 0x696969)
; Controls #########################Login###################
$txt_login = GUICtrlCreateLabel("Join the Game!", 616, 192, 139, 28)
GUICtrlSetFont(-1, 14, 400, 0, "MS Sans Serif")
GUICtrlSetState(-1, $GUI_HIDE)
$input_id = GUICtrlCreateInput("ID", 584, 248, 209, 21)
GUICtrlSetState(-1, $GUI_HIDE)
$input_pw = GUICtrlCreateInput("Passwort", 584, 280, 209, 21, $ES_PASSWORD)
GUICtrlSetState(-1, $GUI_HIDE)
$checkbox_save = GUICtrlCreateCheckbox("Save ID and Passwort", 664, 312, 137, 17)
GUICtrlSetState(-1, $GUI_HIDE)
$button_cancel2 = GUICtrlCreateButton("Cancel", 712, 352, 75, 25)
GUICtrlSetState(-1, $GUI_HIDE)
$button_join = GUICtrlCreateButton("Join", 592, 352, 75, 25)
GUICtrlSetState(-1, $GUI_HIDE)
; Controls ########################Login##################End
; Controls ########################Cre_acc################
$cre_input_id = GUICtrlCreateInput("ID", 584, 232, 209, 21)
GUICtrlSetState(-1, $GUI_HIDE)
$cre_input_pw = GUICtrlCreateInput("Passwort", 584, 264, 209, 21, $ES_PASSWORD)
GUICtrlSetState(-1, $GUI_HIDE)
$txt_cre_acc = GUICtrlCreateLabel("Create Account", 616, 192, 139, 28)
GUICtrlSetFont(-1, 14, 400, 0, "MS Sans Serif")
GUICtrlSetState(-1, $GUI_HIDE)
$button_cancel = GUICtrlCreateButton("Cancel", 712, 464, 75, 25)
GUICtrlSetState(-1, $GUI_HIDE)
$button_confirm = GUICtrlCreateButton("Confirm", 592, 464, 75, 25)
GUICtrlSetState(-1, $GUI_HIDE)
$geschlecht_M = GUICtrlCreateRadio("Männlich", 584, 290, 113, 17)
GUICtrlSetState(-1, $GUI_HIDE)
$geschlecht_W = GUICtrlCreateRadio("Weiblich", 704, 290, 113, 17)
GUICtrlSetState(-1, $GUI_HIDE)
$Group2 = GUICtrlCreateGroup("Rasse", 584, 312, 209, 129)
GUICtrlSetState(-1, $GUI_HIDE)
$radio_rasse1 = GUICtrlCreateRadio("Rasse1", 600, 335, 113, 17)
GUICtrlSetState(-1, $GUI_HIDE)
$radio_rasse2 = GUICtrlCreateRadio("Rasse2", 600, 359, 113, 17)
GUICtrlSetState(-1, $GUI_HIDE)
$radio_rasse3 = GUICtrlCreateRadio("Rasse3", 600, 383, 113, 17)
GUICtrlSetState(-1, $GUI_HIDE)
$radio_rasse4 = GUICtrlCreateRadio("Rasse4", 600, 407, 113, 17)
GUICtrlSetState(-1, $GUI_HIDE)
GUICtrlCreateGroup("", -99, -99, 1, 1)
; Controls #######################Cre_acc#################End
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $MenuItem_cre_acc
$cre_input_id = GUICtrlCreateInput("ID", 584, 232, 209, 21)
GUICtrlSetState(-1, $GUI_SHOW)
$cre_input_pw = GUICtrlCreateInput("Passwort", 584, 264, 209, 21, $ES_PASSWORD)
GUICtrlSetState(-1, $GUI_SHOW)
$txt_cre_acc = GUICtrlCreateLabel("Create Account", 616, 192, 139, 28)
GUICtrlSetFont(-1, 14, 400, 0, "MS Sans Serif")
GUICtrlSetState(-1, $GUI_SHOW)
$button_cancel = GUICtrlCreateButton("Cancel", 712, 464, 75, 25)
GUICtrlSetState(-1, $GUI_SHOW)
$button_confirm = GUICtrlCreateButton("Confirm", 592, 464, 75, 25)
GUICtrlSetState(-1, $GUI_SHOW)
$geschlecht_M = GUICtrlCreateRadio("Männlich", 584, 290, 113, 17)
GUICtrlSetState(-1, $GUI_SHOW)
$geschlecht_W = GUICtrlCreateRadio("Weiblich", 704, 290, 113, 17)
GUICtrlSetState(-1, $GUI_SHOW)
$Group2 = GUICtrlCreateGroup("Rasse", 584, 312, 209, 129)
GUICtrlSetState(-1, $GUI_SHOW)
$radio_rasse1 = GUICtrlCreateRadio("Rasse1", 600, 335, 113, 17)
GUICtrlSetState(-1, $GUI_SHOW)
$radio_rasse2 = GUICtrlCreateRadio("Rasse2", 600, 359, 113, 17)
GUICtrlSetState(-1, $GUI_SHOW)
$radio_rasse3 = GUICtrlCreateRadio("Rasse3", 600, 383, 113, 17)
GUICtrlSetState(-1, $GUI_SHOW)
$radio_rasse4 = GUICtrlCreateRadio("Rasse4", 600, 407, 113, 17)
GUICtrlSetState(-1, $GUI_SHOW)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUICtrlSetState($txt_login , $GUI_HIDE)
GUICtrlSetState($input_id , $GUI_HIDE)
GUICtrlSetState($input_pw , $GUI_HIDE)
GUICtrlSetState($checkbox_save , $GUI_HIDE)
GUICtrlSetState($button_cancel2 , $GUI_HIDE)
GUICtrlSetState($button_join , $GUI_HIDE)
Case $MenuItem_login
$txt_login = GUICtrlCreateLabel("Join the Game!", 616, 192, 139, 28)
GUICtrlSetFont(-1, 14, 400, 0, "MS Sans Serif")
GUICtrlSetState(-1, $GUI_SHOW)
$input_id = GUICtrlCreateInput("ID", 584, 248, 209, 21)
GUICtrlSetState(-1, $GUI_SHOW)
$input_pw = GUICtrlCreateInput("Passwort", 584, 280, 209, 21, $ES_PASSWORD)
GUICtrlSetState(-1, $GUI_SHOW)
$checkbox_save = GUICtrlCreateCheckbox("Save ID and Passwort", 664, 312, 137, 17)
GUICtrlSetState(-1, $GUI_SHOW)
$button_cancel2 = GUICtrlCreateButton("Cancel", 712, 352, 75, 25)
GUICtrlSetState(-1, $GUI_SHOW)
$button_join = GUICtrlCreateButton("Join", 592, 352, 75, 25)
GUICtrlSetState(-1, $GUI_SHOW)
GUICtrlSetState($cre_input_id , $GUI_HIDE)
GUICtrlSetState($cre_input_pw , $GUI_HIDE)
GUICtrlSetState($txt_cre_acc , $GUI_HIDE)
GUICtrlSetState($button_cancel , $GUI_HIDE)
GUICtrlSetState($button_confirm , $GUI_HIDE)
GUICtrlSetState($geschlecht_M , $GUI_HIDE)
GUICtrlSetState($geschlecht_W , $GUI_HIDE)
GUICtrlSetState($radio_rasse1 , $GUI_HIDE)
GUICtrlSetState($radio_rasse2 , $GUI_HIDE)
GUICtrlSetState($radio_rasse3 , $GUI_HIDE)
GUICtrlSetState($radio_rasse4 , $GUI_HIDE)
Case $button_join
$pw2 = IniRead("C:\program files\Daten.ini", "Daten", "pw", "")
$pw3 = _StringEncrypt(0, $pw2, "lolator")
If $input_pw = $pw3 Then
TrayTip("frogiih's World", "Einloggen Erfolgreich. Daten werden geladen...", 10000)
Else
TrayTip("frogiih's World", "Achtung! Deine Angegebenen Daten stimmen nicht überein. Bitte überprüfe diese.", 10000)
EndIf
GUICtrlSetState($button_gesinnung, $GUI_ENABLE)
GUICtrlSetState($button_option, $GUI_ENABLE)
GUICtrlSetState($button_fertigkeiten, $GUI_ENABLE)
Case $button_confirm
$id1 = _StringEncrypt(1, $cre_input_id, "lolator")
IniWrite("C:\program files\frogiih's World\Daten.ini", "Daten", "id", $id1)
$pw1 = _StringEncrypt(1, $cre_input_pw, "lolator")
IniWrite("C:\program files\frogiih's World\Daten.ini", "Daten", "pw", $pw1)
GUICtrlSetState($button_gesinnung, $GUI_ENABLE)
GUICtrlSetState($button_option, $GUI_ENABLE)
GUICtrlSetState($button_fertigkeiten, $GUI_ENABLE)
Case $button_gesinnung
$Inhalt = GUICtrlCreatePic("", 560, 152, 252, 364)
Case $button_fertigkeiten
$Inhalt = GUICtrlCreatePic("", 560, 152, 252, 364)
Case $button_option
$Inhalt = GUICtrlCreatePic("", 560, 152, 252, 364)
EndSwitch
WEnd
|
|
|
01/28/2011, 18:31
|
#3
|
elite*gold: 0
Join Date: Aug 2010
Posts: 827
Received Thanks: 414
|
Quote:
Originally Posted by omer36
geht auch besser, zb mit 2 weiteren gui´s, die dann einfach @sw_hide bzw @sw_show machen kannst, aber so gehts auch:
PHP Code:
#include <GUIConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <String.au3>
#include <File.au3>
#include <Array.au3>
$Form1 = GUICreate("frogiih's World", 818, 559, 0, 0)
GUISetBkColor(0xABABAB)
$Progress1 = GUICtrlCreateProgress(0, 528, 814, 9)
DirCreate("C:\\program files\frogiih's World")
$button_gesinnung = GUICtrlCreateButton("Gesinnung", 736, 120, 75, 25)
$button_fertigkeiten = GUICtrlCreateButton("Fertigkeiten", 736, 96, 75, 25)
$button_option = GUICtrlCreateButton("Optionen", 736, 72, 75, 25)
GUICtrlSetState($button_gesinnung, $GUI_DISABLE)
GUICtrlSetState($button_option, $GUI_DISABLE)
GUICtrlSetState($button_fertigkeiten, $GUI_DISABLE)
$Group_action = GUICtrlCreateGroup("Aktivität", 8, 160, 540, 361)
$action = GUICtrlCreatePic("", 16, 184, 524, 329)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Group_welt = GUICtrlCreateGroup("Welt", 8, 8, 185, 145)
$pic_map = GUICtrlCreatePic("", 16, 32, 164, 108)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$pic_head = GUICtrlCreatePic("", 192, 8, 356, 132)
$Group_auswahl = GUICtrlCreateGroup("Auswahl", 552, 160, 265, 361)
$MenuItem_acc = GUICtrlCreateMenu("Account")
$MenuItem_cre_acc = GUICtrlCreateMenuItem("Create Account", $MenuItem_acc)
$MenuItem_login = GUICtrlCreateMenuItem("Log In", $MenuItem_acc)
$MenuItem_help = GUICtrlCreateMenu("Help")
$MenuItem_how = GUICtrlCreateMenuItem("How To Play", $MenuItem_help)
$txt_name = GUICtrlCreateLabel("Name:", 560, 80, 35, 17)
$txt_Rasse = GUICtrlCreateLabel("Rasse:", 560, 100, 37, 17)
$txt_geschlecht = GUICtrlCreateLabel("Geschlecht", 560, 120, 58, 17)
$input_name = GUICtrlCreateInput("-", 624, 80, 105, 21, BitOR($ES_CENTER, $ES_AUTOHSCROLL, $ES_READONLY), 0)
GUICtrlSetBkColor(-1, 0x696969)
$input_rasse = GUICtrlCreateInput("-", 624, 100, 105, 21, BitOR($ES_CENTER, $ES_AUTOHSCROLL, $ES_READONLY), 0)
GUICtrlSetBkColor(-1, 0x696969)
$input_geschlecht = GUICtrlCreateInput("-", 624, 120, 105, 21, BitOR($ES_CENTER, $ES_AUTOHSCROLL, $ES_READONLY), 0)
GUICtrlSetBkColor(-1, 0x696969)
; Controls #########################Login###################
$txt_login = GUICtrlCreateLabel("Join the Game!", 616, 192, 139, 28)
GUICtrlSetFont(-1, 14, 400, 0, "MS Sans Serif")
GUICtrlSetState(-1, $GUI_HIDE)
$input_id = GUICtrlCreateInput("ID", 584, 248, 209, 21)
GUICtrlSetState(-1, $GUI_HIDE)
$input_pw = GUICtrlCreateInput("Passwort", 584, 280, 209, 21, $ES_PASSWORD)
GUICtrlSetState(-1, $GUI_HIDE)
$checkbox_save = GUICtrlCreateCheckbox("Save ID and Passwort", 664, 312, 137, 17)
GUICtrlSetState(-1, $GUI_HIDE)
$button_cancel2 = GUICtrlCreateButton("Cancel", 712, 352, 75, 25)
GUICtrlSetState(-1, $GUI_HIDE)
$button_join = GUICtrlCreateButton("Join", 592, 352, 75, 25)
GUICtrlSetState(-1, $GUI_HIDE)
; Controls ########################Login##################End
; Controls ########################Cre_acc################
$cre_input_id = GUICtrlCreateInput("ID", 584, 232, 209, 21)
GUICtrlSetState(-1, $GUI_HIDE)
$cre_input_pw = GUICtrlCreateInput("Passwort", 584, 264, 209, 21, $ES_PASSWORD)
GUICtrlSetState(-1, $GUI_HIDE)
$txt_cre_acc = GUICtrlCreateLabel("Create Account", 616, 192, 139, 28)
GUICtrlSetFont(-1, 14, 400, 0, "MS Sans Serif")
GUICtrlSetState(-1, $GUI_HIDE)
$button_cancel = GUICtrlCreateButton("Cancel", 712, 464, 75, 25)
GUICtrlSetState(-1, $GUI_HIDE)
$button_confirm = GUICtrlCreateButton("Confirm", 592, 464, 75, 25)
GUICtrlSetState(-1, $GUI_HIDE)
$geschlecht_M = GUICtrlCreateRadio("Männlich", 584, 290, 113, 17)
GUICtrlSetState(-1, $GUI_HIDE)
$geschlecht_W = GUICtrlCreateRadio("Weiblich", 704, 290, 113, 17)
GUICtrlSetState(-1, $GUI_HIDE)
$Group2 = GUICtrlCreateGroup("Rasse", 584, 312, 209, 129)
GUICtrlSetState(-1, $GUI_HIDE)
$radio_rasse1 = GUICtrlCreateRadio("Rasse1", 600, 335, 113, 17)
GUICtrlSetState(-1, $GUI_HIDE)
$radio_rasse2 = GUICtrlCreateRadio("Rasse2", 600, 359, 113, 17)
GUICtrlSetState(-1, $GUI_HIDE)
$radio_rasse3 = GUICtrlCreateRadio("Rasse3", 600, 383, 113, 17)
GUICtrlSetState(-1, $GUI_HIDE)
$radio_rasse4 = GUICtrlCreateRadio("Rasse4", 600, 407, 113, 17)
GUICtrlSetState(-1, $GUI_HIDE)
GUICtrlCreateGroup("", -99, -99, 1, 1)
; Controls #######################Cre_acc#################End
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $MenuItem_cre_acc
$cre_input_id = GUICtrlCreateInput("ID", 584, 232, 209, 21)
GUICtrlSetState(-1, $GUI_SHOW)
$cre_input_pw = GUICtrlCreateInput("Passwort", 584, 264, 209, 21, $ES_PASSWORD)
GUICtrlSetState(-1, $GUI_SHOW)
$txt_cre_acc = GUICtrlCreateLabel("Create Account", 616, 192, 139, 28)
GUICtrlSetFont(-1, 14, 400, 0, "MS Sans Serif")
GUICtrlSetState(-1, $GUI_SHOW)
$button_cancel = GUICtrlCreateButton("Cancel", 712, 464, 75, 25)
GUICtrlSetState(-1, $GUI_SHOW)
$button_confirm = GUICtrlCreateButton("Confirm", 592, 464, 75, 25)
GUICtrlSetState(-1, $GUI_SHOW)
$geschlecht_M = GUICtrlCreateRadio("Männlich", 584, 290, 113, 17)
GUICtrlSetState(-1, $GUI_SHOW)
$geschlecht_W = GUICtrlCreateRadio("Weiblich", 704, 290, 113, 17)
GUICtrlSetState(-1, $GUI_SHOW)
$Group2 = GUICtrlCreateGroup("Rasse", 584, 312, 209, 129)
GUICtrlSetState(-1, $GUI_SHOW)
$radio_rasse1 = GUICtrlCreateRadio("Rasse1", 600, 335, 113, 17)
GUICtrlSetState(-1, $GUI_SHOW)
$radio_rasse2 = GUICtrlCreateRadio("Rasse2", 600, 359, 113, 17)
GUICtrlSetState(-1, $GUI_SHOW)
$radio_rasse3 = GUICtrlCreateRadio("Rasse3", 600, 383, 113, 17)
GUICtrlSetState(-1, $GUI_SHOW)
$radio_rasse4 = GUICtrlCreateRadio("Rasse4", 600, 407, 113, 17)
GUICtrlSetState(-1, $GUI_SHOW)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUICtrlSetState($txt_login , $GUI_HIDE)
GUICtrlSetState($input_id , $GUI_HIDE)
GUICtrlSetState($input_pw , $GUI_HIDE)
GUICtrlSetState($checkbox_save , $GUI_HIDE)
GUICtrlSetState($button_cancel2 , $GUI_HIDE)
GUICtrlSetState($button_join , $GUI_HIDE)
Case $MenuItem_login
$txt_login = GUICtrlCreateLabel("Join the Game!", 616, 192, 139, 28)
GUICtrlSetFont(-1, 14, 400, 0, "MS Sans Serif")
GUICtrlSetState(-1, $GUI_SHOW)
$input_id = GUICtrlCreateInput("ID", 584, 248, 209, 21)
GUICtrlSetState(-1, $GUI_SHOW)
$input_pw = GUICtrlCreateInput("Passwort", 584, 280, 209, 21, $ES_PASSWORD)
GUICtrlSetState(-1, $GUI_SHOW)
$checkbox_save = GUICtrlCreateCheckbox("Save ID and Passwort", 664, 312, 137, 17)
GUICtrlSetState(-1, $GUI_SHOW)
$button_cancel2 = GUICtrlCreateButton("Cancel", 712, 352, 75, 25)
GUICtrlSetState(-1, $GUI_SHOW)
$button_join = GUICtrlCreateButton("Join", 592, 352, 75, 25)
GUICtrlSetState(-1, $GUI_SHOW)
GUICtrlSetState($cre_input_id , $GUI_HIDE)
GUICtrlSetState($cre_input_pw , $GUI_HIDE)
GUICtrlSetState($txt_cre_acc , $GUI_HIDE)
GUICtrlSetState($button_cancel , $GUI_HIDE)
GUICtrlSetState($button_confirm , $GUI_HIDE)
GUICtrlSetState($geschlecht_M , $GUI_HIDE)
GUICtrlSetState($geschlecht_W , $GUI_HIDE)
GUICtrlSetState($radio_rasse1 , $GUI_HIDE)
GUICtrlSetState($radio_rasse2 , $GUI_HIDE)
GUICtrlSetState($radio_rasse3 , $GUI_HIDE)
GUICtrlSetState($radio_rasse4 , $GUI_HIDE)
Case $button_join
$pw2 = IniRead("C:\program files\Daten.ini", "Daten", "pw", "")
$pw3 = _StringEncrypt(0, $pw2, "lolator")
If $input_pw = $pw3 Then
TrayTip("frogiih's World", "Einloggen Erfolgreich. Daten werden geladen...", 10000)
Else
TrayTip("frogiih's World", "Achtung! Deine Angegebenen Daten stimmen nicht überein. Bitte überprüfe diese.", 10000)
EndIf
GUICtrlSetState($button_gesinnung, $GUI_ENABLE)
GUICtrlSetState($button_option, $GUI_ENABLE)
GUICtrlSetState($button_fertigkeiten, $GUI_ENABLE)
Case $button_confirm
$id1 = _StringEncrypt(1, $cre_input_id, "lolator")
IniWrite("C:\program files\frogiih's World\Daten.ini", "Daten", "id", $id1)
$pw1 = _StringEncrypt(1, $cre_input_pw, "lolator")
IniWrite("C:\program files\frogiih's World\Daten.ini", "Daten", "pw", $pw1)
GUICtrlSetState($button_gesinnung, $GUI_ENABLE)
GUICtrlSetState($button_option, $GUI_ENABLE)
GUICtrlSetState($button_fertigkeiten, $GUI_ENABLE)
Case $button_gesinnung
$Inhalt = GUICtrlCreatePic("", 560, 152, 252, 364)
Case $button_fertigkeiten
$Inhalt = GUICtrlCreatePic("", 560, 152, 252, 364)
Case $button_option
$Inhalt = GUICtrlCreatePic("", 560, 152, 252, 364)
EndSwitch
WEnd
|
Danke schoneinmal dafür!
Jetzt fehlt nur noch das mit den Daten...
|
|
|
01/28/2011, 19:11
|
#4
|
elite*gold: 0
Join Date: Mar 2009
Posts: 2,317
Received Thanks: 1,255
|
dein fehler lag darin, dass du die input vorher auslesen musst...:
aus:
PHP Code:
_StringEncrypt(1, $cre_input_id, "lolator")
wird:
PHP Code:
_StringEncrypt(1, GUICtrlRead($cre_input_id), "lolator")
und auch hier:
PHP Code:
If GUICtrlRead($input_pw) = $pw3 Then
dann klappts auch
PHP Code:
#include <GUIConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #include <String.au3> #include <File.au3> #include <Array.au3>
$Form1 = GUICreate("frogiih's World", 818, 559, 0, 0) GUISetBkColor(0xABABAB) $Progress1 = GUICtrlCreateProgress(0, 528, 814, 9)
$button_gesinnung = GUICtrlCreateButton("Gesinnung", 736, 120, 75, 25) $button_fertigkeiten = GUICtrlCreateButton("Fertigkeiten", 736, 96, 75, 25) $button_option = GUICtrlCreateButton("Optionen", 736, 72, 75, 25) GUICtrlSetState($button_gesinnung, $GUI_DISABLE) GUICtrlSetState($button_option, $GUI_DISABLE) GUICtrlSetState($button_fertigkeiten, $GUI_DISABLE)
$Group_action = GUICtrlCreateGroup("Aktivität", 8, 160, 540, 361) $action = GUICtrlCreatePic("", 16, 184, 524, 329) GUICtrlCreateGroup("", -99, -99, 1, 1)
$Group_welt = GUICtrlCreateGroup("Welt", 8, 8, 185, 145) $pic_map = GUICtrlCreatePic("", 16, 32, 164, 108) GUICtrlCreateGroup("", -99, -99, 1, 1)
$pic_head = GUICtrlCreatePic("", 192, 8, 356, 132) $Group_auswahl = GUICtrlCreateGroup("Auswahl", 552, 160, 265, 361)
$MenuItem_acc = GUICtrlCreateMenu("Account") $MenuItem_cre_acc = GUICtrlCreateMenuItem("Create Account", $MenuItem_acc) $MenuItem_login = GUICtrlCreateMenuItem("Log In", $MenuItem_acc) $MenuItem_help = GUICtrlCreateMenu("Help") $MenuItem_how = GUICtrlCreateMenuItem("How To Play", $MenuItem_help)
$txt_name = GUICtrlCreateLabel("Name:", 560, 80, 35, 17) $txt_Rasse = GUICtrlCreateLabel("Rasse:", 560, 100, 37, 17) $txt_geschlecht = GUICtrlCreateLabel("Geschlecht", 560, 120, 58, 17)
$input_name = GUICtrlCreateInput("-", 624, 80, 105, 21, BitOR($ES_CENTER, $ES_AUTOHSCROLL, $ES_READONLY), 0) GUICtrlSetBkColor(-1, 0x696969) $input_rasse = GUICtrlCreateInput("-", 624, 100, 105, 21, BitOR($ES_CENTER, $ES_AUTOHSCROLL, $ES_READONLY), 0) GUICtrlSetBkColor(-1, 0x696969) $input_geschlecht = GUICtrlCreateInput("-", 624, 120, 105, 21, BitOR($ES_CENTER, $ES_AUTOHSCROLL, $ES_READONLY), 0) GUICtrlSetBkColor(-1, 0x696969)
; Controls #########################Login################### $txt_login = GUICtrlCreateLabel("Join the Game!", 616, 192, 139, 28) GUICtrlSetFont(-1, 14, 400, 0, "MS Sans Serif") GUICtrlSetState(-1, $GUI_HIDE) $input_id = GUICtrlCreateInput("ID", 584, 248, 209, 21) GUICtrlSetState(-1, $GUI_HIDE) $input_pw = GUICtrlCreateInput("Passwort", 584, 280, 209, 21, $ES_PASSWORD) GUICtrlSetState(-1, $GUI_HIDE) $checkbox_save = GUICtrlCreateCheckbox("Save ID and Passwort", 664, 312, 137, 17) GUICtrlSetState(-1, $GUI_HIDE) $button_cancel2 = GUICtrlCreateButton("Cancel", 712, 352, 75, 25) GUICtrlSetState(-1, $GUI_HIDE) $button_join = GUICtrlCreateButton("Join", 592, 352, 75, 25) GUICtrlSetState(-1, $GUI_HIDE) ; Controls ########################Login##################End
; Controls ########################Cre_acc################ $cre_input_id = GUICtrlCreateInput("ID", 584, 232, 209, 21) GUICtrlSetState(-1, $GUI_HIDE) $cre_input_pw = GUICtrlCreateInput("Passwort", 584, 264, 209, 21, $ES_PASSWORD) GUICtrlSetState(-1, $GUI_HIDE) $txt_cre_acc = GUICtrlCreateLabel("Create Account", 616, 192, 139, 28) GUICtrlSetFont(-1, 14, 400, 0, "MS Sans Serif") GUICtrlSetState(-1, $GUI_HIDE) $button_cancel = GUICtrlCreateButton("Cancel", 712, 464, 75, 25) GUICtrlSetState(-1, $GUI_HIDE) $button_confirm = GUICtrlCreateButton("Confirm", 592, 464, 75, 25) GUICtrlSetState(-1, $GUI_HIDE) $geschlecht_M = GUICtrlCreateRadio("Männlich", 584, 290, 113, 17) GUICtrlSetState(-1, $GUI_HIDE) $geschlecht_W = GUICtrlCreateRadio("Weiblich", 704, 290, 113, 17) GUICtrlSetState(-1, $GUI_HIDE) $Group2 = GUICtrlCreateGroup("Rasse", 584, 312, 209, 129) GUICtrlSetState(-1, $GUI_HIDE) $radio_rasse1 = GUICtrlCreateRadio("Rasse1", 600, 335, 113, 17) GUICtrlSetState(-1, $GUI_HIDE) $radio_rasse2 = GUICtrlCreateRadio("Rasse2", 600, 359, 113, 17) GUICtrlSetState(-1, $GUI_HIDE) $radio_rasse3 = GUICtrlCreateRadio("Rasse3", 600, 383, 113, 17) GUICtrlSetState(-1, $GUI_HIDE) $radio_rasse4 = GUICtrlCreateRadio("Rasse4", 600, 407, 113, 17) GUICtrlSetState(-1, $GUI_HIDE) GUICtrlCreateGroup("", -99, -99, 1, 1) ; Controls #######################Cre_acc#################End
GUISetState(@SW_SHOW)
While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $MenuItem_cre_acc $cre_input_id = GUICtrlCreateInput("ID", 584, 232, 209, 21) GUICtrlSetState(-1, $GUI_SHOW) $cre_input_pw = GUICtrlCreateInput("Passwort", 584, 264, 209, 21, $ES_PASSWORD) GUICtrlSetState(-1, $GUI_SHOW) $txt_cre_acc = GUICtrlCreateLabel("Create Account", 616, 192, 139, 28) GUICtrlSetFont(-1, 14, 400, 0, "MS Sans Serif") GUICtrlSetState(-1, $GUI_SHOW) $button_cancel = GUICtrlCreateButton("Cancel", 712, 464, 75, 25) GUICtrlSetState(-1, $GUI_SHOW) $button_confirm = GUICtrlCreateButton("Confirm", 592, 464, 75, 25) GUICtrlSetState(-1, $GUI_SHOW) $geschlecht_M = GUICtrlCreateRadio("Männlich", 584, 290, 113, 17) GUICtrlSetState(-1, $GUI_SHOW) $geschlecht_W = GUICtrlCreateRadio("Weiblich", 704, 290, 113, 17) GUICtrlSetState(-1, $GUI_SHOW) $Group2 = GUICtrlCreateGroup("Rasse", 584, 312, 209, 129) GUICtrlSetState(-1, $GUI_SHOW) $radio_rasse1 = GUICtrlCreateRadio("Rasse1", 600, 335, 113, 17) GUICtrlSetState(-1, $GUI_SHOW) $radio_rasse2 = GUICtrlCreateRadio("Rasse2", 600, 359, 113, 17) GUICtrlSetState(-1, $GUI_SHOW) $radio_rasse3 = GUICtrlCreateRadio("Rasse3", 600, 383, 113, 17) GUICtrlSetState(-1, $GUI_SHOW) $radio_rasse4 = GUICtrlCreateRadio("Rasse4", 600, 407, 113, 17) GUICtrlSetState(-1, $GUI_SHOW) GUICtrlCreateGroup("", -99, -99, 1, 1)
GUICtrlSetState($txt_login , $GUI_HIDE) GUICtrlSetState($input_id , $GUI_HIDE) GUICtrlSetState($input_pw , $GUI_HIDE) GUICtrlSetState($checkbox_save , $GUI_HIDE) GUICtrlSetState($button_cancel2 , $GUI_HIDE) GUICtrlSetState($button_join , $GUI_HIDE)
Case $MenuItem_login $txt_login = GUICtrlCreateLabel("Join the Game!", 616, 192, 139, 28) GUICtrlSetFont(-1, 14, 400, 0, "MS Sans Serif") GUICtrlSetState(-1, $GUI_SHOW) $input_id = GUICtrlCreateInput("ID", 584, 248, 209, 21) GUICtrlSetState(-1, $GUI_SHOW) $input_pw = GUICtrlCreateInput("Passwort", 584, 280, 209, 21, $ES_PASSWORD) GUICtrlSetState(-1, $GUI_SHOW) $checkbox_save = GUICtrlCreateCheckbox("Save ID and Passwort", 664, 312, 137, 17) GUICtrlSetState(-1, $GUI_SHOW) $button_cancel2 = GUICtrlCreateButton("Cancel", 712, 352, 75, 25) GUICtrlSetState(-1, $GUI_SHOW) $button_join = GUICtrlCreateButton("Join", 592, 352, 75, 25) GUICtrlSetState(-1, $GUI_SHOW)
GUICtrlSetState($cre_input_id , $GUI_HIDE) GUICtrlSetState($cre_input_pw , $GUI_HIDE) GUICtrlSetState($txt_cre_acc , $GUI_HIDE) GUICtrlSetState($button_cancel , $GUI_HIDE) GUICtrlSetState($button_confirm , $GUI_HIDE) GUICtrlSetState($geschlecht_M , $GUI_HIDE) GUICtrlSetState($geschlecht_W , $GUI_HIDE) GUICtrlSetState($radio_rasse1 , $GUI_HIDE) GUICtrlSetState($radio_rasse2 , $GUI_HIDE) GUICtrlSetState($radio_rasse3 , $GUI_HIDE) GUICtrlSetState($radio_rasse4 , $GUI_HIDE)
Case $button_join $pw2 = IniRead(@ScriptDir & "\Daten.ini", "Daten", "pw", "") $pw3 = _StringEncrypt(0, $pw2, "lolator") If GUICtrlRead($input_pw) = $pw3 Then TrayTip("frogiih's World", "Einloggen Erfolgreich. Daten werden geladen...", 10000) Else TrayTip("frogiih's World", "Achtung! Deine Angegebenen Daten stimmen nicht überein. Bitte überprüfe diese.", 10000) EndIf
GUICtrlSetState($button_gesinnung, $GUI_ENABLE) GUICtrlSetState($button_option, $GUI_ENABLE) GUICtrlSetState($button_fertigkeiten, $GUI_ENABLE) Case $button_confirm $id1 = _StringEncrypt(1, GUICtrlRead($cre_input_id), "lolator") IniWrite(@ScriptDir & "\Daten.ini", "Daten", "id", $id1) $pw1 = _StringEncrypt(1, GUICtrlRead($cre_input_pw), "lolator") IniWrite(@ScriptDir & "\Daten.ini", "Daten", "pw", $pw1)
GUICtrlSetState($button_gesinnung, $GUI_ENABLE) GUICtrlSetState($button_option, $GUI_ENABLE) GUICtrlSetState($button_fertigkeiten, $GUI_ENABLE) Case $button_gesinnung $Inhalt = GUICtrlCreatePic("", 560, 152, 252, 364) Case $button_fertigkeiten $Inhalt = GUICtrlCreatePic("", 560, 152, 252, 364) Case $button_option $Inhalt = GUICtrlCreatePic("", 560, 152, 252, 364) EndSwitch WEnd
ps musst den ini pfad wieder anpassen, habs zum testen geändert,, und oben war noch ein
DirCreate()
|
|
|
01/28/2011, 20:09
|
#5
|
elite*gold: 0
Join Date: Aug 2010
Posts: 827
Received Thanks: 414
|
Quote:
Originally Posted by omer36
dein fehler lag darin, dass du die input vorher auslesen musst...:
aus:
PHP Code:
_StringEncrypt(1, $cre_input_id, "lolator")
wird:
PHP Code:
_StringEncrypt(1, GUICtrlRead($cre_input_id), "lolator")
und auch hier:
PHP Code:
If GUICtrlRead($input_pw) = $pw3 Then
dann klappts auch
PHP Code:
#include <GUIConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <String.au3>
#include <File.au3>
#include <Array.au3>
$Form1 = GUICreate("frogiih's World", 818, 559, 0, 0)
GUISetBkColor(0xABABAB)
$Progress1 = GUICtrlCreateProgress(0, 528, 814, 9)
$button_gesinnung = GUICtrlCreateButton("Gesinnung", 736, 120, 75, 25)
$button_fertigkeiten = GUICtrlCreateButton("Fertigkeiten", 736, 96, 75, 25)
$button_option = GUICtrlCreateButton("Optionen", 736, 72, 75, 25)
GUICtrlSetState($button_gesinnung, $GUI_DISABLE)
GUICtrlSetState($button_option, $GUI_DISABLE)
GUICtrlSetState($button_fertigkeiten, $GUI_DISABLE)
$Group_action = GUICtrlCreateGroup("Aktivität", 8, 160, 540, 361)
$action = GUICtrlCreatePic("", 16, 184, 524, 329)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Group_welt = GUICtrlCreateGroup("Welt", 8, 8, 185, 145)
$pic_map = GUICtrlCreatePic("", 16, 32, 164, 108)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$pic_head = GUICtrlCreatePic("", 192, 8, 356, 132)
$Group_auswahl = GUICtrlCreateGroup("Auswahl", 552, 160, 265, 361)
$MenuItem_acc = GUICtrlCreateMenu("Account")
$MenuItem_cre_acc = GUICtrlCreateMenuItem("Create Account", $MenuItem_acc)
$MenuItem_login = GUICtrlCreateMenuItem("Log In", $MenuItem_acc)
$MenuItem_help = GUICtrlCreateMenu("Help")
$MenuItem_how = GUICtrlCreateMenuItem("How To Play", $MenuItem_help)
$txt_name = GUICtrlCreateLabel("Name:", 560, 80, 35, 17)
$txt_Rasse = GUICtrlCreateLabel("Rasse:", 560, 100, 37, 17)
$txt_geschlecht = GUICtrlCreateLabel("Geschlecht", 560, 120, 58, 17)
$input_name = GUICtrlCreateInput("-", 624, 80, 105, 21, BitOR($ES_CENTER, $ES_AUTOHSCROLL, $ES_READONLY), 0)
GUICtrlSetBkColor(-1, 0x696969)
$input_rasse = GUICtrlCreateInput("-", 624, 100, 105, 21, BitOR($ES_CENTER, $ES_AUTOHSCROLL, $ES_READONLY), 0)
GUICtrlSetBkColor(-1, 0x696969)
$input_geschlecht = GUICtrlCreateInput("-", 624, 120, 105, 21, BitOR($ES_CENTER, $ES_AUTOHSCROLL, $ES_READONLY), 0)
GUICtrlSetBkColor(-1, 0x696969)
; Controls #########################Login###################
$txt_login = GUICtrlCreateLabel("Join the Game!", 616, 192, 139, 28)
GUICtrlSetFont(-1, 14, 400, 0, "MS Sans Serif")
GUICtrlSetState(-1, $GUI_HIDE)
$input_id = GUICtrlCreateInput("ID", 584, 248, 209, 21)
GUICtrlSetState(-1, $GUI_HIDE)
$input_pw = GUICtrlCreateInput("Passwort", 584, 280, 209, 21, $ES_PASSWORD)
GUICtrlSetState(-1, $GUI_HIDE)
$checkbox_save = GUICtrlCreateCheckbox("Save ID and Passwort", 664, 312, 137, 17)
GUICtrlSetState(-1, $GUI_HIDE)
$button_cancel2 = GUICtrlCreateButton("Cancel", 712, 352, 75, 25)
GUICtrlSetState(-1, $GUI_HIDE)
$button_join = GUICtrlCreateButton("Join", 592, 352, 75, 25)
GUICtrlSetState(-1, $GUI_HIDE)
; Controls ########################Login##################End
; Controls ########################Cre_acc################
$cre_input_id = GUICtrlCreateInput("ID", 584, 232, 209, 21)
GUICtrlSetState(-1, $GUI_HIDE)
$cre_input_pw = GUICtrlCreateInput("Passwort", 584, 264, 209, 21, $ES_PASSWORD)
GUICtrlSetState(-1, $GUI_HIDE)
$txt_cre_acc = GUICtrlCreateLabel("Create Account", 616, 192, 139, 28)
GUICtrlSetFont(-1, 14, 400, 0, "MS Sans Serif")
GUICtrlSetState(-1, $GUI_HIDE)
$button_cancel = GUICtrlCreateButton("Cancel", 712, 464, 75, 25)
GUICtrlSetState(-1, $GUI_HIDE)
$button_confirm = GUICtrlCreateButton("Confirm", 592, 464, 75, 25)
GUICtrlSetState(-1, $GUI_HIDE)
$geschlecht_M = GUICtrlCreateRadio("Männlich", 584, 290, 113, 17)
GUICtrlSetState(-1, $GUI_HIDE)
$geschlecht_W = GUICtrlCreateRadio("Weiblich", 704, 290, 113, 17)
GUICtrlSetState(-1, $GUI_HIDE)
$Group2 = GUICtrlCreateGroup("Rasse", 584, 312, 209, 129)
GUICtrlSetState(-1, $GUI_HIDE)
$radio_rasse1 = GUICtrlCreateRadio("Rasse1", 600, 335, 113, 17)
GUICtrlSetState(-1, $GUI_HIDE)
$radio_rasse2 = GUICtrlCreateRadio("Rasse2", 600, 359, 113, 17)
GUICtrlSetState(-1, $GUI_HIDE)
$radio_rasse3 = GUICtrlCreateRadio("Rasse3", 600, 383, 113, 17)
GUICtrlSetState(-1, $GUI_HIDE)
$radio_rasse4 = GUICtrlCreateRadio("Rasse4", 600, 407, 113, 17)
GUICtrlSetState(-1, $GUI_HIDE)
GUICtrlCreateGroup("", -99, -99, 1, 1)
; Controls #######################Cre_acc#################End
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $MenuItem_cre_acc
$cre_input_id = GUICtrlCreateInput("ID", 584, 232, 209, 21)
GUICtrlSetState(-1, $GUI_SHOW)
$cre_input_pw = GUICtrlCreateInput("Passwort", 584, 264, 209, 21, $ES_PASSWORD)
GUICtrlSetState(-1, $GUI_SHOW)
$txt_cre_acc = GUICtrlCreateLabel("Create Account", 616, 192, 139, 28)
GUICtrlSetFont(-1, 14, 400, 0, "MS Sans Serif")
GUICtrlSetState(-1, $GUI_SHOW)
$button_cancel = GUICtrlCreateButton("Cancel", 712, 464, 75, 25)
GUICtrlSetState(-1, $GUI_SHOW)
$button_confirm = GUICtrlCreateButton("Confirm", 592, 464, 75, 25)
GUICtrlSetState(-1, $GUI_SHOW)
$geschlecht_M = GUICtrlCreateRadio("Männlich", 584, 290, 113, 17)
GUICtrlSetState(-1, $GUI_SHOW)
$geschlecht_W = GUICtrlCreateRadio("Weiblich", 704, 290, 113, 17)
GUICtrlSetState(-1, $GUI_SHOW)
$Group2 = GUICtrlCreateGroup("Rasse", 584, 312, 209, 129)
GUICtrlSetState(-1, $GUI_SHOW)
$radio_rasse1 = GUICtrlCreateRadio("Rasse1", 600, 335, 113, 17)
GUICtrlSetState(-1, $GUI_SHOW)
$radio_rasse2 = GUICtrlCreateRadio("Rasse2", 600, 359, 113, 17)
GUICtrlSetState(-1, $GUI_SHOW)
$radio_rasse3 = GUICtrlCreateRadio("Rasse3", 600, 383, 113, 17)
GUICtrlSetState(-1, $GUI_SHOW)
$radio_rasse4 = GUICtrlCreateRadio("Rasse4", 600, 407, 113, 17)
GUICtrlSetState(-1, $GUI_SHOW)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUICtrlSetState($txt_login , $GUI_HIDE)
GUICtrlSetState($input_id , $GUI_HIDE)
GUICtrlSetState($input_pw , $GUI_HIDE)
GUICtrlSetState($checkbox_save , $GUI_HIDE)
GUICtrlSetState($button_cancel2 , $GUI_HIDE)
GUICtrlSetState($button_join , $GUI_HIDE)
Case $MenuItem_login
$txt_login = GUICtrlCreateLabel("Join the Game!", 616, 192, 139, 28)
GUICtrlSetFont(-1, 14, 400, 0, "MS Sans Serif")
GUICtrlSetState(-1, $GUI_SHOW)
$input_id = GUICtrlCreateInput("ID", 584, 248, 209, 21)
GUICtrlSetState(-1, $GUI_SHOW)
$input_pw = GUICtrlCreateInput("Passwort", 584, 280, 209, 21, $ES_PASSWORD)
GUICtrlSetState(-1, $GUI_SHOW)
$checkbox_save = GUICtrlCreateCheckbox("Save ID and Passwort", 664, 312, 137, 17)
GUICtrlSetState(-1, $GUI_SHOW)
$button_cancel2 = GUICtrlCreateButton("Cancel", 712, 352, 75, 25)
GUICtrlSetState(-1, $GUI_SHOW)
$button_join = GUICtrlCreateButton("Join", 592, 352, 75, 25)
GUICtrlSetState(-1, $GUI_SHOW)
GUICtrlSetState($cre_input_id , $GUI_HIDE)
GUICtrlSetState($cre_input_pw , $GUI_HIDE)
GUICtrlSetState($txt_cre_acc , $GUI_HIDE)
GUICtrlSetState($button_cancel , $GUI_HIDE)
GUICtrlSetState($button_confirm , $GUI_HIDE)
GUICtrlSetState($geschlecht_M , $GUI_HIDE)
GUICtrlSetState($geschlecht_W , $GUI_HIDE)
GUICtrlSetState($radio_rasse1 , $GUI_HIDE)
GUICtrlSetState($radio_rasse2 , $GUI_HIDE)
GUICtrlSetState($radio_rasse3 , $GUI_HIDE)
GUICtrlSetState($radio_rasse4 , $GUI_HIDE)
Case $button_join
$pw2 = IniRead(@ScriptDir & "\Daten.ini", "Daten", "pw", "")
$pw3 = _StringEncrypt(0, $pw2, "lolator")
If GUICtrlRead($input_pw) = $pw3 Then
TrayTip("frogiih's World", "Einloggen Erfolgreich. Daten werden geladen...", 10000)
Else
TrayTip("frogiih's World", "Achtung! Deine Angegebenen Daten stimmen nicht überein. Bitte überprüfe diese.", 10000)
EndIf
GUICtrlSetState($button_gesinnung, $GUI_ENABLE)
GUICtrlSetState($button_option, $GUI_ENABLE)
GUICtrlSetState($button_fertigkeiten, $GUI_ENABLE)
Case $button_confirm
$id1 = _StringEncrypt(1, GUICtrlRead($cre_input_id), "lolator")
IniWrite(@ScriptDir & "\Daten.ini", "Daten", "id", $id1)
$pw1 = _StringEncrypt(1, GUICtrlRead($cre_input_pw), "lolator")
IniWrite(@ScriptDir & "\Daten.ini", "Daten", "pw", $pw1)
GUICtrlSetState($button_gesinnung, $GUI_ENABLE)
GUICtrlSetState($button_option, $GUI_ENABLE)
GUICtrlSetState($button_fertigkeiten, $GUI_ENABLE)
Case $button_gesinnung
$Inhalt = GUICtrlCreatePic("", 560, 152, 252, 364)
Case $button_fertigkeiten
$Inhalt = GUICtrlCreatePic("", 560, 152, 252, 364)
Case $button_option
$Inhalt = GUICtrlCreatePic("", 560, 152, 252, 364)
EndSwitch
WEnd
ps musst den ini pfad wieder anpassen, habs zum testen geändert,, und oben war noch ein
DirCreate() 
|
Super!
Danke für deine Hilfe, hat alles geklappt.
|
|
|
 |
Similar Threads
|
IniRead problem
08/13/2010 - AutoIt - 7 Replies
Hab mich weiter durch etliche tuts gequält auch in nem autoit forum gefragt aber so richtig bekommt keiner das hin
HotKeySet("{ESC}","EXITT")
$ini = "config.ini"
$iniread = IniRead($ini,"Nutzung","ja/nein&quo t;,"ja","NotFound")
If $iniread = "ja" Then
$name = IniRead($ini,"Login","Name")
$pw = IniRead($ini,"Login","PW")
|
[Frage] Show / Hide
07/06/2010 - CrossFire - 6 Replies
Hallo Leute ,
Wie mache ich das in meiner Signatur , damit man auf Show drückt , und man dann sieht , was ich da stehen habe?
Wer mir hilft bekommt Thanks (:
|
show/hide befehl
03/15/2010 - AutoIt - 4 Replies
wie kann man in ein bot mehr hotkey das fenster in hintergrundsetzen(hide) und wieder aufrufen(show)
oder anders gesagt geht das überhaupt mit autoit
bei machnchen c++ bots gehts das weis ich
THX
|
NoDc+Show+Hide
06/14/2008 - SRO Hacks, Bots, Cheats & Exploits - 2 Replies
xD
deleted
|
[HELP]Hide/Show program in taskbar.
04/18/2008 - General Coding - 2 Replies
Yo,
I want too make a program just too hide/show any program inserted in a textbox
from the taskbar.
So it bassicaly is just one button and a textbox.
I searched 3 days on google for any tuts on this but didn't find anything.
If anyone can explain me clearly how i can make such a function, i would really appreciate it.:o
(I am known with Visual Basic 2008 Express, and a little bit of C++ with visual C++ 2008)
|
All times are GMT +1. The time now is 21:09.
|
|