Setting up a scrolling command for FireFox Browser on IGEL OS


Hi all… wondering if someone could assist with setting up a scrolling command for FireFox on iGel. Have a website that just cannot fit the screen no matter what type of resolution or DPI scaling. I wanted to see if I could simply command to set the horizontal scroll to always go to the right, and then scroll up and down. appreciate it

Learn more, read the entire thread inside the IGEL Community o Slack

Have you tried Chromium?


we have not tried chromium just yet in this environment.. We are using firefox to follow standard first off, then will move to chromium once FF is good.

we are using 11.08.230.01, just looking to auto scroll a Firefox webpage. to move horizontally once to the right, and to continuously scroll up and down in a certain amount of time/seconds


Zoom in FF is no option?


I have used Zoom, still need to scroll


4k monitor 🙂


then we need magnifier to see the font, wish it was that easy


Is it public site? Can you share to see what you seeing?

If you are looking at chromium in future, it might be better to start that way. Chromium can be configured for extensions, so you might be able to leverage an “in-browser extension” that lets you configure the option to auto-scroll on interval? There are lots of extension, not sure which exact one supports this.

Can I send you a magnifier? There is one built-in to IGEL, I believe! 🙂


And … OS 12 will be Chromium


No Firefox love in OS12?!? 😓


Not Public, sure send me a magnifier please 🙂 . Currently its FireFox, Chromium will be implemented after. Thanks

I was able to create something that allows for scrolling up and down via xdotool


Is this for a dashboard type view? Will it require the browser to refresh?

Ah…ok. So you got it done?

scroll scroll scroll


scroll up and down yes,

yes it is a dashboard type view.


So you need:

1. Browser loads page

2. Browser steps to the right

3. Browser steps down, down, down

4. Browser refreshes page – goto step 1.

Or something else?

If you’ve got the xdotool figured out, then isn’t it just a matter of pressing the “right arrow” key at this point, to move the webpage over?

Here is a example “Firefox Scroller Custom-Application”, that:

1. Is set to start on auto-launch on boot, (also called by CTRL-ALT-SHIFT Q)

2. Launches firefox and opens ACME.COM ACME.COM in a 500×500 window (to demo scrolling) 🙂

3. Scrolls around the window a bunch of times

a. currently defined 9 difference sequences or cases, but customize to your own liking

b. some example sequences shown

1. Step 1 reloads the webpage and starts all over again

2. RUNS FOREVER….or until the browser tab with that name is closed

For your own testing change:

1. Set `s=”Your Webpage Title”;`

2. Set `DEBUG=false;` when you don’t want to flood the syslog with messages

3. Change `sleep 2;` with your own interval

“`# With comments

DEBUG=true; # syslog will show lots of debug logs with this true

s=”ACME”; # set website title for partial xdotool match later

if [ .${DEBUG}. = .true. ]; then set -x; fi; # more verbose logging

logger -it “custom-firefox-scroller-ca” “start firefox with url”;

# launch firefox with url as background process

( firefox –width 500 –height 500 acme.com acme.com )&

sleep 6; # wait for firefox launch

i=0; # counter for logic conditions

# loop until firefox closed

while true; do

sleep 2;

if ! xdotool search –classname firefox search –name $s windowfocus > /dev/null; then

logger -it “custom-firefox-scroller-ca” “firefox with website title [$s] not found, exiting custom app”;

exit 0; # exit if firefox not running

fi;

i=$((i+1));

# define number of possible step values (10), using modulus operator, and assign current step to variable j

j=$((i%10));

if [ .${DEBUG}. = .true. ]; then echo “custom-firefox-scroller-ca: i=$i j=$j”; fi;

case $j in

1)

xdotool search –name $s key F5;

sleep 2;

xdotool search –name $s key Home Right Right Right Right Right Right;;

2|3|4)

xdotool search –name $s key Down Down;;

5|6|7)

xdotool search –name $s key Up Up;;

8)

xdotool search –name $s key Home;;

9)

xdotool search –name $s key End;;

esac;

done;“`

And now make it a single line of “commands” that is used in the definition of a custom-application. This will run in user context (don’t exceed 4000 characters):

1. remove all the comments

2. make sure each command list ends with command list terminator (ie. semicolon;)

3. combine into one long messy line 🥴

4. Note that this executes in “/bin/sh”, or dash shell, by default

5. Don’t put semicolon after the background (&) operator

