Jump to content
Sign in to follow this  

ControlClick on window (handle) without controlin C#

Recommended Posts

Hi everyone, I had a problem while I was learning Autoit in C#.
I wanted to use ControlClick on a window without control, example: Notepad
Here is my code:
            var hwd = AutoItX.WinGetHandle("Untitled - Notepad");
            AutoItX.ControlClick(hwd, IntPtr.Zero, "left", 1, 426, 320);
It not working. Nodepad don't have control handle.
I want to auto on processes. I also try using ControlClick(string title, string text, string control) but processes are the same title.
Please help me, thank you so much!
Sorry for my bad English

Share this post

Link to post
Share on other sites
28 minutes ago, Earthshine said:

are you on windows 10? because native autoit won't work on it. You need to use UIAutomation

I'm using windows 10. Thank you for reply. I will see more about UIAutomation

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...