joe
Full Member
Posts: 46
|
Post by joe on Aug 9, 2022 2:28:57 GMT
* | Open Free Bitcoin Cash * | START 1 | RUN ACTION | WAIT SECONDS | 10 2 | IF | DETECT IMAGE | image path C:\Users\josep\Desktop\MiniMouseMacros\Open Free Bitcoin Cash.bmp::at 1608 169 69 52::match quick::move mouse yes | IMAGE FOUND | THEN 3 | RUN ACTION | MOUSE CLICK | Left click at %MOUSE_X% %MOUSE_Y% 1 times with 77 ms delay 4 | RUN ACTION | GOTO MACRO LINE | FINISH 5 | IF | ELSE 6 | RUN ACTION | GOTO MACRO LINE | START 7 | IF | END IF * | FINISH In the above code I am trying to create a macro that looks for an image called Free Bitcoin Cash and then clicks the image. When I run the macro it seems to stop when it gets to the detect image line. Doc1.docx (889.32 KB)
|
|
joe
Full Member
Posts: 46
|
Post by joe on Aug 9, 2022 2:31:10 GMT
The document that I attached is a screen shot of my macro getting stuck on the detect image line.
|
|
joe
Full Member
Posts: 46
|
Post by joe on Aug 9, 2022 2:33:14 GMT
My macro is probably getting stuck on the detect image line because it can't locate the image. But the image is there. What am I doing wrong?
|
|
|
Post by Steve on Aug 10, 2022 22:38:38 GMT
|
|
joe
Full Member
Posts: 46
|
Post by joe on Aug 16, 2022 3:47:42 GMT
Thanks Steve! After I changed my screen resolution to 100% and created my image using MMM I was able to execute the below macro successfully. * | START 1 | IF | DETECT IMAGE | image path C:\Users\josep\Desktop\MiniMouseMacros\FBC.bmp::at 1543 100 192 212::match quick::move mouse yes | IMAGE FOUND | THEN 2 | RUN ACTION | MOUSE CLICK | Left click at %MOUSE_X% %MOUSE_Y% 1 times with 0 ms delay 3 | RUN ACTION | GOTO MACRO LINE | FINISH 4 | IF | ELSE 5 | RUN ACTION | GOTO MACRO LINE | START 6 | IF | END IF * | FINISH However, I was unable to duplicate my success with a similar image in a different part of the screen. When I used MMM to save the image and give it a range the image that was created was unusual and when I hit the test button nothing would happen. The image that I created with MMM is litecoin giveaway start button. The image that I was trying to create with MMM should look more like 1. litecoin giveaway start button.bmp (11.43 KB) 1.bmp (92.86 KB) I can't seem to attach the images correctly. But pitchninja was able to so. My litecoin giveaway start button image looked a little like the link below from one of pitchninja's post. minimousemacro.proboards.com/attachment/download/69
|
|
|
Post by philranger on Aug 16, 2022 11:00:53 GMT
Hello,
Many software are made especially to avoid automation. Their menus and buttons will slightly change every time. You just need a few pixels that are ever so slightly differently colored or offset to do the trick. Maybe this is such a case?
|
|