Search found 1351 matches

by Dorian (MJT support)
Thu Sep 14, 2023 11:04 pm
Forum: Technical / Scripting
Topic: Text in HTML Viewer is not copied.
Replies: 8
Views: 6714

Re: Text in HTML Viewer is not copied.

I didn't help much... Grovkillen was the guru here. Thank you though.
by Dorian (MJT support)
Thu Sep 14, 2023 9:03 am
Forum: Technical / Scripting
Topic: Text in HTML Viewer is not copied.
Replies: 8
Views: 6714

Re: Text in HTML Viewer is not copied.

Grovkillen wrote:
Thu Sep 14, 2023 8:53 am
Try this technique : viewtopic.php?f=2&t=8197#p48509
Thank you for jumping in. I was still wrestling with this one after discovering GetDialogProperty doesn't actually get the property. (Then I found an old thread where you mentioned it)
by Dorian (MJT support)
Thu Sep 14, 2023 8:48 am
Forum: Technical / Scripting
Topic: Text in HTML Viewer is not copied.
Replies: 8
Views: 6714

Re: Text in HTML Viewer is not copied.

I'm wondering if a starting point would be to add a dialog handler for the HTMLviewer which then uses GetDialogProperty to retrieve it's contents?
by Dorian (MJT support)
Thu Sep 14, 2023 8:08 am
Forum: Technical / Scripting
Topic: Text in HTML Viewer is not copied.
Replies: 8
Views: 6714

Re: Text in HTML Viewer is not copied.

We were recently asked about the Out of Memory errors for the GetText functions over at Support recently. This was Marcus' reply : The GetText functions use a third party product which is no longer maintained. In any case they only work against native legacy apps and will not work with most modern a...
by Dorian (MJT support)
Thu Sep 14, 2023 6:52 am
Forum: Enhancement Suggestions
Topic: ISO 8601 timestamp
Replies: 4
Views: 35678

Re: ISO 8601 timestamp

Thank you for this. I will make sure to pass it on.
by Dorian (MJT support)
Mon Sep 11, 2023 9:16 pm
Forum: Technical / Scripting
Topic: Accessing Array elements
Replies: 11
Views: 10356

Re: Accessing Array elements

Your commented out method is the correct way. You can't use complex expressions with StringReplace.
by Dorian (MJT support)
Sat Sep 09, 2023 3:06 pm
Forum: Beginners
Topic: Out of memory
Replies: 3
Views: 27961

Re: Out of memory

It would be in there if you've used the Text Capture Wizard. If you haven't used that and have no recollection of using text capture in this script, then the GetTextInit suggestion is on the wrong path. :) You can always use CTRL-F to search your scripts. It's very unlikely to be the length of the s...
by Dorian (MJT support)
Sat Sep 09, 2023 12:09 pm
Forum: Beginners
Topic: Out of memory
Replies: 3
Views: 27961

Re: Out of memory

This raises it's head from time to time and is usually due to the GetTextInit functions. We recommend using the OCR functions instead.
by Dorian (MJT support)
Sat Sep 02, 2023 8:29 am
Forum: Beginners
Topic: If function understanding
Replies: 8
Views: 22231

Re: If function understanding

What you want to do is quite complex for a beginner. You'll need to master and fully understand the techniques linked below before you should even think about putting it all together into something resembling your "end product". Learn and test each stage/element. Make sure you can walk before you tr...
by Dorian (MJT support)
Fri Sep 01, 2023 5:02 pm
Forum: Beginners
Topic: If function understanding
Replies: 8
Views: 22231

Re: If function understanding

You know.... I don't think I've ever used that in the 25 years I've been using MS (IfNot probably hasn't existed for 25 years)...

In fact it slipped my mind that it even existed.
by Dorian (MJT support)
Fri Sep 01, 2023 12:51 pm
Forum: Beginners
Topic: If function understanding
Replies: 8
Views: 22231

Re: If function understanding

To compare two variables and exit the script if they are not the same, you'd do something like this :

Code: Select all

if>%variable1%<>%variable2%
  exit
endif
You can see an in-depth description of IF here.
by Dorian (MJT support)
Tue Aug 22, 2023 3:47 pm
Forum: Technical / Scripting
Topic: how to boilerplate macros
Replies: 5
Views: 6900

Re: how to boilerplate macros

You have the OnEvent in an endless loop which doesn't seem like a good idea as you only need that to run once. It didn't work for me either so I changed it so it will look for ., then move on to look for the h, then the i. tbh this approach doesn't make much sense to me as I have a feeling it could ...
Sign up to our newsletter for free automation tips, tricks & discounts