Page 1 of 1

"InputHook()" for mouse?

Posted: 31 Mar 2021, 21:34
by madsounds
Is it possible to use method, simiar to InputHook(), for the mouse?

E.g.:

Code: Select all

hook := InputHook()
hook.OnKeyDown := Func( "OnKeyDown" )
hook.KeyOpt( "{LButton}{RButton}{XButton2}{WheelDown}", "+N" )
hook.Start()

OnKeyDown( hk, vk, sc )
{
	switch vk
	{
		case 12345:
			;Code for LButton
		case 123134:
			;Code for RButton
		case 879487:
			Code for XButton2
		case 433873:
			Code for WheelDown
	}
}

Re: "InputHook()" for mouse?

Posted: 03 May 2021, 17:45
by swagfag
no, use regular hotkeys if u need to suppress or use a Low Level Mouse Hook if u dont
or if u really want the InputHook's API, then ull have to probably reimplement it urself using both