au3scr Posted May 14, 2008 Share Posted May 14, 2008 I couldnt post it in report forum, si i posted it here $var = IniReadSection("install.ini","install") If @error Then MsgBox(4096, "", "Error occurred, probably no INI file.") Else For $i = 1 To $var[0][0] MsgBox(4096, "", "Key: " & $var[$i][0] & @CRLF & "Value: " & $var[$i][1]) Next EndIf Return = "Error occurred, probably no INI file." MsgBox(4096, "", FileExists("install.ini")) Return = 1 Link to comment Share on other sites More sharing options...
martin Posted May 14, 2008 Share Posted May 14, 2008 I couldnt post it in report forum, si i posted it here $var = IniReadSection("install.ini","install") If @error Then MsgBox(4096, "", "Error occurred, probably no INI file.") Else For $i = 1 To $var[0][0] MsgBox(4096, "", "Key: " & $var[$i][0] & @CRLF & "Value: " & $var[$i][1]) Next EndIf Return = "Error occurred, probably no INI file." MsgBox(4096, "", FileExists("install.ini")) Return = 1Does the section "install" exist? Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
au3scr Posted May 14, 2008 Author Share Posted May 14, 2008 Does the section "install" exist?yes Link to comment Share on other sites More sharing options...
martin Posted May 15, 2008 Share Posted May 15, 2008 yesThen can you show a sample of the ini file so we can try to reproduce the problem. Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
enaiman Posted May 15, 2008 Share Posted May 15, 2008 au3scr has another post about this http://www.autoitscript.com/forum/index.php?showtopic=71241I've been asking him for code and a sample of the ini file but no answer yet. Without any further information it would be difficult to decide about it being a bug or not. SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script wannabe "Unbeatable" Tic-Tac-Toe Paper-Scissor-Rock ... try to beat it anyway :) Link to comment Share on other sites More sharing options...
ResNullius Posted May 15, 2008 Share Posted May 15, 2008 I couldnt post it in report forum, si i posted it here $var = IniReadSection("install.ini","install") If @error Then MsgBox(4096, "", "Error occurred, probably no INI file.") Else For $i = 1 To $var[0][0] MsgBox(4096, "", "Key: " & $var[$i][0] & @CRLF & "Value: " & $var[$i][1]) Next EndIf Return = "Error occurred, probably no INI file." MsgBox(4096, "", FileExists("install.ini")) Return = 1if your ini file is formatted as in your other post [general] HideGUI=0 [install] firefox thunderbirdthen the [install] section is not formatted correctly! You at least need an equals sign after the key names [general] HideGUI=0 [install] firefox= thunderbird= 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