MasterFocus wrote:
Are you performing Gui, Submit?
Code:
Login = LOGIN TO S-MINER
Gui, 2:Font,cFF0000,
Gui, 2:Color, 000000
Gui, 2:+ToolWindow
Gui, 2:Add, Edit,-Vscroll cBlack x80 y12 w80 h20 vUsrname
Gui, 2:Add, Edit,-Vscroll cBlack x80 y42 w80 h20 vpasswrd Password
Gui, 2:Add, Text, x12 y12 w70 h20, Username
Gui, 2:Add, Text, x12 y42 w70 h20, Password
Gui, 2:Add, Button, x170 y12 w70 h20 Default, Login
Gui, 2:Add, Button, x170 y42 w70 h20 , Cancel
Gui, 2:Add, Text, x12 y120 w70 h20, News
Gui, 2:Add, Edit, x10 y135 w230 h60 ReadOnly, %newsss%
Gui, 2:Add, Checkbox, x160 y80 Right vrememberuser, Remember
Gui, 2:Show, x299 y200 h200 w250, %Login%
Return
2ButtonCancel:
MsgBox, 16,LOGIN TO S-MINER, Login Failed`n
2GuiClose:
2GuiEscape:
Gui, 2:Destroy
ExitApp
Return
2ButtonLogin:
Gui, Submit
UrlDownloadToFile,http://mmostuff.elementfx.com/botconnectionsql/auth.php?user=%Usrname%&pass=%passwrd%,test2
FileReadLine, OutputVar, test2, 1
FileDelete,test2
if Outputvar = 1
{
Gui, 2:Destroy
Goto, ALALALALA
}if Outputvar = 0
{
MsgBox, 16, Wrong Username/Password, Wrong Username/Password`n If you lost your access data please contact us!
ExitApp
}if Outputvar = 2
{
MsgBox, 16, User not activated, Your User is not activated`n Your user will be activated after your payment.
ExitApp
}else
{
MsgBox, 16, Can't connect to the server, Can't estabilish connection`nPlease check your internet connection or try again later.
ExitApp
}
ALALALALA:
my full login script looks like this, i only want to save login data with checkbox, and if checkbox unchecked the login data doesn't be saved.