ANRAR4 / AutoBTD6

The scripts contained in this repository allow you to automatically play any gamemode on any map in Bloons TD6
31 stars 4 forks source link

Active window check error #12

Closed Code-Mushy closed 1 year ago

Code-Mushy commented 1 year ago

Traceback (most recent call last): File "C:\Users\Гриб\Downloads\AutoBTD6-main\replay.py", line 1230, in main() File "C:\Users\Гриб\Downloads\AutoBTD6-main\replay.py", line 662, in main if not activeWindow or not isBTD6Window(activeWindow.title.decode()): AttributeError: 'str' object has no attribute 'decode'. Did you mean: 'encode'?

ANRAR4 commented 1 year ago

Are you using AHK 2.0? The python ahk package currently only supports AHK 1.x (see #11).

In case this isn't the problem could you specify which version of python, AHK and python ahk you are using?

Code-Mushy commented 1 year ago

Yes, i Just removed .decode() and replaced ahk.send_event() with ahk.send_input() and that worked for me