|
Post by Jacob on May 10, 2018 15:51:53 GMT
Hi,
There is currently an option in conditions to go to a specific line,
I think it can be useful to add an option to go to X lines down instead, in case I want to add lines before the condition and relist the macros.
Also it can be useful to do a simple action like a regular key press or mouse click in condition actions but it can be worked in with the previous solution in 2 lines instead of 1.
|
|
|
Post by Steve on May 12, 2018 2:11:59 GMT
Hi Jacob,
Thank you for this suggestion. I will definitely look into this. I also agree with you about the keypress and clicks as condition actions. I will look into the addition.
I have a temporary solution for your GOTO X lines. It involves using the %return% variable. This variable holds the line number or the previously completed line.
1 | 2209 | 271 | 497 | Mouse Movement 2 | RUN ACTION | | | | MESSAGE PROMPT | Hello::World 3 | 2207 | 270 | 10 | Mouse Movement 4 | 2204 | 269 | 1000 | Mouse Movement 5 | 2203 | 267 | 18 | Mouse Movement 6 | 2200 | 266 | 10 | Mouse Movement 7 | 2197 | 263 | 10 | Mouse Movement 8 | 2195 | 262 | 10 | Mouse Movement 9 | 2193 | 259 | 10 | Mouse Movement 10 | 2191 | 257 | 10 | Mouse Movement 11 | RUN ACTION | | | | GOTO MACRO LINE | %return%-8
In this example line number 11 will return to line number 2. The value for %return% is 10. So 10-8=2. Therefore "GOTO MACRO LINE | 2". This could also work forward. For example %return%+3 would equate to "GOTO MACRO LINE | 13".
Hope this helps.
|
|
|
Post by Jacob on May 14, 2018 22:20:02 GMT
Hi,
Thanks that helped me.
my only problem with this is that %return% represents line number but GOTO MACRO LINE goes to the line with the value in the beginning.
for example in the sample code below instead of going to line 2 (2 | RUN ACTION | | | | MESSAGE PROMPT | Hello::World) it will go to line 3 (3 | 2207 | 270 | 10 | Mouse Movement)
1 | 2209 | 271 | 497 | Mouse Movement * | Begin loop 2 | RUN ACTION | | | | MESSAGE PROMPT | Hello::World 3 | 2207 | 270 | 10 | Mouse Movement 4 | 2204 | 269 | 1000 | Mouse Movement 5 | 2203 | 267 | 18 | Mouse Movement 6 | 2200 | 266 | 10 | Mouse Movement 7 | 2197 | 263 | 10 | Mouse Movement 8 | 2195 | 262 | 10 | Mouse Movement 9 | 2193 | 259 | 10 | Mouse Movement 10 | 2191 | 257 | 10 | Mouse Movement 11 | RUN ACTION | | | | GOTO MACRO LINE | %return%-8
Which currently I solved by simply removing all comments from the macro.
|
|