Jump to content

Olaf

Members
  • Posts

    2
  • Joined

  • Last visited

Olaf's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. I found a workarround for my problem one post above, by adressing the dropdown as window via its class. If you run into something similar: Open Autoit Info Uncheck "Options"->"Freeze" Copy the class and do soemthing like this Const $sClassWinFilterDD = "[class:742DEA58-ED6B-4402-BC11-20DFC6D08040-6571DDC4-B3AA-45e4-9D35-57C0C1E90AD5]" ;Class of Dropdwon of Filters ; 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 ;The magic to screenshot the Dorpdown Window on Screen 2 $hWnd = WinWaitActive( $sClassWinFilterDD ) FFSetWnd ( $hWnd ) ; Open Dropdown MouseClick("Left",$iFiltButtonX,$iFiltButtonY) ; FastFind FFSnapShot ( ) FFSaveBMP ( "BaseA") However: This is solving my current problem, but I can imagine that there will still be occasions where one needs to capture the second screen. So the orignal quesions remains: How to use the second screen in FFSnapShot () ?
  2. 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?
×
×
  • Create New...