-
April 12th, 2019, 06:03 AM
#1
How to detect a pop-up notification message in Windows?
Good day All
I am new in C++ but i want to learn. I know a little bit of VBA and i feel better there but i have been told that the task below would be easier to be solved using C++...!?
This is my problem:
I have a pop-up notification message coming from the notification area of Windows. This message has two states (colors RED and GREEN) depend of what has been sent from the server. I need to send data to the serial port so i can use Arduino to act according to each state of that message. I do not know which way must be taken. Listen to the port and act accordingly or dealing with Windows notification.
I apologize my English is not my mother tong language.
Since this is my first treat in this forum please let me know and guide me if i am mistaken or with the forum or with the subject.
Thanks in advance to dose who bother to answer.
-
April 12th, 2019, 07:59 AM
#2
Re: How to detect a pop-up notification message in Windows?
If you are going to code this in C++, then for Windows coding are you using MFC another framework or just the WIN32 APIs?
All advice is offered in good faith only. All my code is tested (unless stated explicitly otherwise) with the latest version of Microsoft Visual Studio (using the supported features of the latest standard) and is offered as examples only - not as production quality. I cannot offer advice regarding any other c/c++ compiler/IDE or incompatibilities with VS. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/ and can be used without reference or acknowledgement. Also note that I only provide advice and guidance via the forums - and not via private messages!
C++23 Compiler: Microsoft VS2022 (17.6.5)
-
April 12th, 2019, 09:59 AM
#3
Re: How to detect a pop-up notification message in Windows?
Try searching for "tray icon events win32". The results may only allow you to be notified for tray icons that you create, however. If this is the case, post back and we can help you find other approaches where you can capture when a notification window for another application appears.
-
April 12th, 2019, 11:13 AM
#4
Re: How to detect a pop-up notification message in Windows?
Originally Posted by 2kaud
If you are going to code this in C++, then for Windows coding are you using MFC another framework or just the WIN32 APIs?
Hi 2kaud
Thank you for the replay.
I just guess WIN 32 API...I am in progress to install MVS since i can see in Google it is the most popular way. Is it going to work for me in this case?
-
April 12th, 2019, 11:19 AM
#5
Re: How to detect a pop-up notification message in Windows?
Hello Arjay
Thanks for the replay
Just to mention the notification message is poping-up periodically when the administrator decide to change the state of the color. It is also making a sound at that time.
How do you think: do i focus on the network activity or Windows notification function?
-
April 13th, 2019, 02:02 AM
#6
Re: How to detect a pop-up notification message in Windows?
Open a web browser, enable flash pop up screen and see it. It can also be hidden
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|