Search found 1346 matches

by Dorian (MJT support)
Fri Mar 08, 2024 1:57 pm
Forum: Technical / Scripting
Topic: GetDialogProperty not working for HTML
Replies: 2
Views: 236

Re: GetDialogProperty not working for HTML

Passed to dev, confirmed as bug, fixed in dev.
by Dorian (MJT support)
Thu Mar 07, 2024 9:55 am
Forum: Technical / Scripting
Topic: Login to webiste send me screenshot in gmail
Replies: 3
Views: 185

Re: Login to webiste send me screenshot in gmail

I'm wondering if you read through the entire thread I linked to. If you click the link to creating an app password in that thread it contains an explanation and instructions for app passwords. There wasn't instructions to add 2FA as that's a Google thing and not a Macro Scheduler thing, but I have j...
by Dorian (MJT support)
Thu Mar 07, 2024 9:48 am
Forum: Technical / Scripting
Topic: SMTPSendMail with Gmail (SOLVED) - enable "Less Secure Apps"
Replies: 6
Views: 16459

Re: SMTPSendMail with Gmail (SOLVED) - enable "Less Secure Apps"

Phil Pendlebury wrote:
Mon May 29, 2023 11:41 am
OK needed to enable 2FA and now it works thank you.
Just adding this for the sake of completion.

How to enable 2FA
by Dorian (MJT support)
Wed Mar 06, 2024 8:37 pm
Forum: Technical / Scripting
Topic: CompareBitmap or WaitRectChanged
Replies: 1
Views: 341

Re: CompareBitmap or WaitRectChanged

There isn't, specifically with those commands, but you could use a combination of GetRectCheckSum and WaitRectChanged. My approach would probably be to split the target area into a grid of squares or rectangles, and perform an initial scan with GetRectCheckSum. Then use WaitRectChanged on the target...
by Dorian (MJT support)
Wed Mar 06, 2024 8:34 pm
Forum: Technical / Scripting
Topic: Login to webiste send me screenshot in gmail
Replies: 3
Views: 185

Re: Login to webiste send me screenshot in gmail

Re sending via Gmail, this link will help.

Make sure to read the entire thread, as you'll need to enable 2FA and then create an app password.
by Dorian (MJT support)
Thu Feb 22, 2024 2:25 pm
Forum: Scripts and Tips
Topic: Scaling dialog based on TextHeight
Replies: 6
Views: 26622

Re: Scaling dialog based on TextHeight

I have passed this on to dev.
by Dorian (MJT support)
Mon Feb 19, 2024 11:55 am
Forum: Technical / Scripting
Topic: File Format Conversion and compression through window command.
Replies: 5
Views: 466

Re: File Format Conversion and compression through window command.

I'm no expert on ImageMagick but managed to cobble this together, which will take Untitled.png and create Untitled.jpeg. I installed ImageMagick first. let>FilePath=C:\Path\To\Images let>filename=Untitled.png let>filenameout=Untitled.jpeg let>IMPath=C:\Program Files\ImageMagick-7.1.1-Q16-HDRI\magick...
by Dorian (MJT support)
Mon Feb 19, 2024 8:45 am
Forum: Technical / Scripting
Topic: File Format Conversion and compression through window command.
Replies: 5
Views: 466

Re: File Format Conversion and compression through window command.

I'd investigate using ImageMagick via the command line with RunProgram.

I can't give specific ImageMagick examples to do this, but I'm fairly sure it would be able to do what you need.
by Dorian (MJT support)
Wed Feb 14, 2024 10:19 am
Forum: General Discussion
Topic: OCR Acuracy
Replies: 1
Views: 299

Re: OCR Acuracy

The higher the number you use, the more accurate it would be. But it would also use more resources. It is also dependent on the font/colour/background. OCR_SCALEFACTOR 2 is the default. I generally see people reporting a good success rate with 4. Let>OCR_SCALEFACTOR=4 I suggest starting with 3, then...
by Dorian (MJT support)
Thu Feb 01, 2024 11:00 am
Forum: General Discussion
Topic: SCREENCAPTURE and number file progressive
Replies: 5
Views: 649

Re: SCREENCAPTURE and number file progressive

It was added to v14.2 in 2014 and should be available in Lite/Std/Pro

Version 14.2 03/11/2014
- Added: Format function to format numbers and strings
by Dorian (MJT support)
Wed Jan 31, 2024 11:43 pm
Forum: General Discussion
Topic: SCREENCAPTURE and number file progressive
Replies: 5
Views: 649

Re: SCREENCAPTURE and number file progressive

Format will help you here. You could do this : Let>cnc=1 Format>%.3d,cnc,cncformatted Let>cnr=1 Format>%.3d,cnr,cnrformatted ScreenCapture>20,20,3200,1350,Z:\LAVORI\MAPPE\HALTA\ZONA_%cnrformatted%_%cncformatted%.bmp Or even just this : Let>cnc=1 Format>%.3d,cnc,cnc Let>cnr=1 Format>%.3d,cnr,cnr Scr...
by Dorian (MJT support)
Thu Jan 25, 2024 8:20 am
Forum: Technical / Scripting
Topic: Marcus
Replies: 6
Views: 1051

Re: Marcus

Your most recent example uses a tolerance of 0 whereas the prior one used 0.7. This could account for the false positive with NumFound. FindImagePosition Tolerence should be given a value between 0 and 1 where 1 is a precise match and 0 is the least precise. A value of 0.7 is recommended and should ...
by Dorian (MJT support)
Thu Jan 25, 2024 12:23 am
Forum: Technical / Scripting
Topic: Marcus
Replies: 6
Views: 1051

Re: Marcus

I recommend turning on logging in the logging tab of the editor so you can see exactly what's happening.

It's also worth learning how to use the debugger : https://help.mjtnet.com/article/42-usin ... t-creation
Sign up to our newsletter for free automation tips, tricks & discounts