Jump to content
Sign in to follow this  

Read ini from website

Recommended Posts


I need my script to be able to read an ini on my free web host, heres the script.

News Module
Created by me =D

#include <GUIConstants.au3>

GUICreate("News Module", "200", "200")
$mainpw = iniread("blizzstuff.t35.com/News.ini", "Main", "Password", "None")
$write = GuiCtrlCreateButton("Write", 10, 10, 40, 40, $BS_ICON)
GUICtrlSetImage(-1, "wi0054-48.ico", -1)
$up = GuiCtrlCreateButton("Upadte", 50, 10, 40, 40, $BS_ICON)
GuiCtrlSetImage(-1, "wi0064-48.ico", -1)
$list = guictrlcreatelist("Click the update button", 10, 50, 150, 150)
$set = ""

While 1
    $msg = GUIGetMsg()
        Case $msg = $GUI_EVENT_CLOSE
        Case $msg = $write
        Case $msg = $up

Func _Password()
$UserPw = InputBox("Password", "Please enter password", "Password")
if $UserPw = $mainpw Then
$news = InputBox("News module", "Please insert news you would like others to see.")
inidelete("blizzstuff.t35.com.com/News.ini", "main", "News")
iniwrite("blizzstuff.t35.com/News.ini", "Main", "News", $news)

Func _Update()
$news2 = iniread("blizzstuff.t35.com/News.ini", "Main", "News", "none")
guictrlsetdata($list, $news2)

now i just need some help, and i tred the search thingy ma bobber

Share this post

Link to post
Share on other sites

Try downloading the INI file into the temp folder first. :)

[center][/center]Working on the next big thing.Currently Playing: Halo 4, League of LegendsXBL GT: iRememberYhslaw

Share this post

Link to post
Share on other sites

crazy code!

a) to even read the ini, it needs to be publicly accessible, and it has a password in it.

B) you cannot write to an ini file over the web, not by regular methods.

c) you cannot delete sections in an ini file over the web, see B).


You could read the news from there. But read only. This..

GUICreate("News Module", "200", "200")
InetGet("http://blizzstuff.t35.com/News.ini", "C:\news.ini")
$mainpw = iniread("C:\news.ini", "main", "password", "none")
MsgBox(64, "password", $mainpw, 10)

Displays a dialog with your (publicly accessible) password in it.

Works fine.


[edit]sheesh! I need to learn to spell![/edit]

Edited by mr.underperson

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.