A question for beginners


Xnip2025-05-12_06-27-37
I just started learning this software, and I want to make a script to help me work. But the process is not right, can you help me find a solution? Thank you very much
What I want to do is: there are many pages that have been opened and loaded in Google Chrome. There is no dynamic loading.

  1. I want to scroll each page step by step. So that I can quickly scan the content inside
  2. After scrolling to the bottom, wait for two seconds
  3. Press the command+w key on the keyboard to close the current page.
  4. This cycle is completed for all the pages I opened.

Now there is a problem. Short pages can go through this process, but long pages always scroll halfway and execute the closing page behind. I really don’t know how to do it

The code part was actually given to me by AI, and I don’t know how to do it.

This should get you started -- it'll do what you want for the 3 Forum pages listed in the first action:

AutoPage in Chrome.kmmacros (6.1 KB)

Image

It'll be much better to open a page, scroll through it, close it, open the next as this macro does. Just change the list in the first action to a list of the pages you want to see.

2 Likes

That's pretty cool and gives me some ideas for quickly checking pages out. Something I never had thought of doing until your macro.