rejoice Posted February 5, 2008 Share Posted February 5, 2008 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. Link to comment Share on other sites More sharing options...
PsaltyDS Posted February 5, 2008 Share Posted February 5, 2008 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 Link to comment Share on other sites More sharing options...
whim Posted February 5, 2008 Share Posted February 5, 2008 Or how about trying $handle = WinGetHandle("[ACTIVE]", "") if you don't know any specifics, but you DO know it's the active window ? Link to comment Share on other sites More sharing options...
PsaltyDS Posted February 5, 2008 Share Posted February 5, 2008 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 Link to comment Share on other sites More sharing options...
whim Posted February 5, 2008 Share Posted February 5, 2008 @PsaltyDS Thanks for reminding me - must have gotton too enthousiastic about Advanced Windows Descriptions Link to comment Share on other sites More sharing options...
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