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 8938679
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T10:41:08+00:00 2026-06-15T10:41:08+00:00

Can we use Microsoft.VisualStudio.TestTools.UITesting.Mouse for automation purpose in a program (Is it possible to

  • 0

Can we use Microsoft.VisualStudio.TestTools.UITesting.Mouse for automation purpose in a program (Is it possible to use it with our normal application cording. Not for the testing. )

I want to automate some mouse movements in my program. Like we are doing in Microsoft UI automation. I am not going to create a test project.

If this is possible please advice me.

Is mouse simulation is possible with UI automation?

EDIT
Since this is (Microsoft.VisualStudio.TestTools.UITesting.Mouse) used for coded UI testing I want to know is it possible to use in normal programming purpose. Because this Mouse class has some of useful methods which I need.

  • 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-15T10:41:09+00:00Added an answer on June 15, 2026 at 10:41 am

    It may be technically possible to use it from an application. I believe all you need to do is make sure you call Playback.Initialize before using the Mouse class. However, I believe the license for VS will not allow you to redistribute the required dlls with your application.

    UI Automation does not have facilities for low level input simulation.

    I’ve use the TestApi project with some success to automate mouse and keyboard input when UI Automation and the Coded UI api’s could not be used. It is easy to accomplish moving and clicking the mouse with the the Mouse class there:

    using Microsoft.Test.Input;
    using System.Drawing;
    
    Mouse.MoveTo(new Point(100, 200));
    Mouse.Click(MouseButton.Left);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Why would you use the following? Microsoft.VisualStudio.TestTools.UnitTesting.Assert.ReplaceNullChars(string input) I have searched but can't find
How can I use the ListView_GetBkImage macro: http://msdn.microsoft.com/en-us/library/bb761246(v=VS.85).aspx ... from a C#/WinForms application? I
I use NUnit for Mono/C# on my Mac, but I need to use Microsoft.VisualStudio.TestTools.UnitTesting
Can I use Microsoft Development Studio (a.k.a. Visual C++ 6), but replacing its awful
In Microsoft Internet Explorer we can use Msxml2.DOMDocument.6.0 activeX component to do xslt based
I am trying to see if you can use Microsoft Access Services, as available
The Microsoft link here lists three methods that we can use. But how do
I can use the following to get the contents of a folder with no
Users can use their Google, Facebook or Twitter account to login to a site
I can use this maven plugin maven-jaxb-plugin to generate Java Classes from XSD file.

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.