Sign in to follow this  
Followers 0
GigaMan

help a newbie?

2 posts in this topic

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?

Share this post


Link to post
Share on other sites



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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0