How to “Scroll down a frame (PgDn)” & “Scroll up a frame (PgUp)” in a browser window/tab without synthesize inputs

32 views
Skip to first unread message

cw noway

unread,
Jun 12, 2024, 3:52:28 AMJun 12
to AutoControl
How to “Scroll down a frame (PgDn)” & “Scroll up a frame (PgUp)” in a browser window/tab without synthesize inputs


Do you have preconfigured “window” Actions to perform the two browser shortcuts below?  I currently use synthesize inputs to accomplish this.

1.  Scroll down a frame (shortcut:  Space or Page Down)

2.  Scroll up a frame (shortcut:  Shift+Space or Page Up)


Maybe the Actions exist already and I overlooked them by accident.  If they do not exist, could you add the actions?



Any assistance would be greatly appreciated.

Thanks in advance

AutoControl support

unread,
Jun 12, 2024, 5:39:11 AMJun 12
to AutoControl
Did you try the "SCROLL" action (found in "Window Actions")?

If that is not suitable in your case, then the only other option would be the "RUN SCRIPT" action with the following code:

scrollBy(0, innerHeight)
 

cw noway

unread,
Jun 12, 2024, 7:00:44 AMJun 12
to AutoControl

Thanks for the response.

I looked at the “Scroll” Action, but didn’t see any settings the would perform the same as  what “PgDn or PgUp” synthesize input would do.


One more similar question:

Do you have any preconfigured Actions that can so-called “Scroll To The Top (scroll to the very top of the page),” and “Scroll To The Bottom (scroll to the very bottom of the page)?”

I also use “synthesize inputs” to accomplish these two things also.  Was just curious if there are preconfigured Actions to accomplish these two task.


Thanks in advance.

AutoControl support

unread,
Jun 12, 2024, 7:47:43 AMJun 12
to AutoControl

I looked at the “Scroll” Action, but didn’t see any settings the would perform the same as  what “PgDn or PgUp”

Scrolling 13 units is about the same as Page Down/Up.


 

Do you have any preconfigured Actions that can so-called “Scroll To The Top (scroll to the very top of the page),” and “Scroll To The Bottom (scroll to the very bottom of the page)?”


There are no predefined actions to go to the top or bottom because all 3 ways of doing it have limitations that the user must be aware of.

1. The "SCROLL" action with a large scroll amount.
The limitation here is that the SCROLL action needs the target tab to be visible. i.e. it won't work with minimized windows or inactive tabs.

2. The "SYNTHESIZE INPUT" action.
The limitation here is that synthetic input can only be directed to the active tab in the focused window.

3. The "RUN SCRIPT" action with the script scrollBy(0,-9E9) or scrollBy(0,9E9)
The limitation in this case is that the RUN SCRIPT action does not work on protected pages.

You must choose your lesser evil.

cw noway

unread,
Jun 12, 2024, 1:06:50 PMJun 12
to AutoControl
Thanks for the information.
Reply all
Reply to author
Forward
0 new messages