Search found 1352 matches

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: 1135

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: 549

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: 996

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: 996

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: 1346

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: 1346

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
by Dorian (MJT support)
Mon Jan 22, 2024 10:57 am
Forum: Technical / Scripting
Topic: Marcus
Replies: 6
Views: 1346

Re: Marcus

It took me quite a while to spot this, as it's an easy mistake to make. This: If>WSI_TIMEOUT=FALSE Should be this : If>WSI_TIMEDOUT=FALSE TIME D OUT, not TIMEOUT WaitScreenImage : The system variable WSI_TIMEOUT can be used to set the number of seconds after which this command should timeout. If set...
by Dorian (MJT support)
Mon Jan 22, 2024 10:29 am
Forum: General Discussion
Topic: Unable to Search Website
Replies: 4
Views: 1374

Re: Unable to Search Website

Site search has been fixed. :)
by Dorian (MJT support)
Fri Jan 19, 2024 2:17 pm
Forum: General Discussion
Topic: Unable to Search Website
Replies: 4
Views: 1374

Re: Unable to Search Website

The forum search is the little magnifying glass just below your username on the top right, or the option within Quicklinks as JRL mentioned, which both link through to the page Grovkillen mentioned. The search box in the top-right corner is supposed to search the entire MJT site - it used to, and th...
by Dorian (MJT support)
Tue Jan 16, 2024 12:37 pm
Forum: Enhancement Suggestions
Topic: [added 15.0.23] Run command, capture STDOUT
Replies: 29
Views: 74471

Re: [added 15.0.23] Run command, capture STDOUT

Have passed this on to dev.
by Dorian (MJT support)
Thu Jan 11, 2024 10:58 am
Forum: Technical / Scripting
Topic: chromefindelements returning array of hexadecimal instead of links
Replies: 7
Views: 2487

Re: chromefindelements returning array of hexadecimal instead of links

Re "submit". Submit submits a form. For buttons, use click.
by Dorian (MJT support)
Thu Jan 11, 2024 10:38 am
Forum: Technical / Scripting
Topic: chromefindelements returning array of hexadecimal instead of links
Replies: 7
Views: 2487

Re: chromefindelements returning array of hexadecimal instead of links

I can't seem to replicate this at all. I've tried three different methods including yours, and they all successfully click the link. At the moment I am at a loss as to what could be causing you the problem, so I will consult Marcus. In the meantime, it may be worth checking your ChromeDriver version...
by Dorian (MJT support)
Wed Jan 10, 2024 10:57 am
Forum: Technical / Scripting
Topic: chromefindelements returning array of hexadecimal instead of links
Replies: 7
Views: 2487

Re: chromefindelements returning array of hexadecimal instead of links

Are you able to share the HTML for the specific link you're wishing to click please?

What is the value of arrElementID_count ?
by Dorian (MJT support)
Tue Jan 09, 2024 9:43 pm
Forum: Technical / Scripting
Topic: chromefindelements returning array of hexadecimal instead of links
Replies: 7
Views: 2487

Re: chromefindelements returning array of hexadecimal instead of links

ChromeFindElements always returns a list of element IDs like that. It's the subsequent commands (ChromeGetElementData, ChromeSetElementValue, ChromeElementAction) that extracts them. If you look at ChromeFindElements you'll see you have a variety of methods available. One of these is "partial link t...
by Dorian (MJT support)
Fri Dec 29, 2023 11:51 pm
Forum: Technical / Scripting
Topic: Macro Scheduler support for current versions of Python?
Replies: 1
Views: 1514

Re: Macro Scheduler support for current versions of Python?

Version 14.2 03/11/2014
- Added: PyExec - execute Python code - requires Python DLL installed (link in help)

Version 14.5.5 15/10/2019
Upgraded Python engine to Python 3.7.4 with ability to run Python 2.7 (PYTHON_DLL variable)

You can try a higher version DLL but we do not
support it.
cron
Sign up to our newsletter for free automation tips, tricks & discounts