|
Post by leiwang on Apr 5, 2017 9:11:30 GMT
The window is defined as ":autoit:class=#32770;", but there are too many applications having windows with class name as "#32770", even the AUT doesn't appear, AUTOIT can find still other windows too. For example, the AUT is the "Notepad", we want to handle the "Save As" dialog, which is a #32770 window; But unfortunately, the Calculator's "About" dialog appears on the desktop and this dialog's class is also #32770. If we define ONLY RS as "class=#32770", the Calculator's "About" dialog will be located if the "Save As" dialog doesn't appear. Apparently, "class=" is not enough to define the window user wants, we need to add more qualifiers: If we want both "Save As" and "About Calculator" dialog, we can add "REGEXPTITLE=" into the RS ":autoit:class=#32770;REGEXPTITLE=Save As|About Calculator" If we want "Save As" or "About Calculator" dialog, we can add "TITLE=" into the RS ":autoit:class=#32770;TITLE=Save As" ":autoit:class=#32770;TITLE=About Calculator" User can also add other qualifiers to define window RS, please refer to AutoIt Recognition String to know more.
|
|
|
Post by spaccandoia on Jul 5, 2022 12:03:28 GMT
I've migrated the project to VS2015 with framework 4.5 but I'm in trouble with the findwindow function IntPtr hBuiltInDialog = WinApiProvider.FindWindow("#32770", ""); on some computer (mine) works well and on some other (customer) it doesn't. web design dubai company It seems that the function finds another 32770 window that is not the Outlook's one, I've tryed to enumerate all the 32770 windows but when the InspectorWrapper_Deactivate function fires up, my 32770 window is not present in the list. A strange behavior occurs, if I put a messagebox in the deactivate function it pops up twice and after the second time the right window gets catched and my custom dialog opens.
|
|