“`DEBUG=true; s=”ACME”; if [ .${DEBUG}. = .true. ]; then set -x; fi; logger -it “custom-firefox-scroller-ca” “start firefox with url”; ( firefox –width 500 –height 500 http://acme.com http://acme.com )& sleep 6; i=0; while true; do sleep 2; if ! xdotool search –classname firefox search –name $s windowfocus > /dev/null; then logger -it “custom-firefox-scroller-ca” “firefox with website title [$s] not found, exiting custom app”; exit 0; fi; i=$((i+1)); j=$((i%10)); if [ .${DEBUG}. = .true. ]; then echo “custom-firefox-scroller-ca: i=$i j=$j”; fi; case $j in 1) xdotool search –name $s key F5; sleep 2; xdotool search –name $s key Home Right Right Right Right Right Right;; 2|3|4) xdotool search –name $s key Down Down;; 5|6|7) xdotool search –name $s key Up Up;; 8) xdotool search –name $s key Home;; 9) xdotool search –name $s key End;; esac; done;“`

And with any luck, it might behave like the attached animated-gif. The gif shows browser and the debug syslog output side-by-side to show the script logic as it executes.

Hope that helps! 😁

Here is a example “Firefox Scroller Custom-Application”, that:

1. Is set to start on auto-launch on boot, (also called by CTRL-ALT-SHIFT Q)

2. Launches firefox and opens ACME.COM ACME.COM in a 500×500 window (to demo scrolling) 🙂

3. Scrolls around the window a bunch of times

a. currently defined 9 difference sequences or cases, but customize to your own liking

b. some example sequences shown

1. Step 1 reloads the webpage and starts all over again

2. RUNS FOREVER….or until the browser tab with that name is closed

For your own testing change:

1. Set `s=”Your Webpage Title”;`

2. Set `DEBUG=false;` when you don’t want to flood the syslog with messages

3. Change `sleep 2;` with your own interval

“`# With comments

DEBUG=true; # syslog will show lots of debug logs with this true

s=”ACME”; # set website title for partial xdotool match later

if [ .${DEBUG}. = .true. ]; then set -x; fi; # more verbose logging

logger -it “custom-firefox-scroller-ca” “start firefox with url”;

# launch firefox with url as background process

( firefox –width 500 –height 500 acme.com acme.com )&

sleep 6; # wait for firefox launch

i=0; # counter for logic conditions

# loop until firefox closed

while true; do

sleep 2;

if ! xdotool search –classname firefox search –name $s windowfocus > /dev/null; then

logger -it “custom-firefox-scroller-ca” “firefox with website title [$s] not found, exiting custom app”;

exit 0; # exit if firefox not running

fi;

i=$((i+1));

# define number of possible step values (10), using modulus operator, and assign current step to variable j

j=$((i%10));

if [ .${DEBUG}. = .true. ]; then echo “custom-firefox-scroller-ca: i=$i j=$j”; fi;

case $j in

1)

xdotool search –name $s key F5;

sleep 2;

xdotool search –name $s key Home Right Right Right Right Right Right;;

2|3|4)

xdotool search –name $s key Down Down;;

5|6|7)

xdotool search –name $s key Up Up;;

8)

xdotool search –name $s key Home;;

9)

xdotool search –name $s key End;;

esac;

done;“`

And now make it a single line of “commands” that is used in the definition of a custom-application. This will run in user context (don’t exceed 4000 characters):

1. remove all the comments

2. make sure each command list ends with command list terminator (ie. semicolon;)

3. combine into one long messy line 🥴

4. Note that this executes in “/bin/sh”, or dash shell, by default

5. Don’t put semicolon after the background (&) operator

“`DEBUG=true; s=”ACME”; if [ .${DEBUG}. = .true. ]; then set -x; fi; logger -it “custom-firefox-scroller-ca” “start firefox with url”; ( firefox –width 500 –height 500 http://acme.com http://acme.com )& sleep 6; i=0; while true; do sleep 2; if ! xdotool search –classname firefox search –name $s windowfocus > /dev/null; then logger -it “custom-firefox-scroller-ca” “firefox with website title [$s] not found, exiting custom app”; exit 0; fi; i=$((i+1)); j=$((i%10)); if [ .${DEBUG}. = .true. ]; then echo “custom-firefox-scroller-ca: i=$i j=$j”; fi; case $j in 1) xdotool search –name $s key F5; sleep 2; xdotool search –name $s key Home Right Right Right Right Right Right;; 2|3|4) xdotool search –name $s key Down Down;; 5|6|7) xdotool search –name $s key Up Up;; 8) xdotool search –name $s key Home;; 9) xdotool search –name $s key End;; esac; done;“`

