DonTutti Posted November 27, 2019 Posted November 27, 2019 Hello, I have problem with Image search and saved ini config file. When I set manualy all checkboxes etc and start program image search work perfectly. When I save everything to ini file by comand: Global $INI_PATH = @DesktopDir & "\config.ini" Func Save() IniWrite($INI_PATH, "Config", "Name", GUICtrlRead($Input1)) IniWrite($INI_PATH, "Config", "Sex", GUICtrlRead($Radio1)) Endfunc Everything works great. But when I try to save config like that: Func Save() $INI_PATH = FileSaveDialog('Save File',@DesktopDir, '(*.ini)') IniWrite($INI_PATH, "Config", "Name", GUICtrlRead($Input1)) IniWrite($INI_PATH, "Config", "Sex", GUICtrlRead($Radio1)) Endfunc I have error in Imagesearch: "D:\AutoIt3\Include\ImageSearch.au3" (52) : ==> Subscript used on non-accessible variable.: if $result[0]="0" then return 0 if $result^ ERROR >Exit code: 1 Time: 9.527
Developers Jos Posted November 27, 2019 Developers Posted November 27, 2019 You are clearly not showing the whole script. What about doing that first? 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.
xYuri Posted November 27, 2019 Posted November 27, 2019 (edited) @DonTutti First, The error has nothing to do with the code you are showing. Second, Use Tidy (Ctrl+T), if you have something wrong most likely it will tell you. Edited November 27, 2019 by xYuri
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