Changing click behaviors for onscreen keyboard

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
tqphan
Posts: 26
Joined: 04 Mar 2019, 14:44

Changing click behaviors for onscreen keyboard

23 Jun 2020, 18:11

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?
swagfag
Posts: 6222
Joined: 11 Jan 2017, 17:59

Re: Changing click behaviors for onscreen keyboard

21 Sep 2021, 19:23

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
}

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Google [Bot], ulysim and 310 guests