Jump to content

ProZabijaka

Members
  • Posts

    2
  • Joined

  • Last visited

ProZabijaka's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Yes, you are right and from what I read that technically declines my request. Although if I can tell something more it is not for any score, game gave me access to something but I have to go through a lot of "popups" to receive what I actually care for, that's why I wanted to automate that.
  2. Hello everyone! I'm new here so I hope I won't mess anything up. Recently I started making a little script that is searching for a pixel color in defined space and then clicking the spot, there are two cases, with two different colors and I don't know how to write the script so it stops when both colors are missing. Below is my code: #include <MsgBoxConstants.au3> #include <AutoItConstants.au3> ; Odszukuje kwadracika "New" w kolorze fioletowym i naciska go Local $aCoord = PixelSearch(1930, 40, 2560, 1020, 0xCC66FF) ; Odszukuje znaczek telefonu Local $bCoord = PixelSearch(0, 0, 2559, 1059, 0xFFFF99) Local $i = 1 Switch $i Case 1 Do ;If Not @error Then ;Local $aCoord = PixelSearch(1930, 40, 2560, 1020, 0xCC66FF) Local $aCoord = PixelSearch(1930, 40, 2560, 1020, 0xCC66FF) MouseClick($MOUSE_CLICK_PRIMARY, $aCoord[0], $aCoord[1], 1) Sleep(500) Local $cCoord = PixelSearch(1930, 40, 2560, 1020, 0xFAEBFF) MouseClick($MOUSE_CLICK_PRIMARY, $cCoord[0], $cCoord[1], 1) Sleep(500) If @error Then $i = 2 EndIf Until $i = 1 Case 2 Do ;Local $bCoord = PixelSearch(1930, 40, 2560, 1020, 0xFFFF99) Local $bCoord = PixelSearch(0, 0, 2559, 1059, 0xFFFF99) MouseClick($MOUSE_CLICK_PRIMARY, $bCoord[0], $bCoord[1], 1) Sleep(500) Local $dCoord = PixelSearch(2000, 750, 2490, 950, 0xFBFF00) MouseClick($MOUSE_CLICK_PRIMARY, $dCoord[0], $dCoord[1], 1) Sleep(500) Local $fCoord = PixelSearch(2000, 750, 2490, 950, 0xACACAC) MouseClick($MOUSE_CLICK_PRIMARY, $fCoord[0], $fCoord[1], 1) Sleep(500) Local $cCoord = PixelSearch(1930, 40, 2560, 1020, 0xFAEBFF) MouseClick($MOUSE_CLICK_PRIMARY, $cCoord[0], $cCoord[1], 1) Sleep(500) If @error Then $i = 0 EndIf Until $i = 2 ;EndIf EndSwitch I will get rid of the comments when it will start working as I want it. Also I think MsgBoxConstants is not required but is the remain of a Helpfile script :D
×
×
  • Create New...