Page 1 of 1

how to get Event from ActiveX ?

PostPosted: Tue Jan 30, 2024 5:32 am
by Jimmy
hi,

i like to hightlight Word as show here
https://www.youtube.com/watch?v=Y8-yjsRsyvI

i need to catch "Word event" of SpVoice, how :?:
Image

Re: how to get Event from ActiveX ?

PostPosted: Tue Jan 30, 2024 6:20 am
by Antonio Linares
Dear Jimmy,

Reviewing Harbour OLE implementation it seems as this is the way:

oVoice:__hSink := __axRegisterHandler( oVoice:__hObj, { | x, y | MsgInfo( x, y ) } )

but here in my tests it is not working as expected.

Maybe another Harbour OLE bug ? I am doing some research to find the right way...