And with any luck, it might behave like the attached animated-gif. The gif shows browser and the debug syslog output side-by-side to show the script logic as it executes.

Hope that helps! 😁


@member are you allowing me to create a blogpost out of it?

You are a GENIUS!!!


@member if you think it’s blog worthy, then of course. 😁 I might read over the text to see if it can be improved for clarity.

You are too kind. Thank you. BTW, you are using that word inappropriately!


This is awesome, and truly appreciate the time on this, and all the information. I am going to review and test this for sure. My commands are only doing the up and down, but yes, I can try to throw a right arrow to it. I am just not as savvy as I would like to be with all the command lines. still learning as i go, testing and testing.


@member I should have just sent you the magnifying glass. 😂

I hope the post will help in understanding the logic flow so anyone can follow along and customize for their own own use.


hahaha.. sometimes a simple fix is only needed. thanks.. … but… 🙂 do you have recommendations on the URL/Site if it changes? meaning do you think this could be accomplished with one profile or would need to set the different URL/Site for each profile and client?

every client will have its own unique URLto launch and scroll


I think one profile is possible. Use of environment variables comes to mind. There might be some other methods. Do the urls follow a pattern that follow a naming scheme based on device…or are they completely unique?

Also, are the scroll movements required for each url the same, or do they need to be tweaked for each url?


same movements

they do follow a pattern

they all start with the same name/server name

I was looking into additional variables, but I can’t seem to locate the list of variable names, .. cause i was thinking maybe a zoom in/out could help is some other cases we have.


I’m really curious about the usage – is it public facing (digital signage), or used some other way for monitoring? I ask out of curiosity and also caution that it’s not something that would be deemed bullet proof…so manual interaction may be required to restart it if it hangs.

Depending on the quantity, different ponderings:

1. Low-quantity: assign dynamic variables with URL / title to each endpoint, and manage in that method

2. Higher-quantity: distribute same database (json?) to all endpoints, that contains the URL / title

3. Store values on website somewhere, and have each endpoint retrieve it’s own settings from centralized source (json query based of unitid…or similar?) Gives centralized control.


Thank you for reviewing this. Currently, I have set my profiles to 125 DPI/Scaling at 1080p to ensure that the app is displayed optimally on monitors larger than 24 inches. However, I am currently struggling to send a command that can detect and move the horizontal scroll bar to the right once. Do you happen to know of a command or a way to implement this action into a Profile using Custom Commands or Environmental Variables?

Thank you for reviewing this. Currently, I have set my profiles to 125 DPI/Scaling at 1080p to ensure that the app is displayed optimally on monitors larger than 24 inches. However, I am currently struggling to send a command that can detect and move the horizontal scroll bar to the right once. Do you happen to know of a command or a way to implement this action into a Profile using Custom Commands or Environmental Variables?


Hey Sean, I’ve put something together that shows how the above “custom application” would be used, with “environmental variable” to supplying the URL.

But I’m not clear what your last message is stating? Does that mean the script I put together is not successful in allowing the site to scroll to the right, with the associated xdotool key “right commands”. If just “Right” key does not suffice, perhaps “Ctrl-Right” key sequence is required for your url?


ah, I forgot to answer that reply completely. we have a custom-made application that handles all URLs, and Account logons to the browser application as the centralized point you mentioned. however, the application we use is limited to any other commands, or modifications outside of VNC, and reboot, after the browser is launched, so any scroll or resolution options would need to be done via the iGel Profile. Currently I have a profile to set resolution to 1080p, scale/zoom to 125, scroll up and down with mouse clicks every 15 seconds. Now just looking to add the vertical scroll to the right.

ah, I forgot to answer that reply completely. we have a custom-made application that handles all URLs, and Account logons to the browser application as the centralized point you mentioned. however, the application we use is limited to any other commands, or modifications outside of VNC, and reboot, after the browser is launched, so any scroll or resolution options would need to be done via the iGel Profile. Currently I have a profile to set resolution to 1080p, scale/zoom to 125, scroll up and down with mouse clicks every 15 seconds. Now just looking to add the vertical scroll to the right.

not sure how to combine the vertical mouse click or right scroll or add another option to do so. My apologies if this is not coming out clear enough,


Can I see the profile/command you are using to perform the vertical scrolling right now?


