Jump to content

Recommended Posts

Posted

Using AutoIt with Python/Tkinter/Pmw

Hi,

I am trying to use AutoIt with Python, Tkinter and Pmw in windows. When I use the Auto Win Info it does identifies widgets correctly on the screen. There is basically only one class TkChild for all widgets. Widgets are distinguished by instance number. I tired to sent click to the widgets using various variations of the Control Click command, but none would work. Here are examples:

ControlClick("tk", "", "[Class:TkChild; Instance:31]", "left", 2)

ControlClick("tk", "", "[CLASSNN:TkChild31]")

ControlClick("[TITLE:tk; CLASS:TkTopLevel]", "", "[CLASSNN:TkChild31]")

This method works fine (with proper class and instance names) with window application or even Qt application for windows. But I can not get it to work with python/tkinter application under windows.

Any suggestion how to get this to work?

Thank you,

Bob

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...