Changing click behaviors for onscreen keyboard
Changing click behaviors for onscreen keyboard
I have a physical disability and use the default onscreen keyboard. Currently the onscreen keyboard only support left click to activate the keys. Sometimes my finger for left click gets tired or unresponsive to my brain so I would switch between left and right click. I'm wondering if it's possible to make the onscreen keyboard response to right click also. Is this possible?
Re: Changing click behaviors for onscreen keyboard
Code: Select all
SetTitleMatchMode 2
#If isMouseOnOSK()
RButton::LButton
isMouseOnOSK() {
MouseGetPos, , , hwndUnderMouse
hwndOSK := WinExist("On-Screen Keyboard ahk_class OSKMainClass ahk_exe osk.exe")
return hwndUnderMouse = hwndOSK
}