I do not know why the script that I made today suddenly behave strangely. During the command "WaitScreenImage",my mouse pointer move & click randomly.
Here is my script:
Repeat>tillComplete
let>tillComplete=1
WaitScreenImage>% BMP_DIR% \ image_2.bmp, 0.7, CCOEFF
FindImagePos>% BMP_DIR% \ image_2.bmp, SCREEN, 0.7,1, XArr, Yarr, NumFound, CCOEFF
If> NumFound> 0
MouseMove> XArr_0, YArr_0
wait> 1
LClick
// at this step, mouse will moving & leftclick randomly
WaitScreenImage>% BMP_DIR% \ image_3.bmp, 0.7, CCOEFF
FindImagePos>% BMP_DIR% \ image_3.bmp, SCREEN, 0.7,1, XArr, Yarr, NumFound, CCOEFF
If> NumFound> 0
let>tillComplete=0
endif
endif
until>tillComplete,1
How to solve this probem ?
Wild mouse moving
Moderators: JRL, Dorian (MJT support)
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Re: Wild mouse moving
Impossible to say. Use the debugger.
Also, are those spaces intentional? Even if you are using the IGNORESPACES directive the spaces in the paths will be a problem.
Also, are those spaces intentional? Even if you are using the IGNORESPACES directive the spaces in the paths will be a problem.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
Re: Wild mouse moving
Finally, I found that the cause of the error is false positive in:
WaitScreenImage>% BMP_DIR% \image_2.bmp, 0.7, CCOEFF
after change into
WaitScreenImage>% BMP_DIR% \image_2.bmp, 50, EXACT
the problem does not happen again.
Just wondering why "WaitScreenImage" give false positive result when try to search this image.

from this screen :
http://i.imgur.com/jM8z7gS.png
WaitScreenImage>% BMP_DIR% \image_2.bmp, 0.7, CCOEFF
after change into
WaitScreenImage>% BMP_DIR% \image_2.bmp, 50, EXACT
the problem does not happen again.
Just wondering why "WaitScreenImage" give false positive result when try to search this image.

from this screen :
http://i.imgur.com/jM8z7gS.png
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Re: Wild mouse moving
Because it's nearly all blue background. Statistically it could match lots of blue area. I would advise that you recapture it, tighter to the center, so you have less of the background.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?