I’m getting the same error, i’m using autopilot’s method i have figured out that the problem is it uses SendMessageA and it needs to use SendMessageW.
now i just need to figure out how to do that and i’ll be fine