Jump to content

Reading A Window Title


Recommended Posts

Hi everybody

I am currently trying to read the full stats (name, text, position,..) , but mainly I need the title.

The problem is I know only part of the windowname. I know how to get full title etc when i know the first part of the title but I need to get the title even if I only know some middle-part or the end of the title.

So I am looking for a way to use some kind of wildcards to be able to get the title.

e.g.: wingettitle("*PartOfName*","")

Or else is there a way to read the title of the currently active window without knowing anything else about it?


found it in here and in help .. sorry for posting

delete plz :whistle:

Edited by dainsleif
Link to comment
Share on other sites

Option 2 allows a match of anything contained in the window, so Soft in this part would work if your window was say "HiddenSoft Forrums ->"

Substr= Part of a String.

AutoItSetOption("WinTitleMatchMode", 2)   ;1=start, 2=substr, 3=exact, 4=...
msgbox(1,"info",WinGetTitle ( "Soft"  ))

you can use this for all window operations, size, position, etc. Just use the AutoItSetOption("WinTitleMatchMode", 2) or use the short version Opt("WinTitleMatchMode", 2)

AutoIt3, the MACGYVER Pocket Knife for computers.

Link to comment
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

  • Recently Browsing   0 members

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