Sign in to follow this  
Followers 0
rejoice

Handling unknown title window

5 posts in this topic

Hi All, I want to handle unexpected and unknown popup window by clicking Ok button (for example) when that window is in active. I know so many ways to handle known title window. I want to know about how to handle unknown title window in active mode? Is it possible through AutoIt? Thanks in advance.

Share this post


Link to post
Share on other sites



Hi All, I want to handle unexpected and unknown popup window by clicking Ok button (for example) when that window is in active. I know so many ways to handle known title window. I want to know about how to handle unknown title window in active mode? Is it possible through AutoIt? Thanks in advance.

Look up the advanced WinTitleMatchMode 4 in the help file.

Even with an unknown or blank title, you can use things like: "[CLASS:#32770; TEXT:You must cross your finger before installing]".

:)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

Or how about trying

$handle = WinGetHandle("[ACTIVE]", "")

if you don't know any specifics, but you DO know it's the active window ?

Share this post


Link to post
Share on other sites

Or how about trying

$handle = WinGetHandle("[ACTIVE]", "")

if you don't know any specifics, but you DO know it's the active window ?

Good point, but it doesn't require any advance modes to do that. All the AutoIt functions will take an empty string for the title to match current active:
; Get title of current active window
$sString = WinGetTitle("")

; Send ENTER to current active window 
ControlSend("", "", "", "{ENTER}")

; Just Send() would do the same
Send("{ENTER}")

:)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

@PsaltyDS

Thanks for reminding me - must have gotton too enthousiastic

about Advanced Windows Descriptions :)

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  
Followers 0