Recent

Author Topic: mouse_event deprecated - is SendInput available?  (Read 3365 times)

fatmonk

  • Sr. Member
  • ****
  • Posts: 252
mouse_event deprecated - is SendInput available?
« on: September 13, 2016, 05:24:00 pm »
I see from MSDN that Mouse_Event has been 'superseded' and that SendInput is recommended instead - however that doesn't seem to exist in Lazarus.

I've also spotted an old thread saying that it actually does exist in windows.h but is commented out - the poster of that thread was having trouble getting it working after uncommenting.

I've actually got things working OK with Mouse_Event, but wanted to investigate using SendInput as it's the recommended option from MSDN.

Is SendInput supported or available somehow?

-FM

balazsszekely

  • Guest
Re: mouse_event deprecated - is SendInput available?
« Reply #1 on: September 13, 2016, 05:58:39 pm »
Quote
I see from MSDN that Mouse_Event has been 'superseded' and that SendInput is recommended instead - however that doesn't seem to exist in Lazarus.
I've also spotted an old thread saying that it actually does exist in windows.h but is commented out - the poster of that thread was having trouble getting it working after uncommenting.

I've actually got things working OK with Mouse_Event, but wanted to investigate using SendInput as it's the recommended option from MSDN.

Is SendInput supported or available somehow?
uses JwaWindows;


fatmonk

  • Sr. Member
  • ****
  • Posts: 252
Re: mouse_event deprecated - is SendInput available?
« Reply #2 on: September 13, 2016, 06:23:25 pm »
Great, thanks.

Just got to figure out how to create the input params properly now... looks like  %)

-FM

balazsszekely

  • Guest
Re: mouse_event deprecated - is SendInput available?
« Reply #3 on: September 13, 2016, 06:29:32 pm »
Quote
Just got to figure out how to create the input params properly now... looks like  %)
Just use the forum search, keyword: SendInput

fatmonk

  • Sr. Member
  • ****
  • Posts: 252
Re: mouse_event deprecated - is SendInput available?
« Reply #4 on: September 13, 2016, 06:33:25 pm »
Doh! How did I miss that?

Thanks,

FM

 

TinyPortal © 2005-2018