Code: Select all
$*rbutton::
Send {Blind}{rbutton}
KeyWait, rbutton, T0.6
If ErrorLevel {
Run, osk.exe
IfWinExist, ahk_exe osk.exe
WinHide, ahk_exe osk.exe
else
WinShow, ahk_exe osk.exe
return
KeyWait, rbutton
}
return
Code: Select all
$*rbutton::
Send {Blind}{rbutton}
KeyWait, rbutton, T0.6
If ErrorLevel {
Run, osk.exe
IfWinExist, ahk_exe osk.exe
WinHide, ahk_exe osk.exe
else
WinShow, ahk_exe osk.exe
return
KeyWait, rbutton
}
return
Code: Select all
$*rbutton::
KeyWait, rbutton, T0.6
If ErrorLevel {
Run, osk.exe
IfWinExist, ahk_exe osk.exe
WinHide, ahk_exe osk.exe
else
WinShow, ahk_exe osk.exe
} Else
Click, Right
return
Tried it as is but it creates conflict and only the alt tab works. Basicly I need a code that allows me to click the lbutton within T.06 to do ^!{Tab}. It would be genius if I could combine these two, it would add so much functionality to my mouse using my média center pc.$*rbutton::
KeyWait, rbutton, T0.6
If ErrorLevel {
Run, osk.exe
IfWinExist, ahk_exe osk.exe
WinHide, ahk_exe osk.exe
else
WinShow, ahk_exe osk.exe
} Else
Click, Right
return
Rbutton & lbutton::Send, ^!{Tab}
return
Code: Select all
~Rbutton & lbutton::Send, ^!{Tab}
return
Users browsing this forum: No registered users and 263 guests