Quantcast
Channel: AutoHotkey Community
Viewing all articles
Browse latest Browse all 579

Pulovers Macro Creator • Re: Pulover's Macro Creator v5.4.1 - The Complete Automation Tool

$
0
0

I’m using PMC since long and doing great with it.
Lately I came to a challenge that I can’t solve.
I need to do a pixel search for 2 items after I need to compare the Y axis values + or - based on that a mouse action to trigger, I mean if the item1 is higher in the Y axis value compared to item 2 the mouse action to trigger and vice versa
If usually we have 4 values (x1, y1, x2, y2) coordinates I want to compare y1 value of both pixels only
Simply the math will be: if (item1 Y1 - item2 Y1= + result) then mouse click if negative mouse click in a different position
Hope someone to give me a hint on how to approach that using Pullover’s not the AHK


Found it and apparently it's easier than I thought! compare variables
Loop,
{
CoordMode, Pixel, Window
PixelSearch, FoundX1, FoundY1, 815, 325, 904, 341, 0xECD5D8, 0, Fast RGB
If ErrorLevel = 0
{
CoordMode, Pixel, Window
PixelSearch, FoundX2, FoundY2, 808, 245, 930, 270, 0xCADCEB, 0, Fast RGB
If ErrorLevel = 0
{
If FoundY1 < FoundY2
{
MsgBox, 0, , mouse click
}
Else
{
}
}
Else
{
}
}

Statistics: Posted by IHAT — 43 minutes ago



Viewing all articles
Browse latest Browse all 579

Trending Articles