While I'm holding the MButton, I want autohotkey to hold the Ctrl+MButton.
While I'm holding Mbutton + Rbutton at the same time, I want autohotkey to just hold MButton, but MButton should do the original program's functionality and not the one programmed by me in the first loop.
With the following code I managed to correctly execute the first while loop, but the second loop never gets executed.
Code: Select all
#IfWinActive, ahk_exe SLDWORKS.exe
While getkeystate ("MButton","P")
{
MButton::^Mbutton
}
Return
While getkeystate ("MButton","P") & getkeystate("RButton", "P")
{
~MButton & RButton::MButton
}
Return
Thank you very much in advance for your help!