Code: Select all
f6 & lbutton::
send, 2
while getkeystate("lbutton","p")
and getkeystate("f6","p")
{
send {2 down}
sleep 60
}
return
f6 & rbutton::
send, 3
while getkeystate("rbutton","p")
and getkeystate("f6","p")
{
send {3 down}
sleep 60
}
return
Holy smokes I **edit x2** almost got it!
Code: Select all
f6 & lbutton::
send, 2
while getkeystate("lbutton","p")
and getkeystate("f6","p")
{
send {2 down}
sleep 60
}
if f6 !=d
send, {lbutton down}
keywait, lbutton
send, {lbutton up}
return
f6 & rbutton::
send, 3
while getkeystate("rbutton","p")
and getkeystate("f6","p")
{
send {3 down}
sleep 60
}
if f6 !=d
send, {rbutton down}
keywait, rbutton
send, {rbutton up}
return
Secondly, I can no longer hold f6+lbutton, while still holding f6 switch to holding rbutton, and then switch back to holding f6+lbutton. I.e., formerly a string of 2222222233333332222222 now becomes 2222223333333context menu.
Thirdly, while testing my 2's and 3's in this browser window, sometimes the f6 key's native function is seeping through, moving my cursor to the address bar.