Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Loop through list of window/window handles?

$
0
0

Im trying to get a list of windows that are open along with there handles.

 

Then I wanna search through the list for specific text contained in the $olos array and then if found...(well the if statement will take care of that).

 

 

AutoIt         
#include-once #include <WinAPI.au3> #include <Array.au3> #include <.\backup_100\Library\Error_log.au3> Func ExceptionWindow()     $aWnd = _WinAPI_EnumWindowsTop()     ;_ArrayDisplay($aWnd)     Local $contents = 15     Local $olos[$contents] = ["Exception", "EExternal", "EOutOfMemory", "EOutOfResources", "EAccessViolation" &  _         "EIntError", "EMathError", "EPrivilege", "EStackOverflow", "EInvalidArgument", "EInvalidOp", "EOverflow" &  _         "EUnderflow", "EZeroDivide", "EDivByZero"]     $gInteractiveLog = 0     ACRAOpenLog("ERRORs.log", 2)     If ( $aWnd AND WinGetText($olos)) Then         Send("{CTRLDOWN}c{CTRLUP}")         Local $olo = ClipGet()         ACRAOutputerror($olo)         Send("{ALTDOWN}{F4}{ALTUP}")         Return 1     EndIf     ACRACloselog() EndFunc Func Test_ExceptionWindow()     Return ExceptionWindow() EndFunc Test_ExceptionWindow()    

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>