James Posted January 13, 2007 Share Posted January 13, 2007 I'm hoping this will be my last question for today. I have put a .ini file on my website: [Version]Newest=2.0 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 Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
Developers Jos Posted January 13, 2007 Developers Share Posted January 13, 2007 I'm hoping this will be my last question for today.I have put a .ini file on my website:It's called version.inNow 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.ThanksSecureFirst 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 More sharing options...
piccaso Posted January 13, 2007 Share Posted January 13, 2007 (edited) InetGet & IniRead... ? edit: oops Edited January 13, 2007 by piccaso CoProc Multi Process Helper libraryTrashBin.nfshost.com store your AutoIt related files here!AutoIt User Map Link to comment Share on other sites More sharing options...
James Posted January 13, 2007 Author Share Posted January 13, 2007 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) Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
Developers Jos Posted January 13, 2007 Developers Share Posted January 13, 2007 (edited) 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 January 13, 2007 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 More sharing options...
James Posted January 13, 2007 Author Share Posted January 13, 2007 I have downloaded the file, and started reading it. So now use StringSplit ok. Thanks JdeB Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
James Posted January 14, 2007 Author Share Posted January 14, 2007 (edited) Edit: I forgot an & I feel ashamed of myself! Edited January 14, 2007 by Secure_ICT Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
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