I asked a question along a similar line about a week ago and didn't get any
replies. Let me try to ask the quetion again a little bit different to see if
I can get some help on this problem.
Is there a way (API function) from one program to restore another
application that is running in the system tray? Specifically I need to send a
double mouse click to the application to get it to restore from the system
tray.
Thanks. 5 6139
Give these two a look. They're not what you want but they may give you some
ideas. http://www.codeguru.com/Cpp/controls...cle.php/c5309/ http://www.codeproject.com/shell/min...y.asp#xx5745xx
You could use ShowWindow API with the SW_SHOWNORMAL flag.
"scottt" <sc****@discuss ions.microsoft. com> wrote in message
news:2C******** *************** ***********@mic rosoft.com... I asked a question along a similar line about a week ago and didn't get any replies. Let me try to ask the quetion again a little bit different to see if I can get some help on this problem.
Is there a way (API function) from one program to restore another application that is running in the system tray? Specifically I need to send a double mouse click to the application to get it to restore from the system tray.
Thanks.
My suggestion is that you look into the Windows SDK SendMessage API function:
SendMessage(hwn d,WM_USER,0,WM_ LBUTTONDBLCLK);
HTH
--
Dale Preston
MCAD C#
MCSE, MCDBA
"scottt" wrote: I asked a question along a similar line about a week ago and didn't get any replies. Let me try to ask the quetion again a little bit different to see if I can get some help on this problem.
Is there a way (API function) from one program to restore another application that is running in the system tray? Specifically I need to send a double mouse click to the application to get it to restore from the system tray.
Thanks.
Thanks to both of you. That got me a step farther in understanding the problem.
I found that the problem is that the application does not have a
MainWindowHandl e when it is in the system tray so it look like none of these
functions will work.
I would think that the application should have a handle that I could send
messages to but the Process class does not seem to have one that I can use
when its in the system tray.
any clues?
"Dale" wrote: My suggestion is that you look into the Windows SDK SendMessage API function:
SendMessage(hwn d,WM_USER,0,WM_ LBUTTONDBLCLK);
HTH -- Dale Preston MCAD C# MCSE, MCDBA
"scottt" wrote:
I asked a question along a similar line about a week ago and didn't get any replies. Let me try to ask the quetion again a little bit different to see if I can get some help on this problem.
Is there a way (API function) from one program to restore another application that is running in the system tray? Specifically I need to send a double mouse click to the application to get it to restore from the system tray.
Thanks.
I don't have an answer for you on that one. Besides Google, I'd suggest you
try the Win32 or PlatformSDK newsgroups.
HTH
--
Dale Preston
MCAD C#
MCSE, MCDBA
"scottt" wrote: Thanks to both of you. That got me a step farther in understanding the problem. I found that the problem is that the application does not have a MainWindowHandl e when it is in the system tray so it look like none of these functions will work.
I would think that the application should have a handle that I could send messages to but the Process class does not seem to have one that I can use when its in the system tray.
any clues?
"Dale" wrote:
My suggestion is that you look into the Windows SDK SendMessage API function:
SendMessage(hwn d,WM_USER,0,WM_ LBUTTONDBLCLK);
HTH -- Dale Preston MCAD C# MCSE, MCDBA
"scottt" wrote:
I asked a question along a similar line about a week ago and didn't get any replies. Let me try to ask the quetion again a little bit different to see if I can get some help on this problem.
Is there a way (API function) from one program to restore another application that is running in the system tray? Specifically I need to send a double mouse click to the application to get it to restore from the system tray.
Thanks.
Thanks.
"Dale" wrote: I don't have an answer for you on that one. Besides Google, I'd suggest you try the Win32 or PlatformSDK newsgroups.
HTH -- Dale Preston MCAD C# MCSE, MCDBA
"scottt" wrote:
Thanks to both of you. That got me a step farther in understanding the problem. I found that the problem is that the application does not have a MainWindowHandl e when it is in the system tray so it look like none of these functions will work.
I would think that the application should have a handle that I could send messages to but the Process class does not seem to have one that I can use when its in the system tray.
any clues?
"Dale" wrote:
My suggestion is that you look into the Windows SDK SendMessage API function:
SendMessage(hwn d,WM_USER,0,WM_ LBUTTONDBLCLK);
HTH -- Dale Preston MCAD C# MCSE, MCDBA
"scottt" wrote:
> I asked a question along a similar line about a week ago and didn't get any > replies. Let me try to ask the quetion again a little bit different to see if > I can get some help on this problem. > > Is there a way (API function) from one program to restore another > application that is running in the system tray? Specifically I need to send a > double mouse click to the application to get it to restore from the system > tray. > > Thanks. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: CPNZ |
last post by:
I have a database i am m oving to another server, during the process I
am moving the data and log files to another drive.(Which I have done
countless times before with no problems)
The problem I am having is after I restore the database using the
following statement :
RESTORE DATABASE CMAMSPROD FROM DISK = ’C:\Databasename.BAK’
WITH STANDBY = ’D:\Program Files\Microsoft SQL
Server\MSSQL\BACKUP\Databasename\databasename.STANDBY’
,MOVE...
|
by: Robert Samuel White |
last post by:
Hi there. Can anyone point me to some good references or examples on how to
create an independent tray program that can send triggers to external
applications all designed inside the same solution?
Basically, I want a tray program with a context menu of options (they can be
checked or unchecked options) that when an action is taken gets triggered to
all the other open applications of the solution. I've already created the
tray program,...
|
by: shivaranjani.s.adimulam |
last post by:
Hi,
I have a problem regarding restoring previous instance of an
application minimized in systray.So that when I try to run the
application it should maximize its previous instance instead of
creating a new one.
The part of code is like -
I have one function which returns the instance of the
|
by: Robert S. Liles |
last post by:
Following the advice of several members, especially Dragon, I have gotten
this routine to work. If you double click on your program's icon to load
it, and it is already running minimized into the sysem tray, it will just
reopen the running instance, not create another instance. Put this Function
into a Module in a DLL and call it like
If NoLoad(Me) then END
in your Form1.Load routine. This function returns TRUE if an instance is...
|
by: HSP |
last post by:
hi.
i need to restore an old database. The db was backed up using a DLT drive,
using 2 volumes. The content for the tapes was copied to file onto Solaris
machine using rsh and dd (for backup purposes). Now, the drive is defective
and can't read the tapes anymore.
Server is AIX 4.3.2 and database is IBM DB2 Server (DB2 for AIX Version
2.1.2)
| |
by: Patrick Dugan |
last post by:
I am using VS2005 (vb) and I have a program that starts when Windows boots
up. Occasionally the icon that should appear in the system tray does not
show up. The program is still running in memory but the tray icon is not
there. If I start the program after Windows has booted up the icon shows
every time. I am assuming that the reason is due to the icon being created
before the system tray is loaded/running. I have used a timer with...
|
by: Joseph Geretz |
last post by:
The conventional approach is easy enough; drop a NotifyIcon onto a Form.
When the form is loaded - bingo - the icon appears in the System Tray.
I can't use this approach though. I'm writing a service. But I'd like my
service to install an icon on the System Tray so that the user can start /
stop / and otherwise control the service interactively, and without having
to go to the Services applet. How do I do this?
Thanks for your advice.
|
by: yolilb |
last post by:
hi everybody
I'm using VB6
I need to restore a program that resides in the sys tray.
I menage to write a function that finds the hwnd of the program but I can't
figure out how to restore the program from the sys tray
can someone help pls
thanks
|
by: Usman Jamil |
last post by:
Hi
I've a windows application that does a lengthy backup process. While the
process is going on, I need to show a progress bar inside system tray or
just above the system tray. Can someone please guide me how to show the
progress bar out of the boundaries of the application form area and near the
system tray.
Regards
Usman
|
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: 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,...
| |
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 most users, this new feature is actually very convenient. If you want to control the update process,...
|
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: 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.
| |
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...
| |