Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

2
Need help with an infinite pixel search and repeating keypress macro (WILLING TO PAY!)
Post Flair (click to view more posts with a particular flair)
Post Body

Hi all,

I've been going at this for weeks now and I can't get any of this right. This is for a video game. I need an infinite macro that when I press F1, it will start the macro and when I press F2 it will stop the macro. I need this macro to infinitely repeat loops in order. The whole macro will have something like 10 loops but honestly if I could just get the first two right, I think I can figure out the rest on my own. The first loop needs to be, when it detect a pixel at the location, it will infinitely keep pressing the 5 button until the pixel is gone. The 2nd loops needs to be when the location is missing a pixel, it will infinitely repeat the loop until the pixel is back up. I can figure out the rest of the loops from there I think. This code does not work but this is ultimately my best understanding of what I am looking for. Also, I've read the help but I can't get the F1 to start the macro and F2 to end the macro to work at all so I just left that out of this entirely but I definitely need help on that part as well. Like I said, I'm willing to pay. Here is the code I have so far: Thanks in advance

; This script was created using Pulover's Macro Creator

; www.macrocreator.com

#NoEnv

SetWorkingDir %A_ScriptDir%

CoordMode, Mouse, Window

SendMode Input

#SingleInstance Force

SetTitleMatchMode 2

#WinActivateForce

SetControlDelay 1

SetWinDelay 0

SetKeyDelay 0

SetMouseDelay -1

SetBatchLines -1

F1::

Macro2:

Loop

{

CoordMode, Pixel, Window

PixelSearch, FoundX, FoundY, 151, 143, 170, 178, 0x7E3347, 5, Fast RGB

If ErrorLevel

Break

}

Until ErrorLevel

If (ErrorLevel = 0)

{

Send, {5}

Sleep, 10

}

Loop

{

CoordMode, Pixel, Window

PixelSearch, FoundX, FoundY, 153, 141, 168, 178, 0x6B2839, 0, Fast RGB

If ErrorLevel = 0

Break

}

Until ErrorLevel = 0

If (ErrorLevel)

{

Send, {6}

Sleep, 10

}

Return

Author
Account Strength
90%
Account Age
7 years
Verified Email
Yes
Verified Flair
No
Total Karma
541
Link Karma
52
Comment Karma
473
Profile updated: 4 days ago
Posts updated: 2 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
2 years ago