Comments (6)
There are multiple aspects here:
- There is a boolean to define if the mouse should move slowly or instantly
- If you use the mouse clicks the mouse always need to be at the position that should be clicked. There is no way around.
- Maybe it us better if you use Invoke from the InvokePattern.
from flaui.
@Roemer , with winapi i can click on control without mouse. I think this lib allow make me win api calls
from flaui.
You can use WinAPI with SendMessage to fake clicks but then you could miss some events like mouse enter and such. I might think to add that as well but in general using patterns is better.
from flaui.
@Roemer why you think that i miss mouse enter event?
from flaui.
Because this one is only fired when the mouse effectively moves over an element.
from flaui.
I did some more research (again) and the SendMessage method is very unreliable (see https://blogs.msdn.microsoft.com/oldnewthing/20050530-11/?p=35513). And the SendInput method (which is the best to simulate the mouse) does not allow to "send" to other windows than the foreground window.
If you need to click a button without moving the mouse, use the invoke method from the invoke pattern. If the element you want to click does not support the invoke pattern, use your own SendMessage for this and hope that it works. Since it's unreliable, I will not add this to the FlaUI base framework. Feel free to add more comments if you still have questions.
from flaui.
Related Issues (20)
- Menu item can only be found after getting `GetMainWindow` again HOT 2
- Cannot find some existing elements by FindAllDescendants() HOT 3
- Create a new AutomationElement based on UserControl HOT 1
- Unable to get the text for ComboBoxItem HOT 2
- Could not find process with id HOT 3
- I cannot get the combo box list. HOT 2
- Process ID returned by FlaUI.Core.Application is different from windows process ID HOT 2
- When Flaui will support .net core 8.0 HOT 2
- Instance of an object from System.Windows.Input halves the point passed to Mouse.Click HOT 1
- How to find and write this textbox
- FindAllDescendants does not return all descendants HOT 8
- how to load a windows store app photo app
- Application.GetAllTopLevelWindows() is slow HOT 9
- Jenkins machines cannot capture elements with ControlType: UIA_WindowControlTypeId (0xC370) and LocalizedControlType: "dialog" HOT 1
- Taking text pattern information from grid header and cells
- The latest release (4.0.0) depends on deprecated (and vulnerable) libraries
- Enhance GetRowsByValue Method to Support Partial Matching and Case Sensitivity
- FindFirstDescendant error HOT 1
- who can help me? HOT 1
- XPath query does not return root.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flaui.