Jump to content
Sign in to follow this  

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...