473,320 Members | 1,987 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Simulate user actions??

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

Sep 4 '06 #1
1 2188
Hello di*************@hotmail.com,

what's wrong with FindWindow and GetWindow functions?
SPY++ helps u in this
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
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
Sep 5 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: ^CeFoS^ | last post by:
Hi to everybody, due to I want to use the serial port of a server machine through an applet allocated in html document. > Then one application will run in the server machine and using > the serial...
2
by: Amir Eshterayeh | last post by:
simulate virtual directory for each user Dear Friends Would you please give me your professional idea about this asp.net problem. I need different virtual directory for different customer...
6
by: Robert Pettersson | last post by:
Hi, I have built an webapp in C# that uses SMTPMail to send mail to users. When I installed it on the prodserver everything worked fine for me, but the users can not send mail. They get Access...
1
by: Steve M. | last post by:
Hello all. I have a dropdown list: <select name="select" class="mapMenu" onChange="JumpToIt(this)"> <option selected value="none">Select a Tool --</option> <option...
3
by: John Dalberg | last post by:
I have an app that keeps popping up a windows with a 'Yes' or 'OK' button on it. I am trying to write a little app that automates hitting the enter key so I don't have to do it myself. I used...
1
by: ummaria | last post by:
Hello everyone, I'm developing a web application using ASP.NET and VB.NET connected to a MS SQL Server. I want the system to automatically save user actions. For example, when a user logs...
5
by: nuhfeken | last post by:
We have a C# winform that uses the MVP design pattern for the user interface. For reasons I'd rather not explain we need to simulate a right mouse click on a specific control to deactivate the...
25
by: chrissirhc | last post by:
Hi, Is there anyway to simulate a Users’ mouse actions using coldfusion? The goal is the automatically complete a series of online forms that have text boxes, drop down menus, links and Submit...
12
by: Daniel Klein | last post by:
I'm pretty new at php and web stuff so please be gentle with me. I'm trying to get a form to submit when the user presses the Enter key. I do not want to use javascript. I've googled this to...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.