My previous message may have been erroneous. I apologize. I made a typo, as you may have noticed. Vertical up/down scrolling has been added. Now, I am looking to add the “horizontal” scroll to the right once to achieve a solid view that will be perfect for the end users. Thank you for your patience.

sleep 15; wmctrl -a “Firefox”; xdotool mousemove 960 540; xdotool click –delay 0 –repeat 20 5; sleep 15; wmctrl -a “Firefox”; xdotool mousemove 960 540; xdotool click –delay 0 –repeat 20 4


Hey SeanR,

So just untangling the command, + comments your command becomes:

“`# ==== untangled =========

sleep 15;

wmctrl -a “Firefox”;

xdotool mousemove 960 540;

xdotool click –delay 0 –repeat 20 5; # 5 = Mouse wheel down

sleep 15;

wmctrl -a “Firefox”;

xdotool mousemove 960 540;

xdotool click –delay 0 –repeat 20 4; # 4 = Mouse wheel up“`

If you want to keep everything pretty much as is (using wmctrl to focus window), then just adding this to the top should work. Increase/decrease the “`–repeat 10`” number as required to get your page moved over. Also, you might only need a “`Right`” instead of a “`Ctrl+Right`”

So, just the core-bits of the script would be:

“`# ==== Addition: Option 1 =========

wmctrl -a “Firefox”;

xdotool key –repeat 10 Ctrl+Right; # try scrolling to the right (Ctrl may not be required/desired)“`

Another option, relying only upon xdotool, and if you only care about any “visible firefox” window, then this could be used instead:

“`# ==== Addition: Option 2 =========

xdotool search –onlyvisible firefox key –repeat 10 Ctrl+Right; # try scrolling to the right (Ctrl may not be required/desired)“`

And if you want to rely only on xdotool + key movements (no need to simulate mouse clicks), it could look like one of the following options:

Entire script:

“`# ==== Using just xdotool with key: Option 1 =========

sleep 15;

xdotool search –onlyvisible firefox key –repeat 10 Ctrl+Right; # try scrolling to the right (Ctrl+ may not be required/desired)

xdotool search –onlyvisible firefox key –repeat 20 Down; # granular (20 downs)

sleep 15;

xdotool search –onlyvisible firefox key –repeat 20 Up; # granular (20 up)“`

“`# ==== Using just xdotool with key: Option 2 =========

sleep 15;

xdotool search –onlyvisible firefox key –repeat 10 Ctrl+Right; # try scrolling to the right (Ctrl+ may not be required/desired)

xdotool search –onlyvisible firefox key –repeat 3 Page_Down; # coarse (3 page_down)

sleep 15;

xdotool search –onlyvisible firefox key –repeat 3 Page_Up; # coarse (3 page_up)“`

“`# ==== Using just xdotool with key: Option 3 =========

sleep 15;

xdotool search –onlyvisible firefox key –repeat 10 Ctrl+Right; # try scrolling to the right (Ctrl+ may not be required/desired)

xdotool search –onlyvisible firefox key End; # End key

sleep 15;

xdotool search –onlyvisible firefox key Home; # Home key“`

To get back into a single-line, just remove all the #comments, ensure each line is terminated with ;semicolon, and remove line breaks.

Do you need even more options, or are those enough?!???! ☺️


Nice, this is great info man… thanks. I did try to simply use just this “xdotool key Right” both with Ctrl+ and without and that never worked. I can manually hit the right arrow on keyboard, and it works. I’ll see what i can do with all these options you have posted. I was hoping to get it to just move right first make sure it works, then incorporate into the vertical.


Yeah…just pop open a terminal on the endpoint as “user”, and run the xdo-tool shown in “Addition: Option 2” section. That’s how I tested on a site like “https://google.com/doodle”. It worked on that site.


Ok, so I went with this option, as you mentioned, the untangled and additional option 1…….

wmctrl -a “Firefox”; xdotool key –repeat 10 Right; sleep 15; wmctrl -a “Firefox”; xdotool mousemove 960 540; xdotool click –delay 0 –repeat 20 5; sleep 15; wmctrl -a “Firefox”; xdotool mousemove 960 540; xdotool click –delay 0 –repeat 20 4;

The vertical scroll works perfectly still, however,

the horizontal scroll will not move right unless I manually click on the page, like it is not seeing the active window. Seems odd cause the up-and-down movement is working.


Try moving the “sleep 15” as the first item. Very strange that right key, when pressed would work, but not when doing the same in xdotool.

What happens when you open a terminal and try the various commands?

Make sure you have user context xterm window open for the command, and you have the desired Firefox page loaded:

