Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 04/25/2023 in all areas

  1. By setting the form's parent to AutoIt's hidden window, it will not be shown in the taskbar. #include <GUIConstants.au3> Global $ghParentForm = WinGetHandle(AutoItWinGetTitle()) ;Get handle to AutoIt's hidden window Global $frmMain = GUICreate("Example Form (Pres ESC to Close)", 500, 300, -1, -1, -1, -1, $ghParentForm) GUISetState(@SW_SHOW, $frmMain) WinSetOnTop($frmMain, "", 1) Do Until GUIGetMsg() = $GUI_EVENT_CLOSE
    1 point
  2. like this ? Global $position = ColorPosition() ConsoleWrite("$position=" & $position & @CRLF) Sleep(3000) ConsoleWrite("$position=" & ColorPosition() & @CRLF) If $position <> ColorPosition() Then MsgBox(0, "", "The position has changed!") EndIf Func ColorPosition() Local $color = 0x000000 Local $searchArea = PixelSearch(324, 320, 1149, 718, $color, 2) If Not (@error) Then Return $searchArea[0] & ":" & $searchArea[1] Else Return SetError(1, 0, "") EndIf EndFunc ;==>ColorPosition
    1 point
×
×
  • Create New...