Search found 1412 matches

by Dorian (MJT support)
Wed Mar 12, 2025 2:36 pm
Forum: Technical / Scripting
Topic: Send variable stuck
Replies: 1
Views: 4069

Re: Send variable stuck

This is most likely timing. Maybe slow down the sendkey speed (adjust timings as required)... //Wait 100 milliseconds between keystrokes let>sk_delay=100 Send>num Or put num into the clipboard and paste it instead of sending (good for long text strings) Putclipboard>num wait>0.1 press ctrl wait>0.1 ...
by Dorian (MJT support)
Fri Mar 07, 2025 2:28 pm
Forum: General Discussion
Topic: Paste text from clipboard
Replies: 9
Views: 17360

Re: Paste text from clipboard

Yes, you have a few options. Probably the first one or last one will suit you : //Method 1. Check to see if the clipboard = "result". //If it does, retry Label>Retry press CTRL send>c Release CTRL GetClipBoard>result If>result={"result"},Retry Wait>0.5 Send>result //Method 2. Check to see if somethi...
by Dorian (MJT support)
Wed Feb 19, 2025 10:39 am
Forum: Technical / Scripting
Topic: Macros Gone
Replies: 7
Views: 7982

Re: Macros Gone

PLEASE fix this issue! I don't know of any other software in the world that loses its setup so often. I don't know but if your PC is crashing so suddenly like that then any files being opened/closed/updated at the exact same time of the crash are very likely to get corrupted and there may well be o...
by Dorian (MJT support)
Mon Feb 17, 2025 6:05 pm
Forum: Technical / Scripting
Topic: OCRFile input file
Replies: 1
Views: 400

Re: OCRFile input file

Does OCRFile require a bitmap file or can it use JPEGs? I'm guessing you haven't tried it as you'd have experienced an error. The answer is that OCRImage can't use JPEGS. If it requires BMP can Macroscheduler convert JPEG to BMP? You can do that with Macro Scheduler and ImageMagick . Here's an exam...
by Dorian (MJT support)
Mon Feb 10, 2025 3:51 pm
Forum: General Discussion
Topic: The Forum Web Page has Changed
Replies: 3
Views: 2188

Re: The Forum Web Page has Changed

Fixed! We hadn't changed anything but the CSS was now causing that to be overlapped by something else. Marcus has jumped on it and fixed it.
by Dorian (MJT support)
Mon Feb 10, 2025 3:15 pm
Forum: General Discussion
Topic: The Forum Web Page has Changed
Replies: 3
Views: 2188

Re: The Forum Web Page has Changed

That's odd. I'm not aware of any changes we've specifically made, but don't see a log out button either. I'm sure it used to be there. I'll mention it to Marcus and see if we can unravel the mystery.
by Dorian (MJT support)
Mon Feb 10, 2025 2:54 pm
Forum: General Discussion
Topic: Macro Scheduler 15.0.25 released
Replies: 18
Views: 18492

Re: Macro Scheduler 15.0.25 released

I tend to use C:\000 so it's easy to navigate to.
by Dorian (MJT support)
Sun Feb 09, 2025 8:36 pm
Forum: General Discussion
Topic: Macro Scheduler 15.0.25 released
Replies: 18
Views: 18492

Re: Macro Scheduler 15.0.25 released

I suggest a different location
by Dorian (MJT support)
Sun Feb 09, 2025 5:51 pm
Forum: General Discussion
Topic: Macro Scheduler 15.0.25 released
Replies: 18
Views: 18492

Re: Macro Scheduler 15.0.25 released

I just tested logging for a compiled script in 15.0.28 and all worked as expected - as long as i don't have the "Disable Logging" checkbox enabled : // COMPILE_OPTS|D:\0\aaa.exe||CONSOLE=0|INCLUDES=1|/LOGFILE=D:\0\mylog.txt|RUNTIMES=1|BMPS=1 screencapture>0,0,2000,2000,%script_dir%\testbmp.bmp scree...
by Dorian (MJT support)
Sun Feb 09, 2025 5:46 pm
Forum: Technical / Scripting
Topic: Screen Capture format and save alpha channel
Replies: 3
Views: 759

Re: Screen Capture format and save alpha channel

I think a JPG is a compressed file by nature, so yes.
by Dorian (MJT support)
Sat Feb 08, 2025 5:02 pm
Forum: Technical / Scripting
Topic: Screen Capture format and save alpha channel
Replies: 3
Views: 759

Re: Screen Capture format and save alpha channel

There is no way to change that, and I can't specifically support v11 as it has been out of support for quite some time because it's 15 years old. However, ScreenCapture has been able to save JPG files since v10 and PNGs since v14, so it's probably worth trying to save as a .jpg. Captures a portion o...
by Dorian (MJT support)
Sat Feb 08, 2025 10:36 am
Forum: Technical / Scripting
Topic: Search or Find Files
Replies: 2
Views: 1046

Re: Search or Find Files

It is possible to do that with GetFileList, but don't forget it's not recursive. There are examples in this forum for making it recursive though, so you should be able to adapt the example below to do that.

This example finds a file named "fish.txt"

Code: Select all

GetFileList>c:\0\*fis*.*,files
by Dorian (MJT support)
Thu Jan 30, 2025 5:41 pm
Forum: Beginners
Topic: Help with adding/subtracting numbers
Replies: 1
Views: 6475

Re: Help with adding/subtracting numbers

As a company we don't support circumnavigating anti-automation measures. So while there may be someone here who can help you, I apologize that I'm not able to be my usually helpful self on this occasion. :)
by Dorian (MJT support)
Thu Jan 23, 2025 10:57 pm
Forum: General Discussion
Topic: Watchlist empty
Replies: 1
Views: 869

Re: Watchlist empty

This is by design. The watchlist will be empty when you Run, but not when you Step or Trace. You can insert a breakpoint so that the script is paused during running, and then you can view the watchlist.

https://www.mjtnet.com/manuals/b/v15/to ... pic290.htm
by Dorian (MJT support)
Thu Jan 23, 2025 10:50 pm
Forum: Technical / Scripting
Topic: Need to capture iframe SRC from html
Replies: 2
Views: 958

Re: Need to capture iframe SRC from html

Have you tried this.. ChromeFindElements>session_id,xpath,//[@id='root']/div/div[2]/div[2]/div/div[2]/iframe,arrElementID Or to just get all the iframes, this.. ChromeFindElements>session_id,tag name,iframe,arrElementID Followed by this (of course _1 will just get the first one).. ChromeGetElementDa...
Sign up to our newsletter for free automation tips, tricks & discounts