Search found 23 matches

by MarcinW
Thu Mar 11, 2021 11:40 pm
Forum: Technical / Scripting
Topic: MS SDK stop console output
Replies: 2
Views: 1673

Re: MS SDK stop console output

This works, thanks. :)
by MarcinW
Thu Mar 11, 2021 11:35 pm
Forum: Technical / Scripting
Topic: Macro Scheduler SDK GetVar problem...
Replies: 9
Views: 3903

Re: Macro Scheduler SDK GetVar problem...

Hi Marcus,

Unfortunately I did not receive the email, I sent you a PM.
by MarcinW
Thu Mar 11, 2021 5:25 pm
Forum: Technical / Scripting
Topic: MS SDK stop console output
Replies: 2
Views: 1673

MS SDK stop console output

Hi, When using MS SDK with C# I am getting messages written to console like this for each RunCode: 11/03/2021 17:12:20:830 - Started Macro 11/03/2021 17:12:20:847 - Finished Macro If running a lot of macros it can affect performance and it also makes debugging more difficult. Is there a way to switc...
by MarcinW
Thu Mar 11, 2021 4:49 pm
Forum: Technical / Scripting
Topic: Macro Scheduler SDK GetVar problem...
Replies: 9
Views: 3903

Re: Macro Scheduler SDK GetVar problem...

Not sure about other languages but I tried it with c#. On my computer - next call to RunCode or GetVar fails if GetVar is called for a variable holding 29278+ characters. That's the first issue, the next one is that next call to GetVar with a variable name longer than 7 chars throws an exception if ...
by MarcinW
Wed Mar 10, 2021 4:10 pm
Forum: Technical / Scripting
Topic: Macro Scheduler SDK GetVar problem...
Replies: 9
Views: 3903

Re: Macro Scheduler SDK GetVar problem...

Below is the code I used to test, also used online random string generator to obtain strings. public class ScriptRunnerTest { readonly MScript.MacroScript _axScript; public int MSGetVarCharLimit { get; set; } public ScriptRunnerTest() { MSGetVarCharLimit = 30000; //MSGetVarCharLimit = 29277; MSGetVa...
by MarcinW
Wed Mar 10, 2021 4:01 pm
Forum: Technical / Scripting
Topic: Macro Scheduler SDK GetVar problem...
Replies: 9
Views: 3903

Macro Scheduler SDK GetVar problem...

Hi, I've noticed there's a problem with GetVar function when using MS SDK with C#. If string returned is larger than 29277 characters, next call to RunCode function will result in following error (at least for codes where variable assignment is done, e.g. Let>, Length>): System.Runtime.InteropServic...
by MarcinW
Wed Dec 02, 2020 6:46 pm
Forum: Technical / Scripting
Topic: Chrome functions error handling
Replies: 1
Views: 1480

Chrome functions error handling

Hi, I've recently noticed an issue with Chrome bots, they work completely fine on my pc, they work 90% of the time on the AWS Windows Server 2019 VM that they're supposed to run on. The problem there is that sometimes bots get stuck on Chrome functions such as 'ChromeFindELements' or 'ChromeNavigate...
by MarcinW
Tue Nov 10, 2020 10:21 am
Forum: Technical / Scripting
Topic: API Endpoints Macro Not Found
Replies: 1
Views: 1244

Re: API Endpoints Macro Not Found

Hi,I am having the same issue, cannot find out what might be the cause of this problem. "Macro not found" response is returned even though script is triggered by the API call. Correct response is critical to our implementation, hopefully someone will know what can cause this issue.
by MarcinW
Fri Oct 30, 2020 5:46 pm
Forum: Technical / Scripting
Topic: Can't compile executables
Replies: 3
Views: 2104

Can't compile executables

Hi, I've had this issue for a while now but it got really bad now. Initially 1 in 5 times after I compiled an exe it was gone not to be found anywhere. Over time the issue got worse, right now getting a compiled executable is like finding a four-leaf clover. During compilation I can see the exe appe...
by MarcinW
Thu Oct 15, 2020 4:17 pm
Forum: Technical / Scripting
Topic: MsNet send response before end of script
Replies: 2
Views: 1638

Re: MsNet send response before end of script

I found a different solution to the problem. API triggers script built for running the compiled bot. It returns response straight away without blocking calling program and compiled bot is free to take its time to complete the process: RunProgram>{%str_path% + %str_file% + " /_test=ABC /_test2=123"} ...
by MarcinW
Wed Oct 14, 2020 10:02 pm
Forum: Technical / Scripting
Topic: MsNet send response before end of script
Replies: 2
Views: 1638

MsNet send response before end of script

Hi, I've noticed that when triggering a script through MsNet API call, response is not sent back until the whole script is executed. Initially I thought that response was sent at the point of Let>MACRO_RESULT variable. However it seems like this is not the case. I need response to be sent immediatel...
by MarcinW
Mon Oct 05, 2020 2:30 pm
Forum: Technical / Scripting
Topic: Changing headers/content-type in MACRO_RESULT
Replies: 2
Views: 3066

Re: Changing headers/content-type in MACRO_RESULT

Thanks for the quick response. Yes, we can convert it on the other side, just wondered whether this is possible. :)
by MarcinW
Mon Oct 05, 2020 1:54 pm
Forum: Technical / Scripting
Topic: Changing headers/content-type in MACRO_RESULT
Replies: 2
Views: 3066

Changing headers/content-type in MACRO_RESULT

I created a MsNet endpoint to trigger a script. Now in the blog post describing it ( https://help.mjtnet.com/article/331-how-to-make-macro-scheduler-run-macros-in-response-to-http-requests ), MACRO_SCHEDULER variable is used to send response. I am sending json back in the body and would like to chan...
by MarcinW
Mon Oct 05, 2020 8:44 am
Forum: Technical / Scripting
Topic: Returning file through MsNet API call
Replies: 5
Views: 5416

Re: Returning file through MsNet API call

Thanks for help. I had to download a page in pdf format, I couldn't provide any direct url to the pdf before downloading it. So I did it through downloading the pdf to a shared OneDrive folder, then got shareable link and embedded it like you suggested.
Sign up to our newsletter for free automation tips, tricks & discounts