Search found 1106 matches

by armsys
Wed Nov 04, 2015 2:16 pm
Forum: Technical / Scripting
Topic: Python Hello The World
Replies: 7
Views: 6038

Re: Python Hello The World

Can MS support Python 3.5 64-bit?
by armsys
Wed Nov 04, 2015 2:13 pm
Forum: Technical / Scripting
Topic: Python Hello The World
Replies: 7
Views: 6038

Re: Python Hello The World

You mean you want it to display some kind of dialog, like a message box. Yes, that's exactly what I asked for. So I Googled that for you. There are various dialog libraries but ideally we want one that comes as standard with Python so you don't have to install custom library files. Thanks for your ...
by armsys
Wed Nov 04, 2015 1:49 pm
Forum: Technical / Scripting
Topic: Python Code
Replies: 13
Views: 11595

Re: Python Code

Requires the Python 2.7 DLL to be installed and in the path. We recommend installing the python27.dll in the same folder as Macro Scheduler or of your compiled macro. Any libraries and runtimes can also be included in lib,libs,dll etc folders at the same level, consistent with the usual Python setu...
by armsys
Wed Nov 04, 2015 1:47 pm
Forum: Technical / Scripting
Topic: Python Hello The World
Replies: 7
Views: 6038

Re: Python Hello The World

Marcus Tettmar wrote:What do you mean?
If Python displays a message by means of print ("....."), it has to relay the message to output in: PYExec>pcode,output,x.
Is it possible for a Python code displays messages directly onto screen instead of thru MS?
by armsys
Wed Nov 04, 2015 12:43 pm
Forum: Technical / Scripting
Topic: Python Code
Replies: 13
Views: 11595

Re: Python Code

1. Download this file: https://www.mjtnet.com/software/python27.zip 2. Extract EVERYTHING from that zip into the Macro Scheduler 14 *program folder* (usually c:\program files (x86)\Macro Scheduler 14 3. You should see python27.dll as well as Lib, DLLs, and libs sub folders and these should contains...
by armsys
Wed Nov 04, 2015 12:41 pm
Forum: Technical / Scripting
Topic: Python Hello The World
Replies: 7
Views: 6038

Python Hello The World

The following code works fine. /* python_code: x = "Hello" print("Hello The World") */ //Load the Python code to a variable LabelToVar>python_code,pcode //Run the code and request the values of the sdict and myip variables ... PYExec>pcode,output,x MDL>output Question: How to display "Hello The Worl...
by armsys
Wed Nov 04, 2015 10:38 am
Forum: Technical / Scripting
Topic: Python Code
Replies: 13
Views: 11595

Re: Python Code

Marcus Tettmar wrote:You don't say what the error is.
When executing Line 37, msched.exe suddenly vanishes from Windows without leaving any traces.
by armsys
Wed Nov 04, 2015 10:13 am
Forum: Technical / Scripting
Topic: Python Code
Replies: 13
Views: 11595

Re: Python Code

The following two files are the best I can find:

Code: Select all

urllib2.py
urllib2.pyc
Please help. Thanks.
by armsys
Wed Nov 04, 2015 9:52 am
Forum: Technical / Scripting
Topic: Python Code
Replies: 13
Views: 11595

Re: Python Code

Marcus Tettmar wrote:You don't say what the error is. But as well as the DLL you need the Imports. This uses urllib2 so you'll need that lib.
Where can I download the urllib2 please?
by armsys
Tue Nov 03, 2015 11:34 pm
Forum: Technical / Scripting
Topic: Python Code
Replies: 13
Views: 11595

Re: Python Code

Houston, I have a problem! MS crashes at Line 37. Please rescue me. MS13.jpg /* First ensure Python27.dll and imports are in your Macro Scheduler program folder. Download and unzip this file: https://www.mjtnet.com/software/python27.zip */ Let>url=http://ip.jsontest.com/ /* python_code: import urlli...
by armsys
Tue Nov 03, 2015 10:39 pm
Forum: Technical / Scripting
Topic: Ambiguous Manual--OnEvent>Custom
Replies: 5
Views: 4261

Re: Ambiguous Manual--OnEvent>Custom

Marcus Tettmar wrote:The trigger test subroutine is checked between every line.
Hi Marcus,
Your Revelation "The trigger test subroutine is checked between every line" is the key answer I was looking for.
Thank you.
by armsys
Tue Nov 03, 2015 8:54 pm
Forum: Technical / Scripting
Topic: Unable to Getfocus of Foxit Reader
Replies: 6
Views: 4436

Re: Unable to Getfocus of Foxit Reader

Hi Gchichester,
What cause you to believe you're getting the focus of Foxit Reader?
Besides, the GetFocus command doesn't exist in MS.
by armsys
Mon Nov 02, 2015 9:54 pm
Forum: General Discussion
Topic: Any way to turn off Windows 10 toast notifications?
Replies: 4
Views: 8176

Re: Any way to turn off Windows 10 toast notifications?

Hi Daniel347x, SetFocus>XYplorer /* Assign this macro to ALT+Q. When you hit alt-q it will start and WAIT for you to release the ALT key It will then run the code in the YourCode subroutine ... */ SRT>YourCode //Press Enter Exit>0 END>YourCode Press alt Press tab Release tab OnEvent>key_down,VK18,3,...
by armsys
Sun Nov 01, 2015 9:33 pm
Forum: Technical / Scripting
Topic: Ambiguous Manual--OnEvent>Custom
Replies: 5
Views: 4261

Re: Ambiguous Manual--OnEvent>Custom

Referring to the screenshot, I am stunned by the discovery of:
1. Upon Line 1, subroutine MyTriggerSub is immediately and repeatedly executed.
2. Line 2 and the rest are never executed.
Is this normal?
by armsys
Sun Nov 01, 2015 11:52 am
Forum: Technical / Scripting
Topic: Ambiguous Manual--OnEvent>Custom
Replies: 5
Views: 4261

Ambiguous Manual--OnEvent>Custom

Referring to the manual: OnEvent>Custom,SubroutineName,VariableName,Subroutine Custom Trigger - runs given subroutine periodically and triggers when specified variable = TRUE OnEvent>CUSTOM,MyTriggerSub,DoIT,DoSomething If>OK=1 Gosub>MyTriggerSub Endif SRT>MyTriggerSub //This custom trigger monitors...
Sign up to our newsletter for free automation tips, tricks & discounts