MrTP Posted June 5, 2022 Share Posted June 5, 2022 Func _MarkMatch($Coordinates, $iColor = 0x0000FF) Local $start_x = $Coordinates[0], $start_y = $Coordinates[1], $iWidth = $Coordinates[2], $iHeight = $Coordinates[3] Local $hDC = _WinAPI_GetWindowDC(0) ; DC of entire screen (desktop) Local $tRect = DllStructCreate($tagRECT) DllStructSetData($tRect, 1, $start_x) DllStructSetData($tRect, 2, $start_y) DllStructSetData($tRect, 3, $iWidth) DllStructSetData($tRect, 4, $iHeight) Local $hBrush = _WinAPI_CreateSolidBrush($iColor) _WinAPI_FrameRect($hDC, DllStructGetPtr($tRect), $hBrush) _WinAPI_DeleteObject($hBrush) _WinAPI_ReleaseDC(0, $hDC) EndFunc ;==>_MarkMatch Link to comment Share on other sites More sharing options...
Solution MrTP Posted June 5, 2022 Author Solution Share Posted June 5, 2022 i can do it Func _MarkMatch($Handle,$Coordinates, $iColor = 0x0000FF) Local $gameHD = $Handle Local $start_x = $Coordinates[0], $start_y = $Coordinates[1], $iWidth = $Coordinates[2], $iHeight = $Coordinates[3] Local $hDC = _WinAPI_GetWindowDC($gameHD) ; DC of entire screen (desktop) Local $tRect = DllStructCreate($tagRECT) DllStructSetData($tRect, 1, $start_x) DllStructSetData($tRect, 2, $start_y) DllStructSetData($tRect, 3, $iWidth) DllStructSetData($tRect, 4, $iHeight) Local $hBrush = _WinAPI_CreateSolidBrush($iColor) _WinAPI_FrameRect($hDC, DllStructGetPtr($tRect), $hBrush) _WinAPI_DeleteObject($hBrush) _WinAPI_ReleaseDC(0, $hDC) EndFunc ;==>_MarkMatch Link to comment Share on other sites More sharing options...
Somerset Posted June 5, 2022 Share Posted June 5, 2022 So what is the name of the game? Link to comment Share on other sites More sharing options...
MrTP Posted June 7, 2022 Author Share Posted June 7, 2022 Local $gameHD = WinGetHandle("[CLASS:Qt5QWindowIcon]") Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now