473,573 Members | 3,209 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Listening for dialog box from another program

I am trying to make a program that times how long it takes to do
something in another program. Is there away to make my timer program
listen for a dialog box to open on the other program and then perform
some functions in my timer program? I do not have the source code for
the program I am trying to listen to. Does anyone know how/if I can do
this?

Dec 28 '05 #1
4 1583
Opettaja,

It will be VERY difficult to do this. Unless it has an interface of
some sort (as in remoting, automation, or something) to control it, you will
have to resort to sending messages to the app and then trying to hook into
the results, which is not a small proposition at all.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Opettaja" <op******@gmail .com> wrote in message
news:11******** **************@ g47g2000cwa.goo glegroups.com.. .
I am trying to make a program that times how long it takes to do
something in another program. Is there away to make my timer program
listen for a dialog box to open on the other program and then perform
some functions in my timer program? I do not have the source code for
the program I am trying to listen to. Does anyone know how/if I can do
this?

Dec 28 '05 #2
lol okay, well its not worth it, its just a stop watch thats timing how
long it takes to save and load from database with a program from work.
I will just manually click the start and stop button I guess.

Dec 28 '05 #3
Opettaja kirjoitti:
I am trying to make a program that times how long it takes to do
something in another program. Is there away to make my timer program
listen for a dialog box to open on the other program and then perform
some functions in my timer program? I do not have the source code for
the program I am trying to listen to. Does anyone know how/if I can do
this?


You could try something like Win32 API FindWindow or FindWindowEx and
periodically check if the dialog/window can still be found (by those
funcs). Something remotely like
http://www.codeproject.com/csharp/cskillapp.asp

No idea how well it would work for your purposes, though :)

- Jan
Dec 28 '05 #4
You can use a profiler to do performance analysis of managed code - very
good one in my opinion is ANTS Profiler

"Opettaja" <op******@gmail .com> wrote in message
news:11******** **************@ g43g2000cwa.goo glegroups.com.. .
lol okay, well its not worth it, its just a stop watch thats timing how
long it takes to save and load from database with a program from work.
I will just manually click the start and stop button I guess.

Dec 29 '05 #5

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

Similar topics

17
3826
by: SK | last post by:
I am calling an exe thru' href, but when it executes, I get the message if I want to open the file(exe file). Is there any way I can suppress this from appearing and open the program? Thank you, SK
1
2012
by: Kyzer | last post by:
Hi all, I am writing a DLL which includes a function that may open a dialog. When this dialog is opened, an additional icon and program description is displayed in the Windows taskbar (similar to any other program that is opened). What I am looking to do is ensure that when the dialog is opened, the title of the dialog doesn't display in...
3
2366
by: ssantamariagarcia | last post by:
I am trying to program a server in C for UNIX to get a kind of "bridge" between the clients of a port A and the clients of a port B. For that, I create 2 processes: one that listen the requests of port A clients and another for the Port B ones. In each process, when a connetion service is required, after accepting , the value of the socket...
5
2001
by: Adam | last post by:
Hi, How do i listen for windows messages in c# on compact.net? I have a window containing an instantiation of the HTML viewer control, which is a child of the main form. As the compact implementation of the form class does not have a wndproc function to override, i cannot get the messages. I cannot use a message window, as the window i am...
23
6974
by: George | last post by:
Is there a way to customize the open file common dialog? I am trying to modify the button text so I can create a delete file common dialog. I need the same functionality of the open file common dialog but just need to change the button text from "open" to "delete". Any ideas? Thanks
4
11617
by: Alexander | last post by:
Hi, I have written a program that takes on some operations much more time than I expected. As I have seen users clicking wildly on the screen to make something happen, I want to follow the microsoft principles: always show them something ;) First I made up a little status dialog containing a gif image to show a little animation and a...
6
3097
by: kai | last post by:
Hi, I was tring to run an example (HelloWorld.aspx) from MSPrss book, I get this message: "ASP.NET Development Server faild to start listening port 1034. Error message: An attempt was made to access a socket in a way fobidden by its access permissions."
6
2267
by: Marc | last post by:
How could I directly trigger a very simple on localhost and a known port listening server from my internet browser client? Local host means the little server would be running on the client machine, where my browser resides. Browser would be IE, O.S. Windows 2000 or XP, and it's for an intranet application. The goal of the little server on the...
2
1069
by: Joseph Sheppard | last post by:
We have a pesky dialog box that appears on our Ascent Capture server 50 times a day, bottle-necking our release process. While we wait for a corrected .dll to prevent this dialog, I would like to write a program that automatically answers it (the dialog has one choice only: VBOK). I remember reading a couple of years ago that .Net...
0
7741
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...
0
7661
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...
0
7977
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. ...
1
7730
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8026
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...
0
6347
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...
1
2163
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 we have to send another system
1
1256
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
984
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...

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.