Getting information from Windows app's AU3Info (Simple)

AutoIt v3 comes with a standalone tool called the AutoIt Window Info Tool (Program Files | AutoIt3 | Au3Info.exe). AU3Info allows you to get information from a specified window or control that can be used to effectively automate it, including color codes and a lot of other current information.

Getting ready

Open SciTE from the AutoIt Program Group and start using menus.

How to do it...

Open the Tools menu and click on AU3Info, and follow these steps:

  1. Click on Finder Tool.
    How to do it...
  2. Drag-and-drop Finder Tool over any window or program you want information from.
  3. Copy text data directly from the AU3Info data using CTRL + C, and then paste it into your script; for example, you can copy the title.

How it works...

Information that can be obtained includes:

  • The window's title: It is the name on top of every window.
  • Text on the window (visible and hidden): It is the text inside the previously selected window.
  • Window size and position: It has details about the window's height and width (x, y coordinates).
  • Contents of the status bar: It shows the status bar's text or message.
  • Position of the mouse pointer: It shows the details of the mouse coordinates (x, y).
  • Color of the pixels underneath the mouse pointer: It shows the hex color codes below the mouse pointer.
  • Details of the control underneath the mouse pointer (for example, button, checkbox, and edit): It has information about the control ID underneath the mouse, that is, the control number you will use for later control management.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset