|
Post by cyberchipz on Aug 25, 2021 12:55:08 GMT
So, I copied and pasted this Left Click that uses variables.
27 | %TL1X% | %TL1Y% | 300 | Left Click
And when I copy it, I get the error message about a malformed click... and the information on how to create it properly. The error message is "Manual Edit - no number where required, and it shows the simple use of this with actual values. I haven't run that code, so I don't know if it will actually do the click; but, the main problem is I can't just copy and paste. Ironically, I can enter it manually... it's just the copy and paste that doesn't work.. I need this, and variants of this in several places.
I've been using %INTEGER% variables for this... for a long time... and am now trying to use the %NAMED% variables... I don't declare this variable except I do collect the information in an input box...
24 | RUN ACTION | INPUT BOX | Enter the X Location of the Language Selection %LANGUAGE1% for the TRANSLATE LANGUAGE side:::X Location for TRANSLATE %LANGUAGE1%::TL1X
25 | RUN ACTION | INPUT BOX | Enter the Y Location of the Language Selection %LANGUAGE1% for the TRANSLATE LANGUAGE side:::Y Location for TRANSLATE %LANGUAGE1%::TL1Y ... 27 | %TL1X% | %TL1Y% | 300 | Left Click
So, I'm not sure what's going on... as I thought when building the code here, it just treats %TL1X% as a string... and when this would contain a numeric value, it should be valid code...
Anyone have any idea what I'm missing here?
Thanks for the help!
Chip
|
|
|
Post by cyberchipz on Aug 25, 2021 19:44:46 GMT
Well, found a couple of workarounds... if it's only one or two copies I want to make... I CTRL-(left arrow) to comment out the code, then copy and paste it. Or, If I need extensive, and I am starting to use it more, editing... using the MACRO text editor in the MENU system.. the one with find and replace... and a few other functions. So, if I had to make a guess... the %NAMED% variables and such are in flux... so much so, I'm still on the previous version... of which I've also discovered I cannot use a %NAMED% variable if I want to store a variable name in the GOTO MACRO LINE %NAMED% does not work; but, GOTO MACRO LINE %STRING1% or other old style variable still works. I want to move up to the new version. but, I do not know what will and won't work yet with %NAMED% variables... that's not clear to me yet... Plus, because of the conversion, I noticed I cannot see the GOTO MACRO LINE ? anymore, or the commented labels for the GOTO... But, I'm dying to play with it... so, soon.. I say, soon...
|
|
|
Post by Steve on Aug 29, 2021 21:41:27 GMT
So, I copied and pasted this Left Click that uses variables. 27 | %TL1X% | %TL1Y% | 300 | Left Click And when I copy it, I get the error message about a malformed click... and the information on how to create it properly. The error message is "Manual Edit - no number where required, and it shows the simple use of this with actual values. I haven't run that code, so I don't know if it will actually do the click; but, the main problem is I can't just copy and paste. Ironically, I can enter it manually... it's just the copy and paste that doesn't work.. I need this, and variants of this in several places. Anyone have any idea what I'm missing here? Thanks for the help! Chip Hi cyberchipz , Been awhile, hope you doing well. Thanks for your post on this. The error your seeing there is some old entry validation that has been in MMM since version 1.5. Your not missing anything. Your syntax is fine. The validation is not recognizing your named variables when it should be. I need to update, or get rid of, that validation code behind the line entry. So, if I had to make a guess... the %NAMED% variables and such are in flux... so much so, I'm still on the previous version... of which I've also discovered I cannot use a %NAMED% variable if I want to store a variable name in the GOTO MACRO LINE %NAMED% does not work; but, GOTO MACRO LINE %STRING1% or other old style variable still works. I want to move up to the new version. but, I do not know what will and won't work yet with %NAMED% variables... that's not clear to me yet... Plus, because of the conversion, I noticed I cannot see the GOTO MACRO LINE ? anymore, or the commented labels for the GOTO... But, I'm dying to play with it... so, soon.. I say, soon... I wouldn't say named variables are in a 'flux'. Other than the syntax validation issue above what other things have you seen for named variables for them to be in a 'flux'? What version are you on that GOTO MACRO LINE %NAMED% does not work?
I gave the GOTO MACRO LINE with named variables on a named variable comment line a test with this version and the previous version and its works as expected: 1 | RUN ACTION | DEFINE STRING VARIABLE | fish::carp 2 | RUN ACTION | MESSAGE PROMPT | heading * | carp 3 | RUN ACTION | MESSAGE PROMPT | start of loop 4 | 1198 | 1460 | 10 | Mouse Movement 5 | 1198 | 1453 | 10 | Mouse Movement 6 | 1198 | 1444 | 70 | Mouse Movement 7 | 1196 | 1440 | 16 | Mouse Movement 8 | 1194 | 1438 | 10 | Mouse Movement 9 | 1194 | 1433 | 10 | Mouse Movement 10 | RUN ACTION | GOTO MACRO LINE | %fish%
|
|