D
diegocarpintero
I am writing a c# class which main purpose is to simulate the dialog
with a GUI-application.
The idea is that this class can simulate some user actions like mouse
clicks on buttons.
I have found the following possibilities to simulate it:
1) Use SendInput Function (user32.dll) (unmanaged code)
2) Use System.Windows.Forms.SendKeys (managed code)
Anyway, I would like to use some function (if possible managed code)
that provides me the "control" of a window (maybe like FindWindow),
and once I have the control in some way it would be perfect to make
something that returns me a list of all GUI components (buttons, check
boxes...) of this window. So, I could interact with this objects.
The advantages of this solution is obviously that it is not necessary
to know the coordinates of the buttons (for example) which would it
make independent of the screen-resolution.
Any suggestions?
Regards,
Diego Carpintero
with a GUI-application.
The idea is that this class can simulate some user actions like mouse
clicks on buttons.
I have found the following possibilities to simulate it:
1) Use SendInput Function (user32.dll) (unmanaged code)
2) Use System.Windows.Forms.SendKeys (managed code)
Anyway, I would like to use some function (if possible managed code)
that provides me the "control" of a window (maybe like FindWindow),
and once I have the control in some way it would be perfect to make
something that returns me a list of all GUI components (buttons, check
boxes...) of this window. So, I could interact with this objects.
The advantages of this solution is obviously that it is not necessary
to know the coordinates of the buttons (for example) which would it
make independent of the screen-resolution.
Any suggestions?
Regards,
Diego Carpintero