Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 05/05/2025 in all areas

  1. MattyD

    WinRT Object Libraries

    Hey Gianni, quick update, it looks like the native "Windows.UI.Xaml.Controls.Webview" class is not supported within Xaml islands - but we *might* be able to drop in the external "Microsoft.UI.Xaml.Controls.WebView2" control. This is part of WinUI2 I believe. Its a bit of a rabbit hole - there's WinUI2 and WinUI3, which seems to be quite different. As I understand it, WinUI3 is still being developed, but its supposed to provide controls for both Win32 and UAP apps. So that might negate the need for islands, and could be the better option in the long run I guess. (albeit we'll likely need dependencies or a runtime etc.)... Either way I'll throw a bit of time at this, it'll be interesting to see what we can tap into.
    3 points
  2. Until now is the best solution, thanks. I find Teams icon by color and then take some offset where I expect to see circle with status and read pixel color !
    2 points
  3. @ioa747 Nice work on getting rid of excessive code, I did not know about the Ternary code, that removes so much garbage on my simple binary results. Thanks for you input and thanks for bring the missing 25th field..
    1 point
  4. since in reality you don't use the information of the tray icons, (I used it in the above example, so I just took the Search area) you can proceed in this way Local $aSearchPos[4] = [@DesktopWidth * 0.7, @DesktopHeight - 40, @DesktopWidth, @DesktopHeight] ConsoleWrite($aSearchPos[0] & "," & $aSearchPos[1] & "," & $aSearchPos[2] & "," & $aSearchPos[3] & @CRLF) ; Find a blue pixel from the autoit icon Local $aCoord = PixelSearch($aSearchPos[0], $aSearchPos[1], $aSearchPos[2], $aSearchPos[3], 0x5D83AC) If Not @error Then ConsoleWrite("X and Y are: " & $aCoord[0] & "," & $aCoord[1] & @CRLF) MouseMove($aCoord[0], $aCoord[1], 20) ; * <-- for debugging purposes only EndIf Sleep(3000) Console output: 1344,1040,1920,1080 X and Y are: 1441,1054
    1 point
×
×
  • Create New...