Search found 6994 matches

by Marcus Tettmar
Mon Apr 19, 2021 10:00 pm
Forum: Technical / Scripting
Topic: Capture from RegEx Match
Replies: 3
Views: 2746

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

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

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

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

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

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

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

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

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

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

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

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.
by Marcus Tettmar
Mon Mar 15, 2021 1:59 pm
Forum: Enhancement Suggestions
Topic: Add URLEncode as a function :D
Replies: 5
Views: 11668

Re: Add SPACE encoding to HTMLEncode/HTMLDecode

Hi, HTMLEncode/Decode encode and decode HTML, not URLs. %20 is the URL encoding for a space character. + is also sometimes used. But in HTML, space is just space. So these functions are working correctly. They are not for encoding/decoding URLs. Here's a way you can do that: https://www.mjtnet.com/b...
by Marcus Tettmar
Mon Mar 15, 2021 1:51 pm
Forum: Technical / Scripting
Topic: Strange Problem with a file
Replies: 3
Views: 1966

Re: Strange Problem with a file

What happens if you run Macro Scheduler as administrator? Being logged in as Administrator is not enough - Macro Scheduler still runs by default with ordinary user privileges. Exit Macro Scheduler fully (File/Exit) or right click system tray icon and exit. Then right click on Macro Scheduler shortcu...
Sign up to our newsletter for free automation tips, tricks & discounts