Hi Folks. I need some help. 🤕
Probably an OSI Layer 8 problem, but I can't find the solution.
I try to snapshot a dropdown menue in a drawing Software on Screen 2 (Pen Display).
(After that I want to figure out if Checkboxes in the dropdown are checked or not, but that's not relevant, as I fail early.)
It's happening on WIN 10
If I do
; settings
AutoItSetOption ( "MouseCoordMode", 0 )
; activate window
local $hWnd = WinActive( $sCSPWinTitle )
If $hWnd == 0 Then
WinActivate( $sCSPWinTitle )
$hWnd = HOK_ReactToWin( $sCSPWinTitle )
WinSetState($hWnd, "", @SW_MAXIMIZE )
EndIf
; Open Dropdown
MouseClick("Left",$iFiltButtonX,$iFiltButtonY)
; FastFind
FFSnapShot ( )
FFSaveBMP ( "BaseA")
I get a screenshot of Screen 1 saved as BaseA.bmp
I tried this as well
; settings
AutoItSetOption ( "MouseCoordMode", 0 )
; activate window
local $hWnd = WinActive( $sCSPWinTitle )
If $hWnd == 0 Then
WinActivate( $sCSPWinTitle )
$hWnd = HOK_ReactToWin( $sCSPWinTitle )
WinSetState($hWnd, "", @SW_MAXIMIZE )
EndIf
;Difference to solution 1 => set Window Handler for FastFind
FFSetWnd ( $hWnd )
; Open Dropdown
MouseClick("Left",$iFiltButtonX,$iFiltButtonY)
; FastFind
FFSnapShot ( )
FFSaveBMP ( "BaseA")
But this time BaseA.bmp showed the correct screen (the drawing software is full screen on screen 2), but it doesn't show the drop down. Probably it has a different window handle, or the window handle dosn't take care of children.
So back to attempt one: How can I screenshot Screen 2?