I guessing you are using AutoIt 3.3.14.x if so ..... Unfortunately I think this is probably the same problem as described here: https://www.autoitscript.com/trac/autoit/ticket/3097 Try to compile with x64 version of 3.3.14.x Or try your script with 3.3.12.x And back with results.