Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9084561
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T21:01:44+00:00 2026-06-16T21:01:44+00:00

I am working on an automated testing library, and want to simulate mouse and

  • 0

I am working on an automated testing library, and want to simulate mouse and keyboard inputs using the SendInput Win32 API. This API allows one to push several input items in a single call to the API. There are a number of other examples and similar libraries throughout the web using SendInput. Many of them pass a single input operation for each call to the API. Is there any advantage to batching inputs, or using a single input per call to SendInput? The documentation doesn’t seem to offer guidance, or perhaps I’m misreading it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T21:01:45+00:00Added an answer on June 16, 2026 at 9:01 pm

    There’s no real benefit to one technique vs the other that I know of. In either case, the usual potential problem with SendInput is that the input focus could change between when you send the input and when the input is received by the target application. The classic example is a modal dialog appearing asynchronously to alert the user of some problem, and ends up stealing focus, and soaking up the remaining input that was supposed to go elsewhere. There’s no difference between doing a successive series of SendInputs vs a single SendInput in this scenario.

    (I’m pretty sure that internally, SendInput is just looping over the inputs passed to it anyway…)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hai i want to generated an automated click event. I am working in php
I've been working on a basic testing framework for an automated build. The piece
I had just started working on some automated testing tools, namely test complete, which
I'm using SpecFlow for the automated Acceptance Testing framework and NHibernate for persistance. Many
I'm using Emacs and trying to get my unit testing work flow as automated
I'm working with Drupal's automated testing in PHP. It's a class that has two
Im working to automate the testing of an API which takes and returns XML,
I'm working on trying to launch an automated testing solution for some iOS applications.
I primarily spend my time working on automated tests of win32 and .NET applications,
I am working on an automated testing app, and am currently in the process

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.