|
Post by raghav on Sept 17, 2018 3:14:55 GMT
Hi There,
Need your help in downloading ebook (which is legal and permitted by ebook site). But condition is that we will be able to print each single at once as a pdf. I.e only single page print option available
We use to print to pdf. Now I need your expertise to help me out in having the script working in loop to save pages as pdf in folder.
The script that I wrote is as below: 1 | 767 | 566 | 1855 | Left Click Down 2 | 767 | 566 | 156 | Left Click Release The 2 two steps ...will do action to click on button for Next page. 3 | 730 | 76 | 4813 | Left Click Down 4 | 730 | 76 | 142 | Left Click Release The above 2 stpes, will click on Print button. 5 | 211 | 140 | 4604 | Left Click Down 6 | 211 | 140 | 228 | Left Click Release The above 2 steps, will click on Save button. 7 | 494 | 678 | 1496 | keypress 39 This action will press the Page number / file number to save in folder as pdf file. 8 | 669 | 766 | 1510 | Left Click Down 9 | 669 | 766 | 163 | Left Click Release The above 2 steps to click on save button to close the window. 10 | 387 | 18 | 1898 | Left Click Down 11 | 387 | 18 | 172 | Left Click Release The above 2 steps to close the Print Dialog window.
I want to Loop these 11 steps with Keypress to increase from n to n+1, help me with a condition to define last page number. So the loop can stop.
Regards Raghav
|
|
|
Post by Steve on Sept 17, 2018 5:24:05 GMT
Hi Raghav,
1 | RUN ACTION | | | | DEFINE INTEGER VARIABLE | %INTEGER%::1 2 | 767 | 566 | 1855 | Left Click Down 3 | 767 | 566 | 156 | Left Click Release 4 | 730 | 76 | 4813 | Left Click Down 5 | 730 | 76 | 142 | Left Click Release 6 | 211 | 140 | 4604 | Left Click Down 7 | 211 | 140 | 228 | Left Click Release 8 | 494 | 678 | 1496 | keypress %integer% 9 | 669 | 766 | 1510 | Left Click Down 10 | 669 | 766 | 163 | Left Click Release 11 | 387 | 18 | 1898 | Left Click Down 12 | 387 | 18 | 172 | Left Click Release 13 | RUN ACTION | | | | DEFINE INTEGER VARIABLE | %INTEGER%::+1 14 | IF | INTEGER VARIABLE | %INTEGER% | < | 51 | GOTO MACRO LINE | 2 This script will loop a total of 50 times whilst increasing the value of keypress by 1 each time.
At line 1 we define %integer% (our counter) to 1 At line 8 we keypress out the value of %integer% At line 13 we add 1 to the value of %integer% At line 14 we evaluate the value of %integer%. If the value is < (less) than 51 then GOTO macro line 2. If the value is not less than 51 the macro will end.
I hope this helps.
Regards, Steve.
|
|