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? 4 1586
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?
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.
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
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. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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
|
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 the Windows taskbar
(eg. opening the Font box in Microsoft Word doesn't display another
item in the...
|
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 generated is added to a set of sockets. This
set keeps on listening on each socket for new...
|
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 listening to will then not display.
Is there another method of doing this?
|
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
| |
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 TextBox for a changing status message during
the work of the main program.
Just showing the dialog box...
|
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."
|
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 localhost client
side would be to trigger a scanner, with the TWAIN library. Also this server
is...
|
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 (hopefully vb.net) could
do such a thing...If this is the case, I've been googling for the wrong
terms,...
|
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...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
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...
|
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...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |