Search found 6996 matches

by Marcus Tettmar
Mon Apr 19, 2021 10:05 pm
Forum: Technical / Scripting
Topic: Bug: All Scheduled Run times reset on system restart
Replies: 2
Views: 2084

Re: Bug: All Scheduled Run times reset on system restart

Hi,

For the highlighted script what was the original start time and repeat interval set to, and what was the stop/reset after time given?
by Marcus Tettmar
Mon Apr 19, 2021 10:02 pm
Forum: Technical / Scripting
Topic: Interface w/Chess Engine
Replies: 1
Views: 1530

Re: Interface w/Chess Engine

I'm afraid we have no experience of this. Not sure if anyone else does? It looks like this engine expects text to be entered into the console? In which case could you do that using simple SendText commands?
by Marcus Tettmar
Mon Apr 19, 2021 10:00 pm
Forum: Technical / Scripting
Topic: Capture from RegEx Match
Replies: 3
Views: 2780

Re: Capture from RegEx Match

This is a very commonly needed pattern so it is also documented here:
https://help.mjtnet.com/article/12-my-most-used-regex

However, will consider adding a link to this from the RegEx manual entry.
by Marcus Tettmar
Mon Apr 19, 2021 9:59 pm
Forum: Technical / Scripting
Topic: chromedriver.exe once and for all
Replies: 29
Views: 21591

Re: chromedriver.exe once and for all

The script is working fine for me.

I note also that the simple 3 line script is also failing. This would seem to suggest an issue with the Chrome setup. which version of Chrome are you running?
by Marcus Tettmar
Mon Apr 19, 2021 1:51 pm
Forum: Enhancement Suggestions
Topic: Get all attributes of an element (ChromeGetElementData>)
Replies: 2
Views: 9691

Re: Get all attributes of an element (ChromeGetElementData>)

You can specify any attribute name: https://www.mjtnet.com/manuals/v15/HTML/chromegetelementdata.html item_type can be one of: text - the inner text of the element value - the value of the element if it has one (e.g. for inputs) attribute/attribute_name - where attribute_name is a valid html attribu...
by Marcus Tettmar
Mon Apr 19, 2021 1:49 pm
Forum: Enhancement Suggestions
Topic: [added 15.0.23] Run command, capture STDOUT
Replies: 29
Views: 72802

Re: Run command, capture STDOUT

Hi,

I have added this to the wish list for investigation.
by Marcus Tettmar
Wed Apr 14, 2021 3:53 pm
Forum: Technical / Scripting
Topic: Python and PIP
Replies: 5
Views: 2964

Re: Python and PIP

I guess you could do that. I would just download the actual libraries and copy in manually. Into the Macro Scheduler python install. And just not use a package manager like PIP.
by Marcus Tettmar
Wed Apr 14, 2021 3:48 pm
Forum: Technical / Scripting
Topic: Browser automation: how to handle pop-up windows?
Replies: 1
Views: 1520

Re: Browser automation: how to handle pop-up windows?

Hi,

See this thread:
viewtopic.php?f=3&t=10716&hilit=switchwindow

You'll find an example with a GetWindowHandles and SwitchWindow subroutine which will allow you to get the window handle of the popup and then switch browsing context to it.
by Marcus Tettmar
Mon Apr 12, 2021 12:28 pm
Forum: Technical / Scripting
Topic: Solving a puzzle
Replies: 23
Views: 16138

Re: Solving a puzzle

Image recognition to find the slider, mouse down, move, mouse up ... ?
by Marcus Tettmar
Mon Apr 12, 2021 12:26 pm
Forum: Technical / Scripting
Topic: Python and PIP
Replies: 5
Views: 2964

Re: Python and PIP

Pip isn't going to install anything into the Macro Scheduler python install. You need to copy the library files/folders manually into the relevant folders in the Macro Scheduler folder.
by Marcus Tettmar
Mon Apr 12, 2021 12:25 pm
Forum: Technical / Scripting
Topic: Capture from RegEx Match
Replies: 3
Views: 2780

Re: Capture from RegEx Match

Hi,

You want to do this:

https://help.mjtnet.com/article/12-my-most-used-regex

I guess you might also need to escape the <, > characters with a \
by Marcus Tettmar
Thu Mar 18, 2021 12:21 pm
Forum: Enhancement Suggestions
Topic: Including Often Used Library Files
Replies: 4
Views: 11547

Re: Including Often Used Library Files

mightycpa wrote:
Wed Mar 17, 2021 1:45 pm
It would be nice to be able to customize the default script that loads in MS when you create a new one from the editor.
You can:
https://www.mjtnet.com/manuals/v15/HTML ... plate.html
https://www.mjtnet.com/blog/2017/01/25/ ... templates/
by Marcus Tettmar
Thu Mar 18, 2021 12:15 pm
Forum: Technical / Scripting
Topic: Launching a script - SOLVED!
Replies: 16
Views: 8705

Re: Launching a script

You cannot 'RUN' a .scp file directly. This has nothing to do with 64 bit. You just can't run .scp files - they are not executable. You can pass them to macro scheduler or use ExecuteFile (which runs the default command associated with the file extension): run>c:\....\msched.exe "c:\path\scriptfile....
by Marcus Tettmar
Thu Mar 18, 2021 12:13 pm
Forum: Enhancement Suggestions
Topic: Synch Folder with Editor Group Macro list
Replies: 1
Views: 9267

Re: Synch Folder with Editor Group Macro list

Just make it a linked group:

https://www.mjtnet.com/manuals/v15/HTML/groups.html

A linked group syncs - any scripts you add to that folder outside of Macro Scheduler will show up in Macro Scheduler.
Sign up to our newsletter for free automation tips, tricks & discounts