473,695 Members | 2,627 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 3337
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.goo glegroups.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******** *************@g 43g2000cwa.goog legroups.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
1586
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 recive the "Starting Application ..:" message. Why?
0
1178
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 until I kill it manually with
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 others viewer). I know I can develop an ActiveX document vith Visual Basic 6, but since I hope to not have to re-engineering the application for a long time, I'm looking for newest technology. (I have to use VB.net or VB6) Any suggestion,...
4
3732
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 secs (5000millisecs) it seems that this interval is not being followed correctly. I'm using Elapsed event to make something and this event is being raised bizarrely after 2 secs, or after 3, sometimes after 5, sometimes less than 1 sec :S or 2 in...
2
1566
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 the form to add Form1_Load handler 3) Add the following code to Form1: private delegate void DoAsync(); private void Form1_Load(object sender, System.EventArgs e) {
2
1283
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 values can be stored as the application runs, but I am unsure where to declare an object belonging to this class. Should it be in the program class as a static member and do I then pass it to my Forms constructor? Thanks for your help,
2
1583
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 program...? plus when i try to uninstall vb.net my printer copy program come up????? help...anyone... OverWorkedJenny
0
876
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 dont have the program discs to reinstalle the whole program, and my computer wont let me uninstall the program either... HELP someone. thanks.
1
4087
by: dotnetnari | last post by:
hi, How to Drag and drop the nodes from treeview into datatable columns using windowsapplication in c# Thanks
12
11091
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. Here is a newbie mistake that I found myself doing (as a newbie), and that even a master programmer, the guru of this forum, Jon Skeet, missed! (He knows this I'm sure, but just didn't think this was my problem; LOL, I am needling him) If...
0
8639
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8582
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9120
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8832
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7670
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5841
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4586
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2279
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
1980
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.