|
Post by kalambanyonja on Aug 27, 2021 20:17:06 GMT
I've already used this app long time ago, but only using it's basic function (Mouse record)
then I'm trying to use the condition list for the first time, and I never got it worked even once.
1 | IF | DETECT IMAGE | image path H:\Test\1.bmp::match quick::move mouse yes | IMAGE FOUND | CONTINUE
2 | RUN | ACTION MOUSE CLICK | Left click at 1051 420 1 times with 0 ms delay
3 | IF | DETECT IMAGE | image path H:\Test\2.bmp::match quick::move mouse yes | IMAGE FOUND | CONTINUE
4 | RUN ACTION | MOUSE CLICK | Left click at 1009 314 1 times with 0 ms delay It never get the second image, I don't know if the image wasn't recognized since the image I used was a screenshot from web, any help?
Detect image option: match quick, full screen
Also based on other thread about detect image, It also doesn't contain transparent image.
Is it better to use pixel instead of image?
Update: Found out that file pathing is messed up by onedrive (instead of normal file pathing, it also add "/onedrive" before the file location), but didn't know if that really the one causing the problem.
|
|
|
Post by philranger on Aug 28, 2021 13:56:34 GMT
Hello,
Continue will happen only when your 1st image is found. if not found, it will never check for the next one. Is this what you want?
Here's an example from one of my macros that check multiple conditions, hoping it cam help!
* | If the copied word doesn't match the list, delete the full line
1 | X | X | 50 | Keypress Ctrl+ | home
2 | X | X | 50 | Keypress Down
* | NextOne
3 | X | X | 50 | Keypress Ctrl+Shift+ | right
4 | RUN ACTION | DEFINE STRING VARIABLE | %CLIPBOARD%::NoMore
5 | X | X | 50 | Keypress Ctrl+ | c
6 | IF | CLIPBOARD | VALUE | TEXT IS | Unit | GOTO MACRO LINE | Unit
7 | IF | CLIPBOARD | VALUE | TEXT IS | Section | GOTO MACRO LINE | Unit
8 | IF | CLIPBOARD | VALUE | TEXT IS | Ex | GOTO MACRO LINE | Exercisex-x
9 | IF | CLIPBOARD | VALUE | TEXT IS | Exercise | GOTO MACRO LINE | Exercisex
10 | IF | CLIPBOARD | VALUE | TEXT IS | Job | GOTO MACRO LINE | JobSheet
11 | IF | CLIPBOARD | VALUE | TEXT IS | Work | GOTO MACRO LINE | JobSheet
12 | IF | CLIPBOARD | VALUE | TEXT IS | Appendix | GOTO MACRO LINE | Resume
13 | IF | CLIPBOARD | VALUE | TEXT IS | NoMore | GOTO MACRO LINE | NoMore
* | Delete this TOC line
14 | X | X | 50 | Keypress Home
15 | X | X | 50 | Keypress Shift+ | DOWN
16 | X | X | 50 | Keypress delete
17 | RUN ACTION | GOTO MACRO LINE | NextONE
* | Unit
18 | X | X | 50 | Keypress Ctrl+Shift+ | right
19 | X | X | 50 | Keypress Shift+ | Right
20 | X | X | 50 | Keypress Del
21 | RUN ACTION | GOTO MACRO LINE | Resume
* | Exercisex
22 | X | X | 50 | Keypress Ctrl+Shift+ | right
23 | X | X | 50 | Keypress Shift+ | Right
24 | X | X | 50 | Keypress Del
25 | RUN ACTION | GOTO MACRO LINE | Resume
* | Exercisex-x
26 | X | X | 50 | Keypress Ctrl+Shift+ | right
27 | X | X | 50 | Keypress Ctrl+Shift+ | right
28 | X | X | 50 | Keypress Ctrl+Shift+ | right
29 | X | X | 50 | Keypress Ctrl+Shift+ | right
30 | X | X | 50 | Keypress Shift+ | Right
31 | X | X | 50 | Keypress Del
32 | RUN ACTION | GOTO MACRO LINE | Resume
* | JobSheet
33 | X | X | 50 | Keypress Ctrl+Shift+ | right
34 | X | X | 50 | Keypress Ctrl+Shift+ | right
35 | X | X | 50 | Keypress Shift+ | Right
36 | X | X | 50 | Keypress Del
37 | RUN ACTION | GOTO MACRO LINE | Resume
* | Resume
38 | X | X | 50 | Keypress End
39 | X | X | 50 | Keypress Ctrl+Shift+ | left
40 | X | X | 50 | Keypress Shift+ | Left
41 | X | X | 50 | Keypress Del
42 | X | X | 50 | Keypress down
43 | X | X | 50 | Keypress home
44 | RUN ACTION | GOTO MACRO LINE | NextOne
* | NoMore
45 | X | X | 100 | Keypress Ctrl+ | h
46 | X | X | 100 | Keypress \t
47 | X | X | 100 | Keypress tab
48 | X | X | 100 | Keypress space
49 | X | X | 100 | Keypress Alt+ | x
50 | X | X | 100 | Keypress Alt+ | a
51 | X | X | 100 | Keypress escape
52 | X | X | 100 | Keypress Ctrl+ | end
53 | X | X | 100 | Keypress backspace
|
|
|
Post by kalambanyonja on Aug 28, 2021 14:13:11 GMT
Thanks for the reply, MMM was able detect the first image and execute action, but the second image is not recognisable whatsoever. I tried to use other file type, using simpler image and but it still stuck after the first image was found
|
|
|
Post by Steve on Aug 29, 2021 21:16:08 GMT
Hi kalambanyonjaWhat is the difference between 1.bmp and 2.bmp? If MMM can find the first image when its presented on the screen is there a reason why you think the second image is not found on the screen? Have a look at this post minimousemacro.proboards.com/thread/468/detect-image-issues. It has a list of reasons why an image may not be detected: 1. The image isn't found on the screen 2. The image has transparency 3. The image file is write protected and can't be loaded (however MMM spews out some errors to the MMM event log when this happens) 4. The image is not a bitmap 5. The image has been presented to the screen by an image viewer that changes the bitmap pixel layout slightly Do any of these sound like it could be the reason?
|
|