01-08-2015, 02:10 AM
(01-06-2015, 03:31 PM)Kaz Wrote: edit4: 2015-01-06b_COC Bot v5.3.5.zip now. I took the suggestion to change the name of the title but I am still not sure why this is happening, it might see another Window with the name which is why it caused it in the first place. Please let me know if you still get this error with this version.
I'm pretty sure it has to do with running the bot from the script editor. The WinExists method does a substring search and finds the title in the editor window (matches filename), then bails. The fix referred to above works because the title now contains "Pre-Alpha", which is not in the filename.
Perhaps matching by CLASS or setting WinTitleMatchMode to 3 would be more appropriate:
https://www.autoitscript.com/autoit3/doc...eMatchMode
(may need to reset the value if this affects other title-matching calls later in the script)
Other references:
https://www.autoitscript.com/autoit3/doc...Exists.htm
https://www.autoitscript.com/autoit3/doc...vanced.htm