Search found 327 matches

by hagchr
Sat Apr 23, 2022 5:54 pm
Forum: The Water Cooler
Topic: The Unofficial Macro Scheduler Puzzler #13
Replies: 17
Views: 49562

Re: The Unofficial Macro Scheduler Puzzler #13

Hi, I just saw this post yesterday, many thanks for posting, always inspiring and eye-opening. I thought I had the solution and tested with 500 runs last night and realized why you need the 1000 runs, things happen... Time to get the load% seems to vary on my machine so I run it slightly before the ...
by hagchr
Thu Feb 10, 2022 9:52 am
Forum: Beginners
Topic: Unexpected results by using LOCALVARS
Replies: 6
Views: 11358

Re: Unexpected results by using LOCALVARS

Hi, In my example var-a of level 2 is not affected, but var_a of level1 it is. In level 2, if you add a MDL>var_a you can see it shows 10 as well before you set it to 200. I have had similar problems in the past to get it to work as I want, so what I do now (for non-simple cases), is to have unique ...
by hagchr
Wed Feb 09, 2022 10:40 pm
Forum: Beginners
Topic: Unexpected results by using LOCALVARS
Replies: 6
Views: 11358

Re: Unexpected results by using LOCALVARS

In SRT Level3 you set LOCALVARS=0 and then directly set var_a=10.

Since LOCALVARS is turned off you effectively change var_a to 10 for all levels (if you step through the script, you see that var_a, for both level 0 and for level 1, change from 1 and 100, to 10 respectively).
by hagchr
Thu Dec 16, 2021 11:59 am
Forum: Enhancement Suggestions
Topic: Arithmetic Operators as variables
Replies: 5
Views: 10950

Re: Arithmetic Operators as variables

Or use tmp variable

Code: Select all

Let>OPERATOR=+
Let>TERM_1=20
Let>TERM_2=12
Let>RESULT={(%TERM_1% + %TERM_2%)}

Let>tmp=%TERM_1% %OPERATOR% %TERM_2%
Let>RESULT={tmp}
by hagchr
Mon Apr 12, 2021 4:24 pm
Forum: Technical / Scripting
Topic: Solving a puzzle
Replies: 23
Views: 16311

Re: Solving a puzzle

Interesting problem...
Is it always along x-axis or could it also be y-axis or both?
Can you click anywhere on the slider to move it to that place, or do you need to click on the "handle" and then drag it to where you want it?
Is it in a public place somewhere (web site) that one can use to test?
by hagchr
Fri Mar 19, 2021 9:00 am
Forum: Technical / Scripting
Topic: passing parameters and compiling
Replies: 9
Views: 5229

Re: passing parameters and compiling

Hi,

If I compile your script (leaving include parameters empty) then I get:

C:\Users\Christer\Desktop>tmpTBD.exe
---> displays default value

C:\Users\Christer\Desktop>tmpTBD.exe/v_test=Friday
---> displays Friday
by hagchr
Sun Mar 07, 2021 11:09 am
Forum: Technical / Scripting
Topic: EasyPattern bug?
Replies: 1
Views: 1527

EasyPattern bug?

This simple example looks strange compared to what is written in the text referred to in the help file. "longest" should make it match as much as possible, ie in the example it should match "abc" but here it results in three matches "a", "b", and "c". "shortest" is the other way around - should matc...
by hagchr
Sun Mar 07, 2021 10:52 am
Forum: Technical / Scripting
Topic: Easy Pattern syntax for Groups
Replies: 2
Views: 1806

Re: Easy Pattern syntax for Groups

I agree with Bob, normal RegEx handles groups etc, there is no need to go to for EasyPattern just for that. Actually, personally, I find the normal RegEx (much) easier and like Bob never bothered with EasyPattern. Out of curiosity I looked at your questions and if you are just looking for the matche...
by hagchr
Fri Mar 05, 2021 10:40 am
Forum: Technical / Scripting
Topic: EasyPatterns Not so easy
Replies: 7
Views: 3157

Re: EasyPatterns Not so easy

For EasyPattern you need to set the third parameter to 1, ie. RegEx>...,...,1,...

Bob's suggestion works as well, you may need to add a space char in the last bracket if that should be allowed as optional.
by hagchr
Tue Dec 29, 2020 11:40 am
Forum: Scripts and Tips
Topic: Extracting with ChromeDriver and RegEx
Replies: 0
Views: 37035

Extracting with ChromeDriver and RegEx

I raised the following with the help desk some time ago but did not get any reply so I put it here as it may be helpful for some. Not sure if it is an issue or normal/expected. When extracting text using ChromeDriver you typically get the text with Unix (LF) instead of Windows (CRLF). This means you...
by hagchr
Tue Dec 29, 2020 10:33 am
Forum: Technical / Scripting
Topic: Issue when pasting into MS Editor
Replies: 16
Views: 11196

Re: Issue when pasting into MS Editor

God Fortsättning och Gott Nytt 2021!

I opened an extracted MS help page in Notepad, and see it is using Unix (LF) whereas my text files are usually using Windows (CRLF). Not sure if that has anything to do with the issue? Irritating but until there is info/solution I guess one has to live with it.
by hagchr
Mon Dec 28, 2020 11:35 am
Forum: Technical / Scripting
Topic: Issue when pasting into MS Editor
Replies: 16
Views: 11196

Issue when pasting into MS Editor

I have the problem that when I copy things from the forum or MS help files (or any web text really), into the MS editor, I get the annoying message "Cannot open clipboard: Access is denied". I click ok and paste again and then it works. I am using Win 10 pro and the latest version of MS (15.0.15). D...
by hagchr
Sun Dec 27, 2020 4:27 pm
Forum: Technical / Scripting
Topic: Non-Capturing Group (RegEx)
Replies: 1
Views: 4986

Re: Non-Capturing Group (RegEx)

I just saw this unanswered post from 2 years ago. In the unlikely event it has not been solved. To make a group non-capturing, just add ?:

Capturing: (\d+)
Non-capturing: (?:\d+)
by hagchr
Sun Dec 27, 2020 3:55 pm
Forum: Technical / Scripting
Topic: Work Opportunity
Replies: 4
Views: 2575

Re: Work Opportunity

I think this has been sorted already, but it was a good training exercise so I did some work on getting data from the simple web site. I post the script in case anybody is interested. The result can then be copied from the message box and pasted into excel. // Needs to be adjusted with location of c...
by hagchr
Sun Dec 27, 2020 10:07 am
Forum: Technical / Scripting
Topic: Consume a result
Replies: 11
Views: 5406

Re: Consume a result

Hi again, Looking at your regex: RegEx>\b(\d\d?);(?!.*\b\1\b),CompareStrings,0,match,nom,1,,Results 0: COMPARESTRINGS=24;36;50;8;24;16;2;5;51; You go through your string left to right and try to find/match two digits and a ; and then look ahead to ensure that there are no duplicates to the right. Wh...
Sign up to our newsletter for free automation tips, tricks & discounts