Search found 953 matches
- Fri Oct 20, 2023 1:46 pm
- Forum: Scripts and Tips
- Topic: Mouse Movement Detect via Custom OnEvent>
- Replies: 1
- Views: 1075
Re: Mouse Movement Detect via Custom OnEvent>
Ah, nice approach! I will think about it and maybe add a "gesture recognizer" to it. I have some idea of doing it by making some orthogonal calculations and store the vectors as an array and based on the series of vectors I could interpret a gesture.
- Sat Oct 14, 2023 4:23 pm
- Forum: Technical / Scripting
- Topic: Memory leak when using PyExec
- Replies: 7
- Views: 831
Re: Memory leak when using PyExec
Yes sure! The thing is though... You need to use a database to pass the data back to the main process. Or find another way, if you do please tell me how you did it. The idea is to compile the script to an executable and from the main process you then start "yourself" but pass a variable from the com...
- Thu Oct 12, 2023 5:12 pm
- Forum: General Discussion
- Topic: Putting macro scheduler into a stand alone client?
- Replies: 7
- Views: 755
Re: Putting macro scheduler into a stand alone client?
Ok, then maybe the use of a mouse click is needed. I was hoping it be a native windows or HTML/browser based app.
- Thu Oct 12, 2023 4:35 pm
- Forum: General Discussion
- Topic: Putting macro scheduler into a stand alone client?
- Replies: 7
- Views: 755
Re: Putting macro scheduler into a stand alone client?
And they need to be clicked? The image I mean... Or could it be programmatically "clicked" instead of using the mouse?
- Thu Oct 12, 2023 2:41 pm
- Forum: General Discussion
- Topic: Putting macro scheduler into a stand alone client?
- Replies: 7
- Views: 755
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: 24028
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: 24028
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: 831
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: 9387
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: 831
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: 831
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: 9387
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: 831
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: 25757
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: 690
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.