Search found 1009 matches

by Grovkillen
Thu Oct 12, 2023 2:41 pm
Forum: General Discussion
Topic: Putting macro scheduler into a stand alone client?
Replies: 7
Views: 15846

Re: Putting macro scheduler into a stand alone client?

Yes it's possible to do what you're asking. The only way to know how to do it is to start coding it. We'll help you along the way.
by Grovkillen
Sat Oct 07, 2023 5:11 am
Forum: Scripts and Tips
Topic: Exit editor from within code
Replies: 2
Views: 34386

Re: Exit editor from within code

Yes I'm not using the MS "launcher".
by Grovkillen
Mon Oct 02, 2023 6:34 am
Forum: Scripts and Tips
Topic: Exit editor from within code
Replies: 2
Views: 34386

Exit editor from within code

If you want to close the editor after the script ends (for whatever reason) you can do this using PyExec:

Code: Select all

PyExec>import sys%CRLF%sys.exit(),,
by Grovkillen
Wed Sep 27, 2023 3:34 pm
Forum: Technical / Scripting
Topic: Memory leak when using PyExec
Replies: 7
Views: 20071

Re: Memory leak when using PyExec

JRL, thanks for the feedback. I understand how you see it.

In my current project I have now made the python code run as sub processes.
by Grovkillen
Wed Sep 27, 2023 10:15 am
Forum: Technical / Scripting
Topic: Memory leak when using PyExec
Replies: 7
Views: 20071

Re: Memory leak when using PyExec

All right, then my roadmap is to convert these executions of python code as sub-processes that will exit them selves and thus not crash. Thanks for the feedback!
by Grovkillen
Wed Sep 27, 2023 5:09 am
Forum: Technical / Scripting
Topic: Memory leak when using PyExec
Replies: 7
Views: 20071

Re: Memory leak when using PyExec

I have a feeling that MS is starting a new instance of the Python code each PyExec. The memory allocation is increasing at a fairly linear pace and rate. Change the Wait>1 to Wait>0.01 and it will crash within a minute.
by Grovkillen
Tue Sep 26, 2023 3:30 pm
Forum: Technical / Scripting
Topic: Memory leak when using PyExec
Replies: 7
Views: 20071

Memory leak when using PyExec

Run this script AS COMPILED and observe the process memory usage. It will grow rapidly until it crashes. Label>START_OF_SCRIPT //format=1 PYExec>import datetime%CRLF%print(datetime.datetime.utcnow().strftime("%Y-%m-%dT%H:%M:%SZ")),ISO_8601_format_1 //format=2 PYExec>import datetime%CRLF%print(dateti...
by Grovkillen
Fri Sep 15, 2023 9:01 am
Forum: Enhancement Suggestions
Topic: ISO 8601 timestamp
Replies: 4
Views: 34933

Re: ISO 8601 timestamp

Just a clean up to show the output in a message: //format=1 PYExec>import datetime%CRLF%print(datetime.datetime.utcnow().strftime("%Y-%m-%dT%H:%M:%SZ")),ISO_8601_format_1 //format=2 PYExec>import datetime%CRLF%print(datetime.datetime.now().astimezone().replace(microsecond=0).isoformat()),ISO_8601_fo...
by Grovkillen
Fri Sep 15, 2023 7:16 am
Forum: Technical / Scripting
Topic: Running Java code with Macro Scheduler
Replies: 1
Views: 4012

Re: Running Java code with Macro Scheduler

If you have the Java code working you could just initiate it from MacroScheduler? You cannot have Java code internally in the MS script, but you can have VBScript and Python code internally.
by Grovkillen
Thu Sep 14, 2023 11:20 am
Forum: Enhancement Suggestions
Topic: ISO 8601 timestamp
Replies: 4
Views: 34933

Re: ISO 8601 timestamp

I found out that SQL uses a variant of the ISO format:

2023-09-14T13:18:54.357107+02:00

Code: Select all

//format=10
PYExec>import datetime%CRLF%print(datetime.datetime.now().astimezone().isoformat()),ISO_8601_format_10
by Grovkillen
Thu Sep 14, 2023 9:05 am
Forum: Technical / Scripting
Topic: Text in HTML Viewer is not copied.
Replies: 8
Views: 6384

Re: Text in HTML Viewer is not copied.

Yep, I'm always lurking around here :)
by Grovkillen
Thu Sep 14, 2023 7:38 am
Forum: Scripts and Tips
Topic: Epoch time using Python vs MS
Replies: 4
Views: 11272

Re: Epoch time using Python vs MS

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