tagINPUT sendINput

This is a discussion on tagINPUT sendINput within the Windows Programming forums, part of the Platform Specific Boards category; tagINPUT and SendInput typedef struct tagINPUT { DWORD type; union { MOUSEINPUT mi; KEYBDINPUT ki; HARDWAREINPUT hi; }; } INPUT, ...

  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,267
    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, 06:08 AM
  3. SendInput()
    By borre_mosch in forum Windows Programming
    Replies: 1
    Last Post: 01-13-2004, 10:36 AM
  4. SendInput()?
    By src in forum Windows Programming
    Replies: 11
    Last Post: 02-21-2003, 06:43 PM
  5. tagINPUT and SendInput
    By Unregistered in forum C Programming
    Replies: 2
    Last Post: 03-08-2002, 02:08 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21