473,509 Members | 12,711 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How control another windows-application out of my c#-application

Is there any way to control another running application out of my
c#-application? I've already figured out how to run and quit other
applications with c#, but now I'm stuck. Can I simulate keystrokes or
mouseclicks or something similar to perform different actions within
the other application?

Thanks in advance!

Regards,
Calad

Jan 3 '06 #1
4 3329
You should be able to use System.Windows.Forms.SendKeys to simulate
keystrokes; however, that's not terribly neat. What is the application
you're trying to control?

Jan 3 '06 #2
Hi,
"Calad" <ca***@gmx.at> wrote in message
news:11**********************@g49g2000cwa.googlegr oups.com...
Is there any way to control another running application out of my
c#-application? I've already figured out how to run and quit other
applications with c#, but now I'm stuck. Can I simulate keystrokes or
mouseclicks or something similar to perform different actions within
the other application?


No idea if you can fully control it but you can send it events for sure
using the win32 API SendMessage
You will have to create the messages though.
Look for Macro recorders , you may get examples of how to do it.

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
Jan 3 '06 #3
Abbyy FineReader. I'm trying to evaluate different OCR-solutions, and
apart from some OCR-SDKs I want to / have to test a standalone OCR-Tool
as well (automatically).

Jan 3 '06 #4
Hi,

"Calad" <ca***@gmx.at> wrote in message
news:11*********************@g43g2000cwa.googlegro ups.com...
Abbyy FineReader. I'm trying to evaluate different OCR-solutions, and
apart from some OCR-SDKs I want to / have to test a standalone OCR-Tool
as well (automatically).


For this I would advise you to get a macro recorder , implementing such a
feature will be very time consuming.
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
Jan 3 '06 #5

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

Similar topics

3
1576
by: Stefano Meier | last post by:
If in a WindowsApplication in the static main method I have something like: System.Console.WriteLine("Starting Application ..:"); and I start this WindowsApplication from a console I won't...
0
1170
by: Shon | last post by:
When I launch Excel from my application using CApplication app; app.CreateDispatch("Excel.Application"); then close it later with app.Quit(); the Excel process still remains on my system...
2
221
by: Nicola Garone | last post by:
Hi I'm planning to realize an ASP.NET application and I'd like to use, for a particular function, a control which have to run client-side but embedded in Aspx pages (like flash playee or a lot of...
4
3723
by: Varangian | last post by:
Hi there, I'm having problems using the Timer i.e. System.Timers.Timer (not the one found on the toolbox) in a webapplication and its giving me problems. Although I'm setting the interval to 5...
2
1555
by: Douglas Peterson | last post by:
Was able to reproduce this with a simple example (using .NET 1.1): 1) Create a new WindowsApplication project 2) Add a button to the form and set its Visible property to false 3) Double click on...
2
1270
by: bg_ie | last post by:
Hi, I wish to write a WindowsApplication which prompts the user to enter a set of values in text boxes. I then what to write these values to an xml file. I have created my own class where these...
2
1574
by: overworkedJenny | last post by:
when i try to open a new project i get this long message with basically says WindowsApplication.vbproj is not installed. IS there any way to re-install it without installing/reinstalling the whole...
0
867
by: overworkedJenny | last post by:
every time i try and open a new anything a message pops up basically stating my WindowsApplication.vbproj is not installed....i dont know what the file is... can i download this from a website....i...
1
4064
by: dotnetnari | last post by:
hi, How to Drag and drop the nodes from treeview into datatable columns using windowsapplication in c# Thanks
12
11007
by: raylopez99 | last post by:
Keywords: scope resolution, passing classes between parent and child forms, parameter constructor method, normal constructor, default constructor, forward reference, sharing classes between forms....
0
7137
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7417
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7506
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5063
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
4734
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3219
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3210
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1572
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
780
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.