Page 1 of 1
find Mouse-Key Event
Posted: Fri Dec 18, 2020 8:13 pm
by AUGE_OHR
hi,
my Mouse have 2 Button which i can use in Firefox or Edge to "go Back / Forward"
is it possible to get these Event and use it in App

Re: find Mouse-Key Event
Posted: Fri Dec 18, 2020 8:58 pm
by danielmaximiliano
Re: find Mouse-Key Event
Posted: Fri Dec 18, 2020 9:22 pm
by AUGE_OHR
hi,
thx for link.
i have add it but no luck
Code: Select all
ELSEIF nMsg = WM_XBUTTONDOWN
IF nWParam = MK_XBUTTON1
Go_PagePrior()
ELSEIF nWParam = MK_XBUTTON2
Go_PageNext()
ENDIF
any Tip

Re: find Mouse-Key Event
Posted: Fri Dec 18, 2020 11:26 pm
by AUGE_OHR
hi,
got it
must be LoWord()
Code: Select all
ELSEIF nMsg = WM_XBUTTONDOWN
IF LoWord(nWParam) = MK_XBUTTON1
Go_PagePrior()
ELSEIF LoWord(nWParam) = MK_XBUTTON2
Go_PageNext()
ENDIF
ENDIF
Re: find Mouse-Key Event
Posted: Sat Dec 19, 2020 1:46 am
by danielmaximiliano
AUGE_OHR wrote: ↑Fri Dec 18, 2020 11:26 pm
hi,
got it
must be LoWord()
Code: Select all
ELSEIF nMsg = WM_XBUTTONDOWN
IF LoWord(nWParam) = MK_XBUTTON1
Go_PagePrior()
ELSEIF LoWord(nWParam) = MK_XBUTTON2
Go_PageNext()
ENDIF
ENDIF
Hi : in your application what would be the use of these mouse buttons?
Re: find Mouse-Key Event
Posted: Sat Dec 19, 2020 2:03 am
by AUGE_OHR
hi,
danielmaximiliano wrote: ↑Sat Dec 19, 2020 1:46 am
in your application what would be the use of these mouse buttons?
it was just a Idea to "navigate" like in Browser ( FF, Edge )
most Mouse do have those Button so i want to use it.
i can use it e.g. instead of Keyboard PgDn / PgUp when have Hand on Mouse