Jump to content
Sign in to follow this  
pdaughe

"title" in the Window Functions

Recommended Posts

pdaughe

Prior to the obsolescence of advanced mode 4 and the introduction of the current advance window descriptions,

the specification of a null window title implied the active window.

WinGetTitle ("") = WinGetTitle ("[ACTIVE]")
WinGetHandle ("") = WinGetHandle ("[ACTIVE]")

It still seems to today. Is this an "interface" that should be relied on?

Share this post


Link to post
Share on other sites
DaveF

This is still the default behavior. There is code in AutoIt that returns the active window and indicates success if you provide an empty string, so this is not just an artifact of the win32 API. I don't see any reason that the (predictable) behavior should change, and as such it should probably be documented for these script functions.

That said, if you're rebuilding your compiled scripts or running legacy scripts with an updated version of AutoIt and you know you want the active window, then you should go ahead and update your script to use the new advanced tags.

If you're using precompiled scripts that work as desired the way that they are, then I'd leave them alone unless circumstances demand that you change them.


Yes yes yes, there it was. Youth must go, ah yes. But youth is only being in a way like it might be an animal. No, it is not just being an animal so much as being like one of these malenky toys you viddy being sold in the streets, like little chellovecks made out of tin and with a spring inside and then a winding handle on the outside and you wind it up grrr grrr grrr and off it itties, like walking, O my brothers. But it itties in a straight line and bangs straight into things bang bang and it cannot help what it is doing. Being young is like being like one of these malenky machines.

Share this post


Link to post
Share on other sites
pdaughe

Thank you!

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  

×