Jump to content
Sign in to follow this  

Get Title of an App that has a changing Title..

Recommended Posts


ok, hope someone knows what i'm talkin about.. but I have foobar2000, and the titlebar text is always in this format: %artist% - %title%

so say i was listening to: Static-X - Night Terrors the "Title:" line of Autoit 3 Window Info, says "Static-X - Night Terrors"...

so how could i get the title of this?.. the only thing that doesn't change is the " - " part of it.. but thats not very reliable, and lots of programs do this... such as Notepad, Mozilla Firefox, Internet Explorer, etc...

would it be possible to get the process like "foobar2000.exe" and get the info of it..?

Edited by Bi0haZarD

Share this post

Link to post
Share on other sites

from help



Retrieves the internal handle of a window.

WinGetHandle ( "title" [, "text"] )


title The title of the window to read. See Title special definition.

text [optional] The text of the window to read.

Return Value

Success: Returns handle to the window.

Failure: Returns "" (blank string) and sets @error to 1 if no window matches the criteria.


This function is for use with the advanced WinTitleMatchMode options that allow you to use classnames and handles to specify windows rather than "title" and "text".

Once you have obtained the handle you can access the required window even if its title changes.

hope that helps



Share this post

Link to post
Share on other sites

hah thanks, had a brainfart on this one =P

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  


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.