Search found 1034 matches
- Wed Sep 27, 2023 10:15 am
- Forum: Technical / Scripting
- Topic: Memory leak when using PyExec
- Replies: 7
- Views: 22188
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: 22188
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: 52491
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: 22188
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: 38577
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: 5593
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: 38577
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: 8367
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: 8367
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: 13520
Re: Epoch time using Python vs MS
See this thread for more: viewtopic.php?f=8&t=11352&p=48557#p48557
- Thu Sep 14, 2023 7:25 am
- Forum: Enhancement Suggestions
- Topic: ISO 8601 timestamp
- Replies: 4
- Views: 38577
Re: ISO 8601 timestamp
For reference, if done in Python: //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_format_2 //format...
- Thu Sep 14, 2023 6:12 am
- Forum: Enhancement Suggestions
- Topic: ISO 8601 timestamp
- Replies: 4
- Views: 38577
ISO 8601 timestamp
GetTime and GetDate will return local format of date/time. When dealing with databases it's the ISO 8601 format that is used. I would like to have a GetIsoTimestamp command for this. UTC is always used except in format=2 where the offset is part of the output. Example output(s): Format=1 standard 20...
- Sat Sep 02, 2023 10:03 am
- Forum: General Discussion
- Topic: Will Win App Driver support be available in the future?
- Replies: 1
- Views: 21557
Re: Will Win App Driver support be available in the future?
Wow, sounds like a great tool. I'd like to see it being used.
- Fri Sep 01, 2023 3:51 pm
- Forum: Beginners
- Topic: If function understanding
- Replies: 8
- Views: 23661
Re: If function understanding
And this is also valid:
Code: Select all
ifnot>%variable1%=%variable2%
exit
endif
- Thu Aug 31, 2023 5:15 pm
- Forum: Technical / Scripting
- Topic: JSON and UTF8 problem
- Replies: 4
- Views: 25345