Search found 1106 matches

by armsys
Sun Nov 01, 2015 6:23 am
Forum: Technical / Scripting
Topic: Python Code
Replies: 13
Views: 11645

Python Code

Would anyone be very kind enough to share your complete MS+Python code with us?
Thank you.
by armsys
Sun Nov 01, 2015 5:14 am
Forum: Technical / Scripting
Topic: Unruly Variable Names
Replies: 7
Views: 5472

Re: Unruly Variable Names

Hi JRL & PepsiHog, Thank you for sharing your insight on unruly variable naming. I didn't know the naughty space is a showstopper. JRL's variable is certainly a delightful entrapment: Let>1234=2 mdl>1234 Let>kk=1 Add>kk,1234 MDL>kk Everyone will be stunned to find out that KK results in 3, not 1235....
by armsys
Sat Oct 31, 2015 9:54 pm
Forum: Technical / Scripting
Topic: Unruly Variable Names
Replies: 7
Views: 5472

Re: Unruly Variable Names

PepsiHog wrote:Yeah, I know. It's AWESOME, isn't it?
Hi PepsiHog,
It's fantastic to see you back here.
Could you entertain us with your samples of AWESOME unruly variable names?
by armsys
Fri Oct 30, 2015 10:35 pm
Forum: Technical / Scripting
Topic: Issue with running Script from a shortcut
Replies: 7
Views: 5226

Re: Issue with running Script from a shortcut

The problem is that the first time you press Alt + Esc the dialog is focused and steals the "Alt" key press. You can prove this by running the program and picking on the desktop before pressing Alt + Esc and the program will stop with one press rather than two. Hi JRL, Stealing focus is likely the ...
by armsys
Fri Oct 30, 2015 3:04 pm
Forum: Technical / Scripting
Topic: Issue with running Script from a shortcut
Replies: 7
Views: 5226

Re: Issue with running Script from a shortcut

My following script started as Desktop link succeed quitting with a single press of Ctrl+Esc.

Code: Select all

// Stop Script CTRL+Esc
OnEvent>KEY_DOWN,VK27,2,Quit

Label>Begin
  Wait>5
  MSg>Here I am
Goto>Begin

SRT>Quit
  Exit>0
END>Quit
by armsys
Fri Oct 30, 2015 12:29 pm
Forum: Technical / Scripting
Topic: Issue with running Script from a shortcut
Replies: 7
Views: 5226

Re: Issue with running Script from a shortcut

How do you define the "Start in" path in your link?
by armsys
Fri Oct 30, 2015 11:40 am
Forum: Technical / Scripting
Topic: List of Variables
Replies: 1
Views: 2231

List of Variables

I write a simple and ultra fast script to enumerate variables for debugging. I impose my rule on variable naming: only A-z, 0-9 and _ (underscore) are allowed. Please feel free to use it. How to use: Insert your script in the label area named Script. LabelToVar>Script,Script Let>Rex=(?im)(?<=Let>)([...
by armsys
Fri Oct 30, 2015 10:46 am
Forum: Technical / Scripting
Topic: Unruly Variable Names
Replies: 7
Views: 5472

Unruly Variable Names

I'm stunned to discover that Macro Scheduler in fact imposes no rule on variable naming.
The following code shows "xy*! 2" is legally allowed as a variable name!
But it's useless as it isn't recognized subsequently by other commands.

Code: Select all

Let>xy*!  2=123
Let>y=xy*!  2
MDL>xy*!  2=123
by armsys
Fri Oct 30, 2015 9:48 am
Forum: Technical / Scripting
Topic: Macro stops working after GoSub is executed
Replies: 15
Views: 9933

Re: Macro stops working after GoSub is executed

Hi Grovkillen, Please feel free to use my script to find duplicates (post no. 6). https://www.mjtnet.com/forum/viewtopic.php?f=2&t=7733 Your script is absolutely useful in creating a list of variables and their occurrences. Hope Macro Scheduler will include your debugging tool in the future. Thank y...
by armsys
Fri Oct 30, 2015 9:24 am
Forum: Technical / Scripting
Topic: Macro stops working after GoSub is executed
Replies: 15
Views: 9933

Re: Macro stops working after GoSub is executed

Hi Grovkillen, Please feel free to use my script to find duplicates (post no. 6). https://www.mjtnet.com/forum/viewtopic.php?f=2&t=7733 Thank you for referring to the extremely valuable thread. It's my first time to become aware that MS can call dynamically-naming subroutines. Let>I=2 Let>TEST={if(%...
by armsys
Thu Oct 29, 2015 10:13 pm
Forum: Technical / Scripting
Topic: Macro stops working after GoSub is executed
Replies: 15
Views: 9933

Re: Macro stops working after GoSub is executed

Another time-saving troubleshooting technique is to insert **BREAKPOINT** (case insensitive) at the line of interest. GetScreenRes>sX,sY **BREAKPOINT** ScreenCapture>0,0,sX,sY,C:\Programs\Macro Scheduler 11\scre\screen.bmp FindImagePos>C:\Programs\Macro Scheduler 11\pictures\fight.bmp,C:\Programs\Ma...
by armsys
Wed Oct 28, 2015 9:54 am
Forum: Technical / Scripting
Topic: How to refer to current directory?
Replies: 2
Views: 2743

Re: How to refer to current directory?

Not sure if %SCRIPT_DIR% meets your requirement.
by armsys
Mon Oct 26, 2015 7:13 am
Forum: Beginners
Topic: Open Web page and find position on screen
Replies: 3
Views: 5007

Re: Open Web page and find position on screen

Please try:

Code: Select all

Run>C:\Program Files (x86)\Mozilla Firefox\firefox.exe
WaitWindowOpen>Mozilla Firefox*
Wait>1
Press CTRL
Send>l
Release CTRL
Wait>0.2
Send>http://finance.yahoo.com
Press ENTER
by armsys
Fri Oct 23, 2015 8:46 am
Forum: Technical / Scripting
Topic: Macro Pro Text capture wizard not working
Replies: 2
Views: 2838

Re: Macro Pro Text capture wizard not working

david789 wrote:Hi, i bought the MacroPro,
In the Sample folder, you will find a sample script named Text Capture.scp.
Also look up Marcus' Capturing Screen Text.
Sign up to our newsletter for free automation tips, tricks & discounts