• Login
    • Search
    • Categories
    • Recent
    • Tags
    • Users
    • Groups
    • Rules
    • Help

    Do more on the web, with a fast and secure browser!

    Download Opera browser with:

    • built-in ad blocker
    • battery saver
    • free VPN
    Download Opera

    Auto scroll in Opera v.11.xx - assign custom keyboard short cut

    Opera for Windows
    2
    7
    1533
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • emc
      emc last edited by

      HI,

      What would be the command ( item, = ....) if I am to assign auto scroll a keyboard shortcut ?

      Is it possible in this command I can custom the scrolling speed also ?

      Thank you very much.
      Edmond.

      Reply Quote 0
        1 Reply Last reply
      • stng
        stng last edited by

        This should work

        Go to Preferences - Advanced - Keyboard setup - Edit

        In the "Document Windows] section add new shortcut, for an example "a alt" (Alt+A) with following action:

        Go to page, "javascript:var marc=false; function AutoScroll() {if(marc==true)return; window.scrollBy(0,1); NextScroll = setTimeout('AutoScroll()', 120);window.onkeypress = StopScroll;} function StopScroll(e) {if(e.keyCode == 27){clearTimeout(NextScroll);};} AutoScroll();" + Go to page, "javascript: void(marc=true)"

        Is it possible in this command I can custom the scrolling speed also ?

        I think yes, but you need to modify the JS code mentioned above.

        Reply Quote 0
          1 Reply Last reply
        • emc
          emc last edited by

          Thank you very much !

          But can I put these command string by assiging a keyboard key from with-in the standard_keyboard.ini ?

          As I do not want to mess the document windows setting you have suggested above.

          Or, is there a file ( i.e. xx.ini ) about this document windows I can edit ?

          Thanks !
          Edmond.

          Reply Quote 0
            1 Reply Last reply
          • emc
            emc last edited by

            Hi stng,

            Have added :

            [Document Window]

            l ctrl=Go to page, "javascript:var marc=false; function AutoScroll() {if(marc==true)return; window.scrollBy(0,1); NextScroll = setTimeout('AutoScroll()', 120);window.onkeypress = StopScroll;} function StopScroll(e) {if(e.keyCode == 27){clearTimeout(NextScroll);};} AutoScroll();" + Go to page, "javascript: void(marc=true)"

            but it seems didn't auto scroll during surfing web page.

            Thank you
            edmond.

            Reply Quote 0
              1 Reply Last reply
            • stng
              stng last edited by

              @emc

              1.Try this:

              in section:
              [Application]

              i ctrl = Go to page, "javascript:var marc=false; function AutoScroll() {if(marc==true)return; window.scrollBy(0,1); NextScroll = setTimeout('AutoScroll()', 120);window.onkeypress = StopScroll;} function StopScroll(e) {if(e.keyCode == 27){clearTimeout(NextScroll);};} AutoScroll();"

              Note: I've changed the javascript code!

              2.Press Escape to stop auto scroll.

              p.s. it works!

              Reply Quote 0
                1 Reply Last reply
              • emc
                emc last edited by

                Thanks stng !

                It works & scroll now.

                How I am to increase the speed though ?

                I tried to modify command Auto Scroll ()', 1200 ( instead of 120 )

                Scroll speed is same.

                Thank you !
                Edmond.

                Reply Quote 0
                  1 Reply Last reply
                • emc
                  emc last edited by

                  Hi stng,

                  How I am to insert something in order to control the speed of scrolling? ( + speed and - speed )

                  Thank you very much.
                  edmond.

                  Reply Quote 0
                    1 Reply Last reply
                  • First post
                    Last post

                  Computer browsers

                  • Opera for Windows
                  • Opera for Mac
                  • Opera for Linux
                  • Opera beta version
                  • Opera USB

                  Mobile browsers

                  • Opera for Android
                  • Opera Mini
                  • Opera Touch
                  • Opera for basic phones

                  • Add-ons
                  • Opera account
                  • Wallpapers
                  • Opera Ads

                  • Help & support
                  • Opera blogs
                  • Opera forums
                  • Dev.Opera

                  • Security
                  • Privacy
                  • Cookies Policy
                  • EULA
                  • Terms of Service

                  • About Opera
                  • Press info
                  • Jobs
                  • Investors
                  • Become a partner
                  • Contact us

                  Follow Opera

                  • Opera - Facebook
                  • Opera - Twitter
                  • Opera - YouTube
                  • Opera - LinkedIn
                  • Opera - Instagram

                  © Opera Software 1995-