Search found 87 matches

by obfusc88
Tue Sep 24, 2024 12:11 am
Forum: Technical / Scripting
Topic: Convert GetFileDate
Replies: 2
Views: 768

Re: Convert GetFileDate

Was writing response, when I stumbled across another idea. Found the problem.
I had a variable used as %Date% that should have been Date without the % ends.
Thanks for listening. Problem is gone.
by obfusc88
Sun Sep 22, 2024 6:05 am
Forum: Technical / Scripting
Topic: Convert GetFileDate
Replies: 2
Views: 768

Convert GetFileDate

FileDate gets DATE = 20240921 DatePart>DATE,Y = Year = 57317 Here is the simple code. %Original% is a valid file, checked that it exists earlier in script. Label>Get Original Date/Time FileDate>%Original%,Date FileTime>%Original%,Time Label>ParseDate DatePart>Date,y,Year DatePart>%Date%,m,Month Date...
by obfusc88
Sun Apr 18, 2021 2:21 am
Forum: Technical / Scripting
Topic: Cannot set focus. Title not accepted.
Replies: 1
Views: 1889

Cannot set focus. Title not accepted.

Cannot get focus on a web page. I have the Title from FireFox and that did not work. I have the Title from Macro Scheduler View System Windows. I used the * at the end of the basic title. Link below shows the Viewer on the left, the code on the right, and the error message in the center. https://img...
by obfusc88
Sat Apr 17, 2021 2:44 am
Forum: Technical / Scripting
Topic: F9 forces the Debug Menu to open
Replies: 1
Views: 1945

F9 forces the Debug Menu to open

Trying to step thru code. Using F8 is ok, then pressing F9 pops up the Debug Menu. It normally would go into the Run mode from that point. Happens in many locations. Here is current code with problem: //Earlier code that opens FireFox for the first time. ..... ..... Let>vOpen=NO GoSub>OpenWebPage .....
by obfusc88
Thu Apr 15, 2021 1:13 am
Forum: Technical / Scripting
Topic: Cannot increment array element into variable
Replies: 7
Views: 5454

Re: Cannot increment array element into variable

YES! That was the fix. Problem Solved!
I changed VarExplicit from 1 to 0 and it works right.

Thanks for the fix. Stay tuned for more problems.......
by obfusc88
Wed Apr 14, 2021 11:25 pm
Forum: Technical / Scripting
Topic: Cannot increment array element into variable
Replies: 7
Views: 5454

Re: Cannot increment array element into variable

I mentioned that I have an array, vMembers with 12 elements. Each element is about 2000-3000 characcters. I did a RegEx to enter tilde characters (~), and then used Separate command on the tilde to break the large document into smaller manageable elements. The array exists, the elements exist. The A...
by obfusc88
Wed Apr 14, 2021 9:07 pm
Forum: Technical / Scripting
Topic: Cannot increment array element into variable
Replies: 7
Views: 5454

Re: Cannot increment array element into variable

Looks like my example was done too fast, it works for me also. So there must be an error in my actual code. Here is from my code: Label>LOOP1 **BREAKPOINT** //Next line is earlier in code outside loop to prime the first element. Included here for testing. Let>vThisRecord=1 //Have an array vMembers w...
by obfusc88
Wed Apr 14, 2021 5:30 pm
Forum: Technical / Scripting
Topic: Cannot increment array element into variable
Replies: 7
Views: 5454

Cannot increment array element into variable

//Have an array vMembers with 12 elements. //Want to loop thru elements 2-11 into vHaystack2 for RegEx work Cannot reload vHaystack2 with Count variable //Set up arrray ArrayDim>vNames,3 Let>vNames_1=Fred Let>vNames_2=Sally Let>vNames_3=John Let>vThisRecord=1 Add>vThisRecord,1 MDL>This record is %vT...
by obfusc88
Mon Apr 12, 2021 4:12 pm
Forum: Technical / Scripting
Topic: Capture from RegEx Match
Replies: 3
Views: 3982

Re: Capture from RegEx Match

That was the answer, Marcus. Thank you. Did not need to escape any characters. Here is my final code: RegEx>(?<=<p class="person-id">ID: )[0-9]*?(?=</p>),%vHaystack2%,0,vID,vIDCount,0 The original line in the file was: <p class="person-id">ID: 390783</p> And the RegEx above returned "390783" (withou...
by obfusc88
Sun Apr 11, 2021 8:30 pm
Forum: Technical / Scripting
Topic: Capture from RegEx Match
Replies: 3
Views: 3982

Capture from RegEx Match

I am scraping a 10000+ line file to pull out multiple values to match with each person. Not all values exist, so I know some Matches will fail. That file is my Haystack Here is my command to find the ID values (just one of about 20 different values I need): RegEx><p class="person-id">ID: [0-9]*</p>,...
by obfusc88
Sun Mar 21, 2021 4:38 pm
Forum: General Discussion
Topic: Embed animated gif in dialog/window
Replies: 5
Views: 23367

Re: Embed animated gif in dialog/window

I cannot believe that was so simple to make the code! Will have to look deeper in the Help guide to find out how I missed that. Will try this weekend, thank you.
by obfusc88
Wed Mar 17, 2021 10:44 pm
Forum: General Discussion
Topic: Embed animated gif in dialog/window
Replies: 5
Views: 23367

Re: Embed animated gif in dialog/window

Can't believe I am asking about a forum posting that is 15 years old. I have been trying to call up an animation to show progress during a long file opening process. I tried using the Progress Bar in Dialogs, but could not make sense of the parameters, and how to stop the dialog when the file loadin...
by obfusc88
Tue Mar 16, 2021 1:36 am
Forum: Technical / Scripting
Topic: Shift-Tab
Replies: 5
Views: 3324

Re: Shift-Tab

Be sure to use Let>VAREXPLICIT=1 for the %....% variables. It then requires the %..% when referencing the variable. If VAREXPLICIT=0, then it always uses the literal values that follow. The default if you do not define it =0. From the HELP file: Explicit Variable Resolution - VAREXPLICIT You can tel...
by obfusc88
Tue Mar 16, 2021 12:23 am
Forum: Technical / Scripting
Topic: Cannot compile - folder missing
Replies: 1
Views: 2391

Cannot compile - folder missing

Using version 14.5.7 PRO. Windows 10 PRO, 64 bit. When trying to compile, it accepts all inputs but does not complete. Sends a message window that "destination folder does not exist". Have not seen this before. I thought the default destination is the folder that holds the script. And obviously that...
by obfusc88
Thu Mar 04, 2021 1:26 am
Forum: Technical / Scripting
Topic: Easy Pattern syntax for Groups
Replies: 2
Views: 2460

Easy Pattern syntax for Groups

I have been spending hours with different versions of syntax to figure out how to extract a group using RegEx. I have no problems with other "flavors" of RegEx in other editors. I have come to the conclusion that Macro Scheduler does not do that without using Easy Pattern syntax. I have used Macro S...
Sign up to our newsletter for free automation tips, tricks & discounts