Jump to content

Read a .ini from a website


James
 Share

Recommended Posts

  • Developers

I'm hoping this will be my last question for today.

I have put a .ini file on my website:

It's called version.in

Now how would I read what version is the latest from that. I need to get the 2.0 bit and use GuiCtrlSetData to change the text to the version.

Thanks

Secure

First IniGet() it to the @TempDir before reading ....

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

I have tried

Func FirstRun()
    RegRead("HKEY_CURRENT_USER\Software\BetaPad\Settings", "FirstRun")
    If @error Then
        GuiCtrlSetData($DocEd1, "Welcome to BetaPad. It looks like this is your first time running BetaPad." & @CRLF & @CRLF & _
        "You are using; " & $Version & " of BetaPad." "Our newest version is: " & InetGet("http://betapad.sf.net/version.ini", @ScriptDir "\Settings\version.ini") & IniRead(@ScriptDir "\Settings\version.ini", "Version", "Newest", "")
        RegWrite("HKEY_CURRENT_USER\Software\BetaPad\Settings", "FirstRun", "REG_SZ", "Ranb4")
    EndIf
EndFunc

I dont know how to read the version number (2.0)

Link to comment
Share on other sites

  • Developers

I have tried

Func FirstRun()
    RegRead("HKEY_CURRENT_USER\Software\BetaPad\Settings", "FirstRun")
    If @error Then
        GuiCtrlSetData($DocEd1, "Welcome to BetaPad. It looks like this is your first time running BetaPad." & @CRLF & @CRLF & _
        "You are using; " & $Version & " of BetaPad." "Our newest version is: " & InetGet("http://betapad.sf.net/version.ini", @ScriptDir "\Settings\version.ini") & IniRead(@ScriptDir "\Settings\version.ini", "Version", "Newest", "")
        RegWrite("HKEY_CURRENT_USER\Software\BetaPad\Settings", "FirstRun", "REG_SZ", "Ranb4")
    EndIf
EndFunc

I dont know how to read the version number (2.0)

Split it up in separate lines and start testing thing before posting that it doesn;t work ...

InetGet

IniRead

GuiCtrlSetData

Edited by JdeB

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...