Jump to content

Recommended Posts

Posted

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

 

Posted (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 by xYuri

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
  • Recently Browsing   0 members

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