Thread: tagINPUT sendINput

  1. #1
    Unregistered
    Guest

    tagINPUT sendINput

    tagINPUT and SendInput
    typedef struct tagINPUT {
    DWORD type;
    union {
    MOUSEINPUT mi;
    KEYBDINPUT ki;
    HARDWAREINPUT hi;
    };
    } INPUT, *PINPUT;

    UINT SendInput(
    UINT nInputs, // count of input events
    LPINPUT pInputs, // array of input events
    int cbSize // size of structure
    );


    If someone could please show me how to use these two api's calls that would be great. Im new at using api w. C and still
    trying to get the hang of this>

    I know the sendinput takes an argument of the array tagINPUT.
    But im not exactly sure how to fill the values of tagINPUt.
    I see the INPUT and *PINPUT after the structs but unsure
    How to plug them in>

    Any help would be great.
    Thank you

  2. #2
    Unregistered
    Guest
    Anyone ?
    I really need to know how this works.

  3. #3
    Has a Masters in B.S.
    Join Date
    Aug 2001
    Posts
    2,263
    search for it at

    http://msdn.microsoft.com
    ADVISORY: This users posts are rated CP-MA, for Mature Audiences only.

  4. #4
    Unregistered
    Guest
    I did, that did not give me an example.
    All I need is an example.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Sending Strings using SendInput
    By TheWeird1 in forum Windows Programming
    Replies: 3
    Last Post: 07-04-2009, 10:35 PM
  2. Replies: 2
    Last Post: 03-23-2006, 07:08 AM
  3. SendInput()
    By borre_mosch in forum Windows Programming
    Replies: 1
    Last Post: 01-13-2004, 11:36 AM
  4. SendInput()?
    By src in forum Windows Programming
    Replies: 11
    Last Post: 02-21-2003, 07:43 PM
  5. tagINPUT and SendInput
    By Unregistered in forum C Programming
    Replies: 2
    Last Post: 03-08-2002, 03:08 PM