|
You last visited: Today at 16:48
Advertisement
A little problem..
Discussion on A little problem.. within the AutoIt forum part of the Coders Den category.
02/12/2010, 22:17
|
#1
|
elite*gold: 0
Join Date: Apr 2009
Posts: 16
Received Thanks: 7
|
A little problem..
I have a form with a typical "login form"
what i want to know is when a check box is checked i want it to remember what is in the user-name and password box's..
Here is the needed info:
Code:
$Username = GUICtrlCreateLabel("Username:", 16, 24, 55, 17)
$Password = GUICtrlCreateLabel("Password:", 16, 56, 55, 17)
$Remember = GUICtrlCreateLabel("Remember", 96, 80, 79, 17)
|
|
|
02/13/2010, 12:32
|
#2
|
elite*gold: 0
Join Date: Apr 2008
Posts: 1,079
Received Thanks: 438
|
write an ini with the login data.
|
|
|
02/13/2010, 13:50
|
#3
|
elite*gold: 0
Join Date: Apr 2009
Posts: 16
Received Thanks: 7
|
Quote:
Originally Posted by | Moep |
write an ini with the login data.
|
Care to elaborate that?
|
|
|
02/13/2010, 16:39
|
#4
|
elite*gold: 0
Join Date: Apr 2008
Posts: 1,079
Received Thanks: 438
|
|
|
|
02/13/2010, 16:57
|
#5
|
elite*gold: 0
Join Date: Nov 2007
Posts: 81
Received Thanks: 33
|
this is also important
Code:
#include<GuiConstants.au3>
$checkbox = GUICtrlCreateCheckbox("")
if $checkbox = $GUI_CHECKED Then
EndIf
|
|
|
02/13/2010, 21:37
|
#6
|
elite*gold: 0
Join Date: Apr 2009
Posts: 16
Received Thanks: 7
|
Quote:
Originally Posted by | Moep |
|
Thanks, i have read both and now have what i think is a code that should work... however it doesn't seem to work :/
Quote:
Originally Posted by Pwneres
this is also important
Code:
#include<GuiConstants.au3>
$checkbox = GUICtrlCreateCheckbox("")
if $checkbox = $GUI_CHECKED Then
EndIf
|
Thankyou, i was missing the "if $checkbox = $GUI_CHECKED Then" i had something similar however neither seem to be working, when I enter a test username and password nothing is written to my "settings.ini"..
Code:
if $Remember = $GUI_CHECKED Then
IniWrite ( "Settings.ini", "Data", "key", $username )
IniWrite ( "Settings.ini", "Data", "key", $password )
EndIf
Is this right or not?
|
|
|
02/13/2010, 23:23
|
#7
|
elite*gold: 20
Join Date: Feb 2007
Posts: 3,080
Received Thanks: 4,294
|
do you mean like this?
Code:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 201, 120, 192, 124)
$Checkbox1 = GUICtrlCreateCheckbox("iniwrite", 8, 8, 57, 17)
$Label1 = GUICtrlCreateLabel("Name:", 8, 32, 35, 17)
$Input1 = GUICtrlCreateInput("", 72, 32, 121, 21)
$Label2 = GUICtrlCreateLabel("Password:", 8, 64, 53, 17)
$Input2 = GUICtrlCreateInput("", 72, 64, 121, 21)
$start = GUICtrlCreateButton("start", 72, 96, 121, 21)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $start
start()
EndSwitch
WEnd
Func start()
If GUICtrlRead($Checkbox1) = $gui_checked Then
IniWrite("Settings.ini", "Data", "name", GUICtrlRead($Input1))
IniWrite("Settings.ini", "Data", "password", GUICtrlRead($Input2))
TrayTip("saved", "settings saved", 10, 1)
Else
TrayTip("not saved", "settings not saved", 10, 2)
EndIf
EndFunc
|
|
|
Similar Threads
|
Metin 2 Pserver Problem/ Lösung für das Matrix Kartennummer Problem
01/04/2010 - Metin2 Private Server - 3 Replies
Hy Leute
Wie in der Überschrift genannt, hab ich gerade ein Problem mit meinem Metin 2Server.
Ich lasse ihn via Loopbackadapter laufen, funktioniert auch ganz gut.
Ich hab aber jetzt das Poblem, das in meinem Account nur noch Krieger mit Level null stehen.
Wie kann ich das Beheben??, das is auch manchmal da, wenn ich via Navicat n neuen Account mach. Hoffe einer hatt ne Lösung
Hab n Screenshot im Anhang
Aber ich hab ja auch ne Lösung für n anderes Problem.
Gestern hatte ich beim...
|
[Problem] Problem with server starting - cannot find quest index for PaxHeader
12/22/2009 - Metin2 Private Server - 1 Replies
Hello!
I have this same problem as here when i'm starting my server:
http://www.elitepvpers.com/forum/metin2-pserver-di scussions-questions/307143-metin2-serverfiles-ques t-index-fehler.html
But I didn't know the answer.. how to repair this?
Greetings
|
All times are GMT +1. The time now is 16:48.
|
|