Sign in to follow this  
Followers 0
sumkid

read ini settings from online?

6 posts in this topic

#1 ·  Posted (edited)

Can i make autoit read settings from an online file? say i have a ftp server and upload an ini file to it with settings. can it read those settings while its online?

I was hoping to do this with something like iniread() or something similar if possible?

thanks in advance =)

Edited by sumkid

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

InetGet() and IniRead() and download the file every time you start the program or you could use _IE functions.

Edited by Pain

Share this post


Link to post
Share on other sites

ahh ok ill try it and report my results back here.

Thanks

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

ok, tried something like this

$Getit = InetGet ( "http://www.mywebserver.com/settings/settings.ini", "settings.ini" )

While 1
Sleep (10000)
IniRead ( $Getit, "settings", "Option1", 1 )
Sleep (35000)
WEnd

im not getting anything?

I am trying to get it to do a msgbox from the web server that i posted in the ini.

Edited by sumkid

Share this post


Link to post
Share on other sites

I think you need to move the InetGet statement inside the While loop. That way it will download a fresh copy each time.

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