Search found 1346 matches

by Dorian (MJT support)
Mon Aug 03, 2020 12:16 pm
Forum: Technical / Scripting
Topic: Cannot recognize the correct image
Replies: 4
Views: 7102

Re: Cannot recognize the correct image

I noticed in your other FindImagePos SRTs you have a tolerance of 50, but this one is 0. Of course with 0 this means a perfect match is required. What happens if you increase your tolerance?
by Dorian (MJT support)
Fri Jul 31, 2020 10:03 am
Forum: Technical / Scripting
Topic: Compiled Scripts with Chromedriver functions are freezing
Replies: 2
Views: 3863

Re: Compiled Scripts with Chromedriver functions are freezing

Using Macro Scheduler 15.0.10 / Chrome 84.0.4147.105 / ChromeDriver 84.0.4147.30 (Win32) I just successfully compiled the "Chrome Example" script which you can find in samples, and everything executed successfully. I attempted to force an issue by removing my ChromeDriver file, but that simply gave...
by Dorian (MJT support)
Fri Jul 31, 2020 8:07 am
Forum: Beginners
Topic: How to get tags with two specific attribute=value in IEGetTagsByAttrib
Replies: 6
Views: 6091

Re: How to get tags with two specific attribute=value in IEGetTagsByAttrib

To be fair to you, that was probably beyond most beginners.

You'll find a lot of regex examples on this forum, plus there's a couple of free regex courses on Udemy, I think.
by Dorian (MJT support)
Thu Jul 30, 2020 4:12 pm
Forum: Beginners
Topic: How to get tags with two specific attribute=value in IEGetTagsByAttrib
Replies: 6
Views: 6091

Re: How to get tags with two specific attribute=value in IEGetTagsByAttrib

I hope I'm understanding correctly, but this will click the three "radio" "value=1" radio buttons. I tested this on a local file, so have used a dummy URL. Hopefully it's enough to get you started. //Create IE and Navigate IECreate>IE[0] IENavigate>IE[0],http://test.com/test.htm,res //Extract tag IE...
by Dorian (MJT support)
Wed Jul 29, 2020 9:48 am
Forum: Technical / Scripting
Topic: Window focus based upon a notification sound
Replies: 15
Views: 13420

Re: Window focus based upon a notification sound

I wrote THIS a few years back. It might be useful or it might not be useful. Hope it helps. That's very clever. Thank you, Dick. That makes me wonder if simply using GetPixelColor on that would work. I hadn't ever noticed the colour changes when it plays a sound. I'm using Win10. I'll check later. ...
by Dorian (MJT support)
Wed Jul 29, 2020 7:57 am
Forum: Technical / Scripting
Topic: Window focus based upon a notification sound
Replies: 15
Views: 13420

Re: Window focus based upon a notification sound

I wrote THIS a few years back. It might be useful or it might not be useful. Hope it helps. That's very clever. Thank you, Dick. That makes me wonder if simply using GetPixelColor on that would work. I hadn't ever noticed the colour changes when it plays a sound. I'm using Win10. I'll check later.
by Dorian (MJT support)
Tue Jul 28, 2020 5:54 pm
Forum: Technical / Scripting
Topic: Window focus based upon a notification sound
Replies: 15
Views: 13420

Re: Window focus based upon a notification sound

How about we take a step back. What if you simply rotated through the windows, focusing each, and looked for the image each time?
by Dorian (MJT support)
Tue Jul 28, 2020 4:03 pm
Forum: Technical / Scripting
Topic: Window focus based upon a notification sound
Replies: 15
Views: 13420

Re: Window focus based upon a notification sound

What about ReadFile, and then just get the length?
by Dorian (MJT support)
Tue Jul 28, 2020 12:40 pm
Forum: Technical / Scripting
Topic: Window focus based upon a notification sound
Replies: 15
Views: 13420

Re: Window focus based upon a notification sound

First of all, follow the instructions here . But use the attached files. You'll need to edit the paths of course. But this works, and will get you started. It's a custom trigger based on the file size changing. Trigger01 Create Ini will create an original an ini file containing the current file size...
by Dorian (MJT support)
Tue Jul 28, 2020 11:32 am
Forum: Technical / Scripting
Topic: Image Recog. - Can't read the image
Replies: 7
Views: 11151

Re: Image Recog. - Can't read the image

Always happy to help. A lot of people miss that. Although it is in the helpfile it is quite easy to miss. To be honest, I missed it too when that feature was introduced. :)
by Dorian (MJT support)
Tue Jul 28, 2020 11:30 am
Forum: Technical / Scripting
Topic: Window focus based upon a notification sound
Replies: 15
Views: 13420

Re: Window focus based upon a notification sound

That sounds like a good option. In the Trigger section I linked above, look for Custom Triggers. I see no reason why you can't make a custom trigger which monitors a file to see if it's updated.
by Dorian (MJT support)
Tue Jul 28, 2020 10:13 am
Forum: Technical / Scripting
Topic: Window focus based upon a notification sound
Replies: 15
Views: 13420

Re: Window focus based upon a notification sound

Is the notification only a sound? Or is there some kind of popup or another kind of visual change in any way?

If it's a notification pop-up, then depending on the popup, maybe. Look at Triggers. The Window Event trigger may be what you need, if it is indeed a window event.
by Dorian (MJT support)
Tue Jul 28, 2020 10:00 am
Forum: Technical / Scripting
Topic: Image Recog. - Can't read the image
Replies: 7
Views: 11151

Re: Image Recog. - Can't read the image

Yes, if you look at the help file for FindImagePos you'll see it says : " Each method has benefits and drawbacks. CCOEFF is more intelligent and more tolerant but is slower and will return only one match. EXACT is faster and can return multiple matches but is precise and therefore less portable and ...
by Dorian (MJT support)
Mon Jul 27, 2020 10:32 am
Forum: Technical / Scripting
Topic: Image Recog. - Can't read the image
Replies: 7
Views: 11151

Re: Image Recog. - Can't read the image

I'm not experiencing any difficulties with Image Recognition using this image. Certainly incorporating the blue band in your needle image is a good idea, as I've found that sometimes a very subtle image can be a challege. Both of these were able to identify the (attached) image when I had the image ...
Sign up to our newsletter for free automation tips, tricks & discounts