Sign in to follow this  
Followers 0
Falcon213

Using Mouse Buttons 4 and 5? (Back and Forward)

3 posts in this topic

#1 ·  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

Share this post


Link to post
Share on other sites



Look in help file for the function IsPressed()

Share this post


Link to post
Share on other sites

Look in help file for the function IsPressed()

Hrm I even read something about that function yet somehow passed it up.

Thanks!

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0