Search code examples
autoit

AutoIt binary integrity can not be verifed


I have a simple AutoIt file, the code of the file is given below

ControlFocus("File Upload","","Edit1")
ControlSetText("File Upload","","Edit1","path\BGD_adm1.prj")
ControlClick("File Upload", "", "Button1")

When I was trying to compile the above code into x64 then AutoIt is throwing the following error

Error: binary integrity cannot be verified

What is the reason and solution of this problem?


Solution

  • It is hard to tell without seeing the program you are trying to automate but using ControlSend might fix it.

    ControlFocus("File Upload","","Edit1")
    ControlSend("File Upload","","Edit1","path\BGD_adm1.prj")
    ControlClick("File Upload", "", "Button1")