Jump to content

KillKill

Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by KillKill

  1. Okay I found my solution for Part 1: (Before i started the topic, I had written it in wrong ordner, but now it works.) PixelGetColor($MousePos[0]+3,$MousePos[1]+3) This is my actually script: So, now I need (Part 2) a tolerance value for the Pixel how much its colour can change before the script clicks left mouse button. I think i must do it with Pixelsearch, but i couldnt know how to combine that with this script ... :? PS: I have no idea why parts of my first post are written twice, sorry for that, cant change it anymore.
  2. Hello. I'm new here and I have got a question. I think its very easy for YOU, but i dont know the right script commands. The following script presses the left mouse button when the pixel right under the mouse pointer changes its colour. The whole thing only starts scanning the pixel when it was activated before with the hotkey "e". HotKeySet("{e}", "AwpSchuss") $GegnerErkannt = 0 while 1 WEnd func AwpSchuss() $GegnerErkannt = 0 $MousePos = MouseGetPos() $MouseColor1 = PixelGetColor($MousePos[0],$MousePos[1]) While $GegnerErkannt = 0 Sleep(10) $MouseColor2 = PixelGetColor($MousePos[0],$MousePos[1]) if $MouseColor2 <> $MouseColor1 Then Sleep(10) MouseClick("left") $GegnerErkannt = 1 EndIf WEnd EndFunc Now i won't scan only the pixel under my mousepointer. I want to scan three pixel strings around my pointer (altogether 9 pixels, the middle is the one under the mouspointer and the 8 pixels around.) When this is NOT possible or when this option is too hard to script then i wish that i can move the scanned area 3 pixels to the right and down from the mouse point. I think about something like this: $MousePos = MouseGetPos(3,-3) ;The 3 and -3 stands for the displacement of the scanned pixel by 3 pixel right and down. The starting point ist the cursor. ;THIS IS ONLY an example of what i am actually meaning, its wrong (otherwise i wouldn't ask for the right script command). I want to specify a tolerance before the script says "there is a new pixel-colour in the scanned area" and acts.Hello. I'm new here and I have got a question. I think its very easy for YOU, but i dont know the right script commands. (I cannot open a new topic so I ask here, I hope its okay.) The following script presses the left mouse button when the pixel right under the mouse pointer changes its colour. The whole thing only starts scanning the pixel when it was activated before with the hotkey "e". HotKeySet("{e}", "AwpSchuss") $GegnerErkannt = 0 while 1 WEnd func AwpSchuss() $GegnerErkannt = 0 $MousePos = MouseGetPos() $MouseColor1 = PixelGetColor($MousePos[0],$MousePos[1]) While $GegnerErkannt = 0 Sleep(10) $MouseColor2 = PixelGetColor($MousePos[0],$MousePos[1]) if $MouseColor2 <> $MouseColor1 Then Sleep(10) MouseClick("left") $GegnerErkannt = 1 EndIf WEnd EndFunc Part 1: Now I won't scan only the pixel under my mousepointer. I want to scan three pixel-strings around my pointer (altogether 9 pixels, the middle one is the one under the mouspointer and the 8 pixels around are the other eight ones .) When this is NOT possible or when this option is too hard to script then i wish that i can move the scanned area 3 pixels to the right and down from the mouse point. I think about something like this: $MousePos = MouseGetPos(3,-3) ;The 3 and -3 stands for the displacement of the scanned pixel by 3 pixel right and down. The starting point ist the cursor. ;THIS IS ONLY an example of what i am actually meaning, its wrong (otherwise i wouldn't ask for the right script command). Part 2: Also I want to specify a tolerance value before the script says "there is a new pixel-colour in the scanned area" and acts. Is that possible?
  3. Thank you, this is the only meaningful contribution to my question. I opened a new Topic in General Help and Support. Thanks. I cannot start new topics except here or in General Help and Support, because I'm a new member of your forum. And I thought "General Help" refers only to the programme if it is not running on a computer for example. I had not the intention to spam Sorry!! ??-is not that a bit excessive? Cool, new people are really not welcome here or what did i wrong? The Reply before teached me to move my question. That's okay. But not saying "in fact it's the exact opposite of okay."I'm not exactly clear what means "when basic forum usage eludes you." But I was never deprived of a privilege. I'm new, the privilege are not given to me yet and I dont know to change. So all in all sorry that I missed the topic. That will no longer occur, kay ( and a second time, I apologize for grammar mistakes :b )
  4. Hello. I'm new here and I have got a question. I think its very easy for YOU, but i dont know the right script commands. (I cannot open a new topic so I ask here, I hope its okay.) <Rest of the post removed because the user doesn't deserve help>
×
×
  • Create New...