Search found 1024 matches
- Thu Oct 12, 2023 2:41 pm
- Forum: General Discussion
- Topic: Putting macro scheduler into a stand alone client?
- Replies: 7
- Views: 16277
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.
- Sat Oct 07, 2023 5:11 am
- Forum: Scripts and Tips
- Topic: Exit editor from within code
- Replies: 2
- Views: 34704
Re: Exit editor from within code
Yes I'm not using the MS "launcher".
- Mon Oct 02, 2023 6:34 am
- Forum: Scripts and Tips
- Topic: Exit editor from within code
- Replies: 2
- Views: 34704
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(),,
- Wed Sep 27, 2023 3:34 pm
- Forum: Technical / Scripting
- Topic: Memory leak when using PyExec
- Replies: 7
- Views: 20451
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.
In my current project I have now made the python code run as sub processes.
- Wed Sep 27, 2023 3:31 pm
- Forum: Technical / Scripting
- Topic: Improve Task Manager script (no image recognition, etc.)
- Replies: 18
- Views: 49119
Re: Improve Task Manager script (no image recognition, etc.)
Thanks, got it
- Wed Sep 27, 2023 10:15 am
- Forum: Technical / Scripting
- Topic: Memory leak when using PyExec
- Replies: 7
- Views: 20451
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!
- Wed Sep 27, 2023 5:09 am
- Forum: Technical / Scripting
- Topic: Memory leak when using PyExec
- Replies: 7
- Views: 20451
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.
- Tue Sep 26, 2023 5:19 pm
- Forum: Technical / Scripting
- Topic: Improve Task Manager script (no image recognition, etc.)
- Replies: 18
- Views: 49119
Re: Improve Task Manager script (no image recognition, etc.)
Is it possible to use this Kernel32 function? https://learn.microsoft.com/en-us/windo ... memoryinfo
- Tue Sep 26, 2023 3:30 pm
- Forum: Technical / Scripting
- Topic: Memory leak when using PyExec
- Replies: 7
- Views: 20451
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...
- Fri Sep 15, 2023 9:01 am
- Forum: Enhancement Suggestions
- Topic: ISO 8601 timestamp
- Replies: 4
- Views: 35759
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...
- Fri Sep 15, 2023 7:16 am
- Forum: Technical / Scripting
- Topic: Running Java code with Macro Scheduler
- Replies: 1
- Views: 4260
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.
- Thu Sep 14, 2023 11:20 am
- Forum: Enhancement Suggestions
- Topic: ISO 8601 timestamp
- Replies: 4
- Views: 35759
Re: ISO 8601 timestamp
I found out that SQL uses a variant of the ISO format:
2023-09-14T13:18:54.357107+02:00
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
- Thu Sep 14, 2023 9:05 am
- Forum: Technical / Scripting
- Topic: Text in HTML Viewer is not copied.
- Replies: 8
- Views: 6764
Re: Text in HTML Viewer is not copied.
Yep, I'm always lurking around here
- Thu Sep 14, 2023 8:53 am
- Forum: Technical / Scripting
- Topic: Text in HTML Viewer is not copied.
- Replies: 8
- Views: 6764
Re: Text in HTML Viewer is not copied.
Try this technique : viewtopic.php?f=2&t=8197#p48509
- Thu Sep 14, 2023 7:38 am
- Forum: Scripts and Tips
- Topic: Epoch time using Python vs MS
- Replies: 4
- Views: 12082
Re: Epoch time using Python vs MS
See this thread for more: viewtopic.php?f=8&t=11352&p=48557#p48557