Jump to content

Recommended Posts

Posted (edited)

I am trying write a script that would prevent the foreground application from receiving the mouse 4 button, while sending it to another. The problem though, is that there doesn't seem to be any way to capture or send and event from mouse buttons beyond left, right, and middle. I have noticed that there are some "key" assignments for {BROWSER_BACK} and {BROWSER_FORWARD}, however these do not seem to work for my use.

The very basic version of what I tried:

HotKeySet("{BROWSER_BACK}", "myfunc")  ;should be set to MB4?

While(True)  ;keep running until forced to stop
    Sleep(100)
WEnd

Func myfunc ()
    ControlSend("otherapp", "", "", "{BROWSER_BACK}")  ;By default the HotKey key is thrown out, so send it where I want it to go instead
EndFunc

So does something exist to represent MB4 and MB5?

TIA

Edited by Falcon213

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...