|
Post by marcop0l0 on Apr 22, 2022 19:34:23 GMT
The following code doesn't run properly :
1 | RUN ACTION | DEFINE INTEGER VARIABLE | %INTEGER%::5 2 | FOR | I | = | 0 TO %INTEGER% | NEXT 3 | RUN ACTION | MESSAGE PROMPT | Main Loop - Value of %i% / %integer%::%i% / %integer%::1 4 | FOR | I | = | 0 TO %INTEGER% | NEXT 5 | RUN ACTION | MESSAGE PROMPT | Second Loop - Value of %i% / %integer%::%i% / %integer%::1 6 | FOR | NEXT 7 | FOR | I | = | 0 TO %INTEGER% | NEXT 8 | RUN ACTION | MESSAGE PROMPT | Third Loop - Value of %i% / %integer%::%i% / %integer%::1 9 | FOR | NEXT 10 | FOR | NEXT Main and second loop run properly but third loop not.
|
|
|
Post by philranger on Apr 24, 2022 12:52:26 GMT
|
|
|
Post by marcop0l0 on Apr 24, 2022 17:30:21 GMT
Hello,
This is what I want to do.
Currently, I made two custom loop instead of two FOR loop inside the main loop.
1 | 718 | 301| 50 | Left Click 2 | FOR | I | = | 0 TO 22 | NEXT 3 | RUN ACTION | DEFINE INTEGER VARIABLE | %click_pos%::=301 * | click_loop 4 | 718 | %click_pos% | 50 | Mouse Movement 5 | 718 | %click_pos% | 50 | Left Click 6 | RUN ACTION | DEFINE INTEGER VARIABLE | %click_pos%::+37 7 | IF | INTEGER VARIABLE | %click_pos% | LESS THAN EQUAL TO | 597 | GOTO MACRO LINE | click_loop 8 | RUN ACTION | DEFINE INTEGER VARIABLE | %drag_pos%::=597 9 | RUN ACTION | DEFINE INTEGER VARIABLE | %drag_speed%::=10 10 | 718 | %drag_pos% | 50 | Left Click Down * | drag_loop 11 | 718 | %drag_pos% | 1 | Mouse Movement 12 | RUN ACTION | DEFINE INTEGER VARIABLE | %drag_pos%::-%drag_speed% 13 | IF | INTEGER VARIABLE | %drag_pos% | LESS THAN | 275 | DEFINE INTEGER VARIABLE | %drag_speed%::=1 14 | IF | INTEGER VARIABLE | %drag_pos% | GREATER THAN EQUAL TO | 262 | GOTO MACRO LINE | drag_loop 15 | 718 | %drag_pos% | 50 | Mouse Movement 16 | 718 | %drag_pos% | 50 | Left Click Release 17 | 718 | 301| 50 | Left Click 18 | FOR | NEXT
|
|
|
Post by Steve on Apr 28, 2022 20:26:40 GMT
Hi marcop0l0Nesting more than one FOR I loop doesn't work as it should. I thought this was fixed with version 8.3.3 but nope doesnt seem like it. Well, one nested for loop works but just not two or more... I'd suggest doing more of what you've done for your macro here; goto loops and the like. Cheers for pointing this one out. I'll add it to the bugtrack list ( www.turnssoft.com/bugtrack.html#bugs) a little later on.
|
|