Remapping Middle click to Alt + Middle click on certain website
Posted: 19 Mar 2017, 11:48
Hello, this is my first post! I am having difficulty getting my script to work. I am using the GetActiveBrowserURL() function found on https://autohotkey.com/boards/viewtopic.php?t=3702. I also want to write my script such that when I am on a specific website and I hold down MButton, I want it so simulate pressing Alt and MButton at the same time. How could I do this?
My code so far(it's not very good!):
All help greatly appreciated.
My code so far(it's not very good!):
Code: Select all
#include ;file location
#If WinActive("ahk_exe chrome.exe")
#If InStr(GetActiveBrowserURL(),"cad.onshape.com/documents/")
MButton::!MButton
#If
#If