v1rtu0s1ty Posted July 28, 2005 Posted July 28, 2005 I'm not sure if there is a function that's already doing this. It is similar to WinGetHandle's approach. I executed a vb program that will enumerate window properties such as handle, title and classnames of all window that exists. Here is my situation. I have windows that have the same classnames, but they don't show up at the same time. I was hoping that if there was a function wherein we can specify the classnameNN and it would spit out the title. $WindowTitle = WinGetTitlebyClassNameNN("classname=somewin002") Msgbox(0, "", "Title found is " & $WindowTitle) With that, I can do this While 1 $WindowTitle = WinGetTitlebyClassNameNN("classname=somewin002") if $WindowTitle = "WARNING - ODBC issues" Then ;some codes here endif if $WindowTitle = "WARNING - SQL down" Then ;some codes here endif if $WindowTitle = "WARNING - Logspace full" Then ;some codes here endif Wend This is really good for some windows that dynamically updates the title. Thanks guys, Neil
GaryFrost Posted July 28, 2005 Posted July 28, 2005 if its the active window you can use $WindowTitle = WinGetTitle("") SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
Valik Posted July 28, 2005 Posted July 28, 2005 I was hoping that if there was a function wherein we can specify the classnameNN and it would spit out the title.Its called (un-imaginatively enough), WinGetTitle().
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now