Search found 239 matches

by fightcancer
Fri Apr 22, 2022 4:38 pm
Forum: Technical / Scripting
Topic: MDL> weirdness with array values
Replies: 14
Views: 11346

Re: MDL> weirdness with array values

ArrayDim>a,1 Let>k=1 Let>a_%k%=k Mdl>a_%k% = %k% I was hoping to display the value of the array element (i.e. "1") rather than the name of the element (i.e. "a_1"). So the example above displays "a_1 = 1". Is there any way for MS to display "1 = 1" instead w/o using an extra line and var? Thanks!
by fightcancer
Fri Apr 22, 2022 3:54 pm
Forum: Technical / Scripting
Topic: MDL> weirdness with array values
Replies: 14
Views: 11346

Re:

To me that raises the expectation that there should be a way to use array variables in a message. Well sure, we can set array variables. I think its only natuaral to want to be able to display them directly... without having to use the trick of first creating a new variable, setting it's value equa...
by fightcancer
Tue Apr 05, 2022 8:07 pm
Forum: Technical / Scripting
Topic: Why Doesn't ArrayCopy Work?
Replies: 3
Views: 1982

Re: Why Doesn't ArrayCopy Work?

As you have likely discovered, created arrays in MS start with element 1. The FindImagePos is different as it starts with element 0.

Not sure what the fix is.
by fightcancer
Tue Apr 05, 2022 4:12 pm
Forum: Technical / Scripting
Topic: No Help Entry for ArrayDel
Replies: 0
Views: 26410

No Help Entry for ArrayDel

Typing "Array" in the MS editor gives about 7 items in the dropdown including ArrayDel. However, ArrayDel has no Help entry, so pressing F1 takes us to this website. https://www.mjtnet.com/manuals/v15/HTML/welcome.html The Search tab then yields this result: "No documents found for: 'ArrayDel'" Afte...
by fightcancer
Mon Apr 04, 2022 5:47 am
Forum: Technical / Scripting
Topic: Why Doesn't ArrayCopy Work?
Replies: 3
Views: 1982

Why Doesn't ArrayCopy Work?

Why does ArrayCopy do nothing in this script when both the X and Y arrays have data and NF=1?

Code: Select all

Let>needle=D:\MS\images\Paused.bmp
Let>haystack=D:\MS\images\Image2.bmp
FindImagePos>needle,haystack,1,1,X_Array,Y_Array,NF,EXACT
ArrayCopy>X_Array,,new
Thanks!
by fightcancer
Fri Mar 25, 2022 5:45 pm
Forum: Technical / Scripting
Topic: Sending Strings with HoldKey
Replies: 4
Views: 2325

Re: Sending Strings with HoldKey

Yes, I can automate Notepad, but the goal is to automate another app I'm using, an app that doesn't have objects discernible to MS besides Minimize, Maximize and Close.

I have a functional solution for now. Thanks!
by fightcancer
Fri Mar 25, 2022 2:39 pm
Forum: Technical / Scripting
Topic: Sending Strings with HoldKey
Replies: 4
Views: 2325

Re: Sending Strings with HoldKey

Thanks for showing me the UI commands. Hadn't seen those before that I remember. Hmmm.... That script does nothing for me except to focus the Notepad window. If I remove the "//" comment from the UISetValue> line, then it enters into Notepad the text in Str. Sadly, UISetValue> does not work with thi...
by fightcancer
Fri Mar 25, 2022 4:30 am
Forum: Technical / Scripting
Topic: Sending Strings with HoldKey
Replies: 4
Views: 2325

Sending Strings with HoldKey

Any way to send strings using HoldKey? I'd like to send a string without parsing each character. (An app I'm using only accepts HoldKey input, i.e. not Send, VBScript, etc.) Thanks!
by fightcancer
Thu Jan 06, 2022 10:49 pm
Forum: Technical / Scripting
Topic: RenameFile fail
Replies: 5
Views: 2840

Re: RenameFile fail

Thanks!
by fightcancer
Thu Jan 06, 2022 5:38 pm
Forum: Technical / Scripting
Topic: RenameFile fail
Replies: 5
Views: 2840

Re: RenameFile fail

Now I'm getting CF_RESULT_CODE=2 after attempting to rename a file. What's the description for that problem please? (decimal 2 = hex 0002)
https://docs.microsoft.com/en-us/window ... dfrom=MSDN

Thanks!!
by fightcancer
Tue Jan 04, 2022 9:06 pm
Forum: Technical / Scripting
Topic: Wait for Input?
Replies: 2
Views: 1853

Re: Wait for Input?

Tak! Thank you!!
by fightcancer
Tue Jan 04, 2022 9:05 pm
Forum: Technical / Scripting
Topic: RenameFile fail
Replies: 5
Views: 2840

Re: RenameFile fail

Oh Hex! My bad. Thank you!
by fightcancer
Tue Jan 04, 2022 8:23 pm
Forum: Enhancement Suggestions
Topic: [added 15.0.23] Run command, capture STDOUT
Replies: 29
Views: 75131

Re: Run command, capture STDOUT

Seconding this request!
by fightcancer
Tue Jan 04, 2022 7:47 pm
Forum: Technical / Scripting
Topic: RenameFile fail
Replies: 5
Views: 2840

RenameFile fail

What does code 115 indicate please? The MSDN link on the Help page doesn't help in this case.

Watch List shows:
0: CF_RESULT_CODE=115

Thanks!
by fightcancer
Tue Jan 04, 2022 7:28 pm
Forum: Technical / Scripting
Topic: Wait for Input?
Replies: 2
Views: 1853

Wait for Input?

Does MS have a way to receive input from a script I run through the command line?
Sign up to our newsletter for free automation tips, tricks & discounts