Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7797973
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T23:51:42+00:00 2026-06-01T23:51:42+00:00

I am trying to build following gesture: Click And Hold Right Mouse Button, Click

  • 0

I am trying to build following gesture:
Click And Hold Right Mouse Button, Click Left mouse button => fire browser back key

RButton & LButton Up::
    Send {Browser_Back}
return

~RButton::return

The problem is I want to consume the last “right button up” when release the right button after this hotkey was pressed. Effectively I dont want to see the context menu poppong up.

Any Help?

Edit: It would be nice if we can preserve right drag.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T23:51:44+00:00Added an answer on June 1, 2026 at 11:51 pm

    I’m assuming you don’t want to block the right button menu at all times.

    rbutton & lbutton::Send, {Browser_Back}
    
    rbutton::click r
    

    Otherwise exclude the second line.

    Update: Since you have now specified that you use “right-drag”
    here is another idea (note: I don’t use right-drag so I can’t confirm anything):

    rbutton::
    Keywait, rbutton, T0.5
    If (ErrorLevel) {
        Click r d
        Keywait, rbutton
        Click r u
    } Return
    
    lbutton::
    if GetKeyState("rbutton", "P")
        Send, {Browser_Back}
    Else {
        Click d
        Keywait, lbutton
        Click u
    } Return
    

    You will have to hold rbutton and left click then release rbutton within 0.5seconds, or raise the time.
    The basic version simply won’t work as far as I know. This is because using & will make rbutton only fire upon release.

    If this still doesn’t work you could try something even more complicated: link
    Update: I just thought of another variation:

    Lbutton::
    if GetKeyState("rbutton", "P")
        Send, {Browser_Back}
    Else {
        Click d
        Keywait, lbutton
        Click u
    } Return
    
    rbutton up::
    If (a_priorhotkey != "Lbutton" or a_timeSincePriorHotkey > 500)
        Click r
    Return
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to build a common clear fields button that has the following html
I'm trying to build sbt 0.12.0-RC1 following instructions at https://github.com/harrah/xsbt to the letter, but
I'm trying to build s-expression objects using boost::proto with the following terminals: typedef proto::terminal<
I keep getting the following error when trying to build the masstransit source from
I'm trying to build my application for GoogleAppEngine using maven. I've added the following
i am trying to build the google dart project on windows XP. following the
I'm trying to build Boost 1.49.0 using MSVC2010 and it fails with the following
I am getting the following error when I am trying to build my website,
I have the following code: Tag.find_all_by_company_id(4).each.collect{|tag| tag.name }.join(,) (Essentially I'm trying to build a
Trying to get MGTwitterEngine app to build. Getting one pesky error. The following ERROR.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.