GigaMan Posted March 30, 2007 Posted March 30, 2007 Well i just started using autoit yesterday.. i've done a little program that i needed.. after checking it works (it works) i decided to make it better and i won't need to put in an id and password every time and i tried to do it with a gui. this is the script $id = IniRead ("C:\Z\id and pass.ini", "first time", "id", "iamnot0" ) if $id = 0 Then GUICreate("ZzZzZ") $idg=GUICtrlCreateInput("id", 1, 1) $passg=GUICtrlCreateInput("pw", 60, 60) GUISetState(@SW_SHOW) Sleep(10000) $pass=GUICtrlRead($passg) $id=GUICtrlRead($idg) IniWrite("C:\Z\id and pass.ini", "id", "$id", $id) IniWrite("C:\Z\id and pass.ini", "pw", "$pass", $pass) IniDelete("C:\Z\id and pass.ini", "first time") Else While 1=1 $id = IniRead ( "C:\Z\id and pass.ini", "id", "$id", "error") $pass = IniRead( "C:\Z\id and pass.ini", "pw", "$pass", "error") <program>.. the problem is probably something with the first command- there are no error messages, but after the first time it opens and sleeps for 10 secs and closes (like it needed) when i turn it on again it still thinks id=0... though it should give back "iamnot0" and start the program. what is wrong?
Zedna Posted April 7, 2007 Posted April 7, 2007 Posted part of code is insufficient to help you, post whole code... Resources UDF ResourcesEx UDF AutoIt Forum Search
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now