AutoHotkey Community

It is currently May 26th, 2012, 10:06 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: October 17th, 2009, 10:29 pm 
Offline

Joined: July 8th, 2009, 11:07 am
Posts: 61
Hi!
Please help me making this. (i can't do this bur i read the help)
Writeand read from inifile.
If rememberuser checkbox checked, save username and pass in inifile, and at the next login it stays checked and user/and pass is stay in too.
If remember unchecked, the saved user and pass not appears at the editbox
thanks for helping and sorry for my bad english
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 17th, 2009, 10:35 pm 
using the checkbox output variable, use if-else
like:
Code:
if rememberuser = 1
{
msgbox, save in ini
IniWrite
}
 


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: October 17th, 2009, 10:36 pm 
Offline

Joined: July 8th, 2009, 11:07 am
Posts: 61
Anonymous wrote:
using the checkbox output variable, use if-else
like:
Code:
if rememberuser = 1
{
msgbox, save in ini
IniWrite
}
 


i tried this but it don't works :S:S
i can't make iniread and iniwrite method to work correct :S


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 17th, 2009, 10:48 pm 
Offline

Joined: April 8th, 2009, 8:23 pm
Posts: 3036
Location: Rio de Janeiro - RJ - Brasil
Are you performing Gui, Submit?

_________________
"Read the manual. Read it again. Search the forum.
Try something before asking. Show what you've tried.
"
Image
Antonio França
My stuff: Google Profile


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 18th, 2009, 8:32 am 
Offline

Joined: July 8th, 2009, 11:07 am
Posts: 61
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.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: hyper_, JSLover, Leef_me, patgenn123 and 59 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group