joe
Full Member
Posts: 46
|
Post by joe on Mar 22, 2023 5:45:52 GMT
I would like to make a macro that can copy a number from a website, then round that number down to the nearest 100, and then paste the answer in a different part of the website.
For example, if the macro copied the number 199.09 at point A the macro would then paste number 100 at point B.
I would really like to be able to do this without having to open something like notepad or excel.
Is this possible?
Thanks!
|
|
|
Post by philranger on Mar 22, 2023 23:40:00 GMT
|
|
joe
Full Member
Posts: 46
|
Post by joe on Mar 23, 2023 0:38:50 GMT
Hello philranger,
Thanks for your reply.
I'm not really sure how to write the code so that the macro would divide the number by 100 and then multiply the answer by 100.
What you're saying is that line seven should be something like "If Integer Variable %swapgold% divide by 100 then multiply answer by 100"?
1 | RUN ACTION | WAIT MILLISECONDS | 500 * | copy from website 2 | RUN ACTION | MOUSE CLICK | Left click at 1020 582 2 times with 77 ms delay 3 | 1020 | 582 | 500 | Keypress Ctrl+ | c 4 | RUN ACTION | WAIT MILLISECONDS | 500 5 | RUN ACTION | DEFINE INTEGER VARIABLE | %swapgold%::%clipboard% 6 | RUN ACTION | WAIT MILLISECONDS | 500 7 | IF | INTEGER VARIABLE | %swapgold% | GREATER THAN EQUAL TO | 100 | LOAD MACRO | C:\Users\josep\Desktop\MiniMouseMacros\100plus.mmmacro 8 | RUN ACTION | LOAD MACRO | C:\Users\josep\Desktop\MiniMouseMacros\100minus.mmmacro
|
|