Search found 6664 matches

by Marcus Tettmar
Wed Jan 16, 2019 11:56 am
Forum: Technical / Scripting
Topic: readln not advancing with counter in while loop
Replies: 1
Views: 12

Re: readln not advancing with counter in while loop

When assigning a variable never use the % symbols otherwise you are actually assigning the value to a variable named after the VALUE of the variable. %..% means value of. You don't want to assign to the value of you want to assign to the variable itself. Your While also needs a chevron. Here's what ...
by Marcus Tettmar
Tue Jan 15, 2019 9:45 am
Forum: Technical / Scripting
Topic: Best practice parsing JSON?
Replies: 2
Views: 25

Re: Best practice parsing JSON?

Use IGNOREERRORS and/or ONERROR and look at the LAST_ERROR variable to see what the error is, if any.
by Marcus Tettmar
Sat Jan 12, 2019 2:25 pm
Forum: Scripts and Tips
Topic: PrettifyScp - Code Clean Up / Indenter
Replies: 2
Views: 7012

Re: PrettifyScp - Code Clean Up / Indenter

Ah good catch. Also noticed it adds CRLF at top and bottom. Try this version which fixes these issues: //tokens to identify start and end of indented code Let>incTokens=^IF.*|^SRT\>.*|^REPEAT\>.*|^WHILE\>.*|^ELSE|^ELSE> Let>decTokens=^ENDIF|^END\>.*|^UNTIL\>.*|^ENDWHILE.*|^ELSE|^ELSE> //tokens to id...
by Marcus Tettmar
Wed Jan 09, 2019 2:12 pm
Forum: Scripts and Tips
Topic: PrettifyScp - Code Clean Up / Indenter
Replies: 2
Views: 7012

PrettifyScp - Code Clean Up / Indenter

Here's a little script to clean up .scp file indentation: See my blog post on this here: https://www.mjtnet.com/blog/2019/01/09/prettifyscp-code-clean-up/ //tokens to identify start and end of indented code Let>incTokens=^IF.*|^SRT\>.*|^REPEAT\>.*|^WHILE\>.*|^ELSE|^ELSE> Let>decTokens=^ENDIF|^END\>....
by Marcus Tettmar
Thu Jan 03, 2019 2:27 pm
Forum: Technical / Scripting
Topic: JSONParse assign to variable variable-name
Replies: 3
Views: 95

Re: JSONParse assign to variable variable-name

How about rename the array afterwards:

Code: Select all

JSONParse>RELEASE_JSON,$[*]['prerelease'],ResultArray
ArrayRename>ResultArray,,RELEASE_NIGHTLY_P%k%
by Marcus Tettmar
Thu Jan 03, 2019 2:21 pm
Forum: Technical / Scripting
Topic: JSONParse assign to variable variable-name
Replies: 3
Views: 95

Re: JSONParse assign to variable variable-name

I can't quite follow what you want to do here. None of the Macro Scheduler functions work like that. If you want the results in a different array/variable name then just assign it afterwards.
by Marcus Tettmar
Wed Jan 02, 2019 8:04 pm
Forum: Technical / Scripting
Topic: HTTPRequest + HTTP_SSL=1 not working?
Replies: 9
Views: 558

Re: HTTPRequest + HTTP_SSL=1 not working?

And you don't need to explicitly set SSL or TLS versions. This works fine on it's own:

HTTPRequest>https://www.vecka.nu/,,GET,,VECKA_NU
by Marcus Tettmar
Wed Jan 02, 2019 7:28 pm
Forum: Technical / Scripting
Topic: HTTPRequest + HTTP_SSL=1 not working?
Replies: 9
Views: 558

Re: HTTPRequest + HTTP_SSL=1 not working?

Macro Scheduler 14.5.4 is now available with the fix.
by Marcus Tettmar
Wed Jan 02, 2019 3:19 pm
Forum: Technical / Scripting
Topic: PutClipboard and unicode characters
Replies: 3
Views: 307

Re: PutClipboard and unicode characters

Setting PUTCLIPBOARD_LEGACY to 1 definitely fixed it for me. However, we have now fixed the new implementation of PutClipboard to work with unicode characters properly. So should be fixed in next update coming very soon.
by Marcus Tettmar
Wed Jan 02, 2019 2:31 pm
Forum: Technical / Scripting
Topic: Web Scraping - XPath
Replies: 2
Views: 257

Re: Web Scraping - XPath

I would use RegEx for this.
by Marcus Tettmar
Wed Jan 02, 2019 1:16 pm
Forum: Technical / Scripting
Topic: HTTPRequest + HTTP_SSL=1 not working?
Replies: 9
Views: 558

Re: HTTPRequest + HTTP_SSL=1 not working?

Regarding the HTTPRequest SSL issue, we have identified a bug and working on a fix right now.
by Marcus Tettmar
Fri Dec 28, 2018 5:58 pm
Forum: General Discussion
Topic: Limit to Excel Workbook size?
Replies: 3
Views: 232

Re: Limit to Excel Workbook size?

There is no limitation in Macro Scheduler regarding file size.
by Marcus Tettmar
Fri Dec 28, 2018 5:57 pm
Forum: Technical / Scripting
Topic: Image Recognition Wizard only works in windowed mode (not in Directx full screen)
Replies: 1
Views: 69

Re: Image Recognition Wizard only works in windowed mode (not in Directx full screen)

If my understanding is correct 'fullscreen' games basically cause all other apps to stop working - basically it puts Windows into single tasking mode. Therefore if the game is in full screen mode Macro Scheduler cannot operate.
by Marcus Tettmar
Fri Dec 28, 2018 5:56 pm
Forum: Technical / Scripting
Topic: PutClipboard and unicode characters
Replies: 3
Views: 307

Re: PutClipboard and unicode characters

We'll investigate. In the mean time switch to the old legacy PutClipboard by setting:

Let>PUTCLIPBOARD_LEGACY=1
by Marcus Tettmar
Fri Dec 21, 2018 7:54 am
Forum: Technical / Scripting
Topic: Out of Memory when using DBQuery
Replies: 7
Views: 139

Re: Out of Memory when using DBQuery

Hi, We have no plans to introduce a 64 bit version. Some years ago now we ported the main script engine code to 64 bit, so we have the ability in production but after exhaustive research we decided there was no real benefit vs the extra cost and hassle associated with maintaining double the number o...