Jump to content

WinGetTitle broken in python3

Recommended Posts



I'm using this code for years in python 2.7 x64 and it works fine:

from win32com.client import Dispatch # AutoIt python binding
autoit = Dispatch("AutoItX3.Control")

if autoit.WinExists("[CLASS:#32770]")
    title = autoit.WinGetTitle("[CLASS:#32770]")

Now, with python 3.6 x64, WinExists find the class, but WinGetTitle just return an empty string.

If I pass a string title (not [CLASS:...], WinGetTitle return a correct title string

Am I missing something ?


Win7 pro x64. scripts compiled to x64. - Autoit v3.3.6.1 | Scite 1.79

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.