“`sleep 3; wmctrl -a “Firefox”; xdotool key –repeat 10 Right;“`

What happens?


it was this

sleep 15; wmctrl -a “Firefox”; xdotool key –repeat 10 Right; wmctrl -a “Firefox”; xdotool mousemove 960 540; xdotool click –delay 0 –repeat 20 5; sleep 15; wmctrl -a “Firefox”; xdotool mousemove 960 540; xdotool click –delay 0 –repeat 20 4;

“`sleep 3; wmctrl -a “Firefox”; xdotool key –repeat 10 Right;“`

this alone is not working either, unless i manually click on the page

I cannot open terminal on the clients once they are imaged via sccm, these are managed clients and no option to get into system settings, that i know of. I can only use the secure terminal via UMS


> it was this

> sleep 15; wmctrl -a “Firefox”; xdotool key –repeat 10 Right; wmctrl -a “Firefox”; xdotool mousemove 960 540; xdotool click –delay 0 –repeat 20 5; sleep 15; wmctrl -a “Firefox”; xdotool mousemove 960 540; xdotool click –delay 0 –repeat 20 4;

Does this work?


No, same result. only if I touch the page manually, it will then move to the right

if I do not manually mouse click, it will not move


If you cannot run the proposed test commands in an xterm window open on the desktop, they will not work as written.

Are you not able to shadow into the devices and open a xterm window on the desktop? This is the easiest way to troubleshoot.

So you are trying to run the commands via ssh session?


no unfortunately not commands work from the desktop of the client. The commands are being ran from

profile

wondering if I need an active window command?


Can you add `export DISPLAY=:0;` as the very first thing to the command line above?


export DISPLAY=:0; in front of Sleep?

No difference

soon as I click manualy anyway on the page it moves in 3 seconds


What’s the trigger for your custom-application? How do you get it to start running?

Are you able to remote terminal into the device? Is there a test device there with you?


I can remote secure terminal


Awesome… how do you view the results? Is the device with you?


No I am remote as well tonight.. but can be in front of devices in the morning


Then how can you view the result? Is somebody else able to see the screen? Or can you?

With remote terminal (as user) – running this should prove that it works:

“`export DISPLAY=:0; ( firefox –width 500 –height 500 google.com/doodle )& sleep 10; wmctrl -a “Firefox”; xdotool key –repeat 10 Right;“`


this is all I have set for the custom application.

I am using UMS console to shadow the client, that’s How i see it


Ok, great. It sounded to me like shadow wasn’t working for you. That’s perfect then.


I cannot open a terminal on the device directly from the client desktop. its not an available option any longer

I can only run Secure Termincal from UMS console

Remote shell only


Alright, getting clearer. 😅

Via Shadow: Close all browsers on the desktop, and while watching desktop

Via Remote Terminal (as user):

“`export DISPLAY=:0; ( firefox –width 500 –height 500 google.com/doodle )& sleep 10; wmctrl -a “Firefox”; xdotool key –repeat 10 Right;“`

What happens? Does it scroll to the right of the doodle page after 10 seconds?


ah ok let me give that a shot


I did the exact same just now…and it’s loading the page, and then scrolling to the right.


ok ya google opened and i see only the vertical scroll

there is no horizontal scroll bar

the profile works,, it scrolls up and down no problem.. and it does hit to the right. but only when i click on the page.. Can i send a click to the page as part of it. 🙂

question, is this supposed to repeat the mouse right? or just one time?


This any better?

“`# ==== untangled =========

sleep 15;

wmctrl -a “Firefox”;

xdotool mousemove 960 540;

xdotool key –repeat 10 Ctrl+Right;

xdotool click –delay 0 –repeat 20 5;

sleep 15;

wmctrl -a “Firefox”;

xdotool mousemove 960 540;

xdotool click –delay 0 –repeat 20 4;

“`

Oh, the remote terminal test above, it’s full screen? Are you running in fullscreen or kiosk? If you try the same command line with your own extra wide URL instead does it work?

If you are in kiosk, that probably explains some oddities.


It is Kiosk Mode


Is IGEL set for “Appliance mode”?


not sure on that.. where is that setting


I noticed it right after I asked actually…and no they are not. but…. surprisingly moving the click command to the end did the trick. Did not work in the location it was, not sure why. However, I think we are in business now. going to reboot a couple again to see.


FYI: “Custom Application” set “DISPLAY:=0” automatically for that instance (or that’s what I’m seeing). That’s why you must do it manually if testing from the terminal.

I’m wondering if that “wmctrl” command is not activating the correct “Firefox” instance – there could actually be few different ones, even when you only see one on the screen.


ok, I think we are good. the only thing now 🙂 .. is how can I stop it from repeating the click? would i need to add the click command as a separate custom application so it only runs once?


There is actually a bit more too it. From looking at your “custom-application” commands, and screenshot settings:

1. CA is set to autolaunch

2. CA runs through the 10 or so commands it has

3. CA exits

4. CA is relaunched by OS due to “restart” setting, back to step 2.

This is hard to troubleshoot in isolation.

What is your new command look like?


gotcha


Can you try this version as your custom-application command line? I suspect it will work better…I could be wrong. 😅

“`ver=0.23; logger -it “custom-firefox-scroller-ca” “ver=${ver} – assume firefox already running, only look for visible firefox window, CA DISPLAY is [${DISPLAY}]”; sleep 15; xdotool search –onlyvisible firefox windowfocus; xdotool search –onlyvisible firefox key –repeat 10 Ctrl+Right; xdotool search –onlyvisible firefox click –delay 0 –repeat 20 5; sleep 15; xdotool search –onlyvisible firefox click –delay 0 –repeat 20 4;“`


hey .. yes I will try it later tonight. I had to step out of the office

Same result, the move to the right doesnt work, unless I add it as a separate profile

Im going to add it as a separate CA to the the same profile and see if that works as well


So with that last one I gave, it goes down, then up on its own without having to touch anything? I do have one more to try. Just let me know the answer to this last question?


yes, the up and down doesn’t seem to be the issue, unless they are combined, then the up and down stops and only the move to right works. I’m not understanding why. If I keep both the horizontal command and Up/Down separately with its own profile, it all works.


Can you try this version as your custom-application command line? 40th time’s a charm? 😅

“`ver=0.25; logger -it “custom-firefox-scroller-ca” “ver=${ver} – assume firefox already running, only look for visible firefox window, CA DISPLAY is [${DISPLAY}]”; sleep 15; xdotool search –onlyvisible firefox windowfocus; xdotool mousemove 960 540; xdotool search –onlyvisible firefox click –delay 0 –repeat 20 7; xdotool search –onlyvisible firefox click –delay 0 –repeat 20 5; sleep 15; xdotool search –onlyvisible firefox click –delay 0 –repeat 20 4;“`

EDIT: had some bad hypens – now v=0.25

> yes, the up and down doesn’t seem to be the issue, unless they are combined, then the up and down stops and only the move to right works. I’m not understanding why. If I keep both the horizontal command and Up/Down separately with its own profile, it all works.

Ah, that’s some new information, automated right scroll works, but breaks the up down. In which version did the automated right scroll work?

But let’s see how the v0.24 works for you


couple times ago, not sure of the version now..


I had some bad hypens in v0.24, edited now at v0.25

I’ve tested back and forth a bit. I see that for any of the “click” scroll behaviours to work, the mouse must be hovering over the window, which makes sense – I might have missed this earlier.

If v0.25 works, then all good. I’m still not so crazy about using mouse clicks, and would prefer to use keyboard sequences, since they can be directed at the named window instanced, and would seem to be more durable that way. But if it works for you, it works for me! 😁

BTW:

“`xdotool click –delay 0 –repeat 20 6; # simulates mouse horizontal scroll LEFT wheel

xdotool click –delay 0 –repeat 20 7; # simulates mouse horizontal scroll RIGHT wheel“`

And v0.27, since the previous “search command” does not help when using mouse based “clicks commands”, I’ve removed them, resulting in the shorter command:

“`ver=0.27; logger -it “custom-firefox-scroller-ca” “ver=${ver} – assume firefox already running, only use mouse scroll wheel for actions, CA DISPLAY is [${DISPLAY}]”; sleep 15; xdotool mousemove 960 540; xdotool click –delay 0 –repeat 20 7; xdotool click –delay 0 –repeat 20 5; sleep 15; xdotool click –delay 0 –repeat 20 4;“`

Continue reading and comment on the thread ‘Setting up a scrolling command for FireFox Browser on IGEL OS’.  Not a member? Join Here!

Learn more, search the IGEL Knowledge Base



Ask a question or comment on the above message thread?

Join or log in to the IGEL Community to ask us anything and meet other IGEL customers, partners, and EUC enthusiasts.

Submit a question, or Join Today!


Popular Message Threads


Categories & Tags: