i have problem. i want to check $input if match in username in ini.
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <GUIListView.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <File.au3>
#include <Array.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Login NEOW", 270, 112, 192, 124)
$Input1 = GUICtrlCreateInput("Email", 24, 40, 121, 21)
$Button1 = GUICtrlCreateButton("Login", 160, 16, 99, 49)
$Label1 = GUICtrlCreateLabel("", 24, 72, 147, 25)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
Func readuser()
$accinfo="https://www.dropbox.com/s/q9xfiiu6amahdvj/Username.ini"
$Ini = InetGet($accInfo,@ScriptDir & "\username.ini") ;download version.ini
$sRead = IniRead(@ScriptDir & "\username.ini", "username", "username", "")
Local $user = GUICtrlRead($input1)
If $user = $sread Then
Exit
Else
MsgBox(64,"Register","Register pls")
EndIf
FileDelete(@ScriptDir & "\username.ini")
EndFunc
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $button1
readuser()
EndSwitch
WEnd
Username.ini
[username]
username=1234
if me write 1234 in inputbox and check it tell me register that.
can anyone can tell me what that wrong?
And can expand that function iniread please.
sorry for my bad english dude