Search found 328 matches
- Mon Apr 25, 2022 8:57 pm
- Forum: The Water Cooler
- Topic: The Unofficial Macro Scheduler Puzzler #13
- Replies: 17
- Views: 51714
Re: The Unofficial Macro Scheduler Puzzler #13
JRL, Thought I had it, then tried running a compiled version... and got worse numbers. Adjusted now, and doing the check run. I note that (at least for my solution) it is Load% dependent. Checking different loads and the spot-on-hit-rate I note: Load(%) HitRate 0-9 84% 10-19 79% 20-29 69% 30-39 63% ...
- Sat Apr 23, 2022 5:54 pm
- Forum: The Water Cooler
- Topic: The Unofficial Macro Scheduler Puzzler #13
- Replies: 17
- Views: 51714
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 ...
- Thu Feb 10, 2022 9:52 am
- Forum: Beginners
- Topic: Unexpected results by using LOCALVARS
- Replies: 6
- Views: 12486
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 ...
- Wed Feb 09, 2022 10:40 pm
- Forum: Beginners
- Topic: Unexpected results by using LOCALVARS
- Replies: 6
- Views: 12486
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).
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).
- Thu Dec 16, 2021 11:59 am
- Forum: Enhancement Suggestions
- Topic: Arithmetic Operators as variables
- Replies: 5
- Views: 12135
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}
- Mon Apr 12, 2021 4:24 pm
- Forum: Technical / Scripting
- Topic: Solving a puzzle
- Replies: 23
- Views: 16842
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?
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?
- Fri Mar 19, 2021 9:00 am
- Forum: Technical / Scripting
- Topic: passing parameters and compiling
- Replies: 9
- Views: 5387
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
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
- Sun Mar 07, 2021 11:09 am
- Forum: Technical / Scripting
- Topic: EasyPattern bug?
- Replies: 1
- Views: 1559
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...
- Sun Mar 07, 2021 10:52 am
- Forum: Technical / Scripting
- Topic: Easy Pattern syntax for Groups
- Replies: 2
- Views: 1853
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...
- Fri Mar 05, 2021 10:40 am
- Forum: Technical / Scripting
- Topic: EasyPatterns Not so easy
- Replies: 7
- Views: 3243
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.
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.
- Tue Dec 29, 2020 11:40 am
- Forum: Scripts and Tips
- Topic: Extracting with ChromeDriver and RegEx
- Replies: 0
- Views: 42011
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...
- Tue Dec 29, 2020 10:33 am
- Forum: Technical / Scripting
- Topic: Issue when pasting into MS Editor
- Replies: 16
- Views: 12126
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.
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.
- Mon Dec 28, 2020 11:35 am
- Forum: Technical / Scripting
- Topic: Issue when pasting into MS Editor
- Replies: 16
- Views: 12126
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...
- Sun Dec 27, 2020 4:27 pm
- Forum: Technical / Scripting
- Topic: Non-Capturing Group (RegEx)
- Replies: 1
- Views: 5045
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+)
Capturing: (\d+)
Non-capturing: (?:\d+)
- Sun Dec 27, 2020 3:55 pm
- Forum: Technical / Scripting
- Topic: Work Opportunity
- Replies: 4
- Views: 2607
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...