Search found 6868 matches

by Marcus Tettmar
Tue Sep 15, 2020 7:22 am
Forum: Technical / Scripting
Topic: Script to sort csv files - way too hard for my little brain
Replies: 9
Views: 14871

Re: Script to sort csv files - way too hard for my little brain

Yes. Looks like it: https://docs.microsoft.com/en-us/office/vba/api/excel.sortfields.add But it is probably going to be much easier to record this in Excel and then copy over the code, and/or use XLRunCode as then you won't have to translate it to VBScript. Looks like there's another way to sort usi...
by Marcus Tettmar
Wed Sep 09, 2020 5:54 am
Forum: Technical / Scripting
Topic: OCRDLL some Error
Replies: 4
Views: 158

Re: OCRDLL some Error

Sorry you're right. The coordinates are fine.

You don't need to install anything. The tesseract support files are included with Macro Scheduler.
by Marcus Tettmar
Sun Sep 06, 2020 11:22 am
Forum: Beginners
Topic: Passing the ChromeOptions object into the ChromeDriver constructor
Replies: 1
Views: 104

Re: Passing the ChromeOptions object into the ChromeDriver constructor

Let>CHROMEDRIVER_OPTIONS=--start-maxmized, --disable-notifications, --etc

See:
https://www.mjtnet.com/manuals/v15/HTML ... start.html

Requires 15.0.12
by Marcus Tettmar
Sun Sep 06, 2020 11:20 am
Forum: Technical / Scripting
Topic: OCRDLL some Error
Replies: 4
Views: 158

Re: OCRDLL some Error

You're trying to OCR against nothing. Your screen area is 0x0 pixels.

Admittedly the error message should be more graceful, but that might be the issue. You can't scan nothing.
by Marcus Tettmar
Thu Sep 03, 2020 3:09 pm
Forum: Beginners
Topic: Debugger: how to easily simulate Args line of passed parameters?
Replies: 2
Views: 108

Re: Debugger: how to easily simulate Args line of passed parameters?

You can use Assigned: https://www.mjtnet.com/manuals/v15/HTML/assigned.html Assigned>parm,haveParm If>haveParm=FALSE Let>parm=whatever Endif So when run from debug parm and parm is not on the command line it gets set to whatever. Otherwise it's set to whatever was set on the command line. JRL's meth...
by Marcus Tettmar
Wed Sep 02, 2020 7:53 pm
Forum: Technical / Scripting
Topic: ChromeDriver --disable-notifications ?
Replies: 5
Views: 353

Re: ChromeDriver --disable-notifications ?

Macro Scheduler v15.0.12 has just been made available which gives you the ability to set Chrome command line switches in the CHROMEDRIVER_OPTIONS variable, e.g.:

Let>CHROMEDRIVER_OPTIONS=--start-maximized, --disable-notifications
ChromeStart>session_id
by Marcus Tettmar
Wed Sep 02, 2020 7:51 pm
Forum: General Discussion
Topic: Macro Scheduler Message Mouse Resize Failing
Replies: 7
Views: 633

Re: Macro Scheduler Message Mouse Resize Failing

This is fixed in 15.0.12
by Marcus Tettmar
Wed Sep 02, 2020 5:29 pm
Forum: Beginners
Topic: Changing the CSS using MS Script
Replies: 5
Views: 176

Re: Changing the CSS using MS Script

You're just referencing an element by classname and then using the second match.

So the equivalent would be:

ChromeFindElements>session_id,class name,Fx4vi,elements

And then use elements_2

See:
https://www.mjtnet.com/manuals/v15/HTML ... ments.html
by Marcus Tettmar
Mon Aug 31, 2020 2:19 pm
Forum: Beginners
Topic: MS15 Inconsistent use of True TRUE False FALSE
Replies: 2
Views: 169

Re: MS15 Inconsistent use of True TRUE False FALSE

Will make a note of that. Should really be consistent.

These are actually strings as far as MacroScript is concerned so safest thing would be:

If>{Upper(%WPC_RESULT%)="TRUE"}
by Marcus Tettmar
Mon Aug 31, 2020 2:14 pm
Forum: Beginners
Topic: Timer Max Number
Replies: 2
Views: 106

Re: Timer Max Number

2^63-1
by Marcus Tettmar
Fri Aug 28, 2020 7:01 pm
Forum: General Discussion
Topic: Macro Scheduler Message Mouse Resize Failing
Replies: 7
Views: 633

Re: Macro Scheduler Message Mouse Resize Failing

Somewhere along the way it's become non-resizable. This is now fixed in dev.
by Marcus Tettmar
Fri Aug 28, 2020 6:07 pm
Forum: Beginners
Topic: Changing the CSS using MS Script
Replies: 5
Views: 176

Re: Changing the CSS using MS Script

This post shows how to inject and execute javascript in a Chrome session opened with ChromeStart.
by Marcus Tettmar
Mon Aug 17, 2020 4:08 pm
Forum: Scripts and Tips
Topic: Pushover API
Replies: 7
Views: 2199

Re: Pushover API

I didn't necessarily mean the JSON is wrong. I'm saying 400 means 'bad request'. So since I'm not able to see the docs, let's look at some reasons why a request might be 'bad'. If it expects JSON and your JSON is 'correct' and it still says 'bad request' then maybe it thinks you're sending something...
by Marcus Tettmar
Mon Aug 17, 2020 4:02 pm
Forum: Beginners
Topic: Feature to scroll to the last div or last row of a table
Replies: 2
Views: 130

Re: Feature to scroll to the last div or last row of a table

About all I can think of is to inject some javascript which scrolls the element into view using scrollIntoView method:
https://www.w3schools.com/jsref/met_ele ... toview.asp

And here's a function which will execute javascript:
viewtopic.php?f=8&t=10569#p44959
by Marcus Tettmar
Mon Aug 17, 2020 3:58 pm
Forum: Technical / Scripting
Topic: screen Capture compare
Replies: 1
Views: 194

Re: screen Capture compare

What value DO you get returned? Can you share the two bitmaps?
Sign up to our newsletter for free automation tips, tricks & discounts