Macro Scheduler/VBScript/RegEx Bugs

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
armsys
Automation Wizard
Posts: 1108
Joined: Wed Dec 04, 2002 10:28 am
Location: Hong Kong

Macro Scheduler/VBScript/RegEx Bugs

Post by armsys » Sun May 19, 2013 10:07 pm

Last edited by armsys on Mon May 20, 2013 9:42 am, edited 1 time in total.

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Mon May 20, 2013 8:46 am

VBScript is a Microsoft product. It is not our implementation. We have *ZERO* control over it. So if you believe there is a bug in VBScript please report it to Microsoft.

That said I do not get any error with your code.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

armsys
Automation Wizard
Posts: 1108
Joined: Wed Dec 04, 2002 10:28 am
Location: Hong Kong

Post by armsys » Mon May 20, 2013 9:40 am

I have honestly reported the Macro Scheduler bug.
Yes, other VBScript programmers have reported and confirmed no issue with CRLFs and double-quotes under VBScript alone.
It's strictly a Macro Scheduler bug.
If you ignore it, it's my not my problem.
I have already developed a full set of MS scripts to ocvercome most MS regex bugs. So it's no longer my concern.
Besides RegEx, I'm a happy user of Macro Scheduler.
It took me two years of effort to identify the exact cause of the bug.
And I don't want to waste my time anymore.
Last edited by armsys on Mon May 20, 2013 9:54 am, edited 1 time in total.

armsys
Automation Wizard
Posts: 1108
Joined: Wed Dec 04, 2002 10:28 am
Location: Hong Kong

Post by armsys » Mon May 20, 2013 9:51 am

After reading Marcus' reply again, I'm honestly perplexed by his statement.
Marcus Tettmar wrote: That said I do not get any error with your code.
Can other MS users be kindly to test out my script?
I could be wrong. There are a huge combination of probable causes such as Windows locale setting.
Marcus, should I email you the screenshots of the error messages?

armsys
Automation Wizard
Posts: 1108
Joined: Wed Dec 04, 2002 10:28 am
Location: Hong Kong

Post by armsys » Mon May 20, 2013 10:09 am

Marcus,
Conversely, would you be very kind enought to write a Macro Scheduler and VBScript script, respectively so that I test it out?
Thanks.

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Mon May 20, 2013 10:10 am

I've just realised you were talking about the ConCat statements:

ConCat>text,CRLF
ConCat>text,"

I thought you were were talking about commenting out of either of the pattern values.

I guess you forget that VBScript needs vbCRLF for line breaks. It also uses " as the string delimiter, so "'s should be double quoted ("")

StringReplace>text,CRLF," & vbCRLF & ",text
StringReplace>text,","",text

But this has nothing whatsoever to do with RegEx (which is why you threw me and I didn't notice your mention of the commented out ConCat until later).

Here's a video showing me making these adjustments and no errors occuring.

https://mjtnet.viewscreencasts.com/45bd ... 9b001972bc
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

armsys
Automation Wizard
Posts: 1108
Joined: Wed Dec 04, 2002 10:28 am
Location: Hong Kong

Post by armsys » Mon May 20, 2013 11:42 am

Marcus Tettmar wrote:I guess you forget that VBScript needs vbCRLF for line breaks. It also uses " as the string delimiter, so "'s should be double quoted ("")
Thanks for taking time to show me the proper to code VBScript.
You proved the Macro Scheduler's support of VBScript is perfect.
Above all, I was wrong in respect of MS/VBScript Regex support.
It's my fault. I apologize for my ignorance.
Now you help me unleash the unlimited power of VBScript/Regex, which is still the only implement in Macro Scheduler won't corrupt the Unicode source text.
For the rest of PCRE and EasyPatterns issues, it's hopeless. I give up.
Marcus, thanks for your generous assistance.

User avatar
CyberCitizen
Automation Wizard
Posts: 724
Joined: Sun Jun 20, 2004 7:06 am
Location: Adelaide, South Australia

Post by CyberCitizen » Tue May 21, 2013 3:59 am

Great Work By Marcus & Armsys For Admitting The Error And Apologising.
FIREFIGHTER

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts