CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    Apr 2019
    Posts
    3

    Question 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.

  2. #2
    2kaud's Avatar
    2kaud is offline Super Moderator Power Poster
    Join Date
    Dec 2012
    Location
    England
    Posts
    7,822

    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)

  3. #3
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    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.

  4. #4
    Join Date
    Apr 2019
    Posts
    3

    Re: How to detect a pop-up notification message in Windows?

    Quote Originally Posted by 2kaud View Post
    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?

  5. #5
    Join Date
    Apr 2019
    Posts
    3

    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?

  6. #6
    Join Date
    Mar 2019
    Location
    UK, USA, London, australia, canada, marshall island, japan, china, brazil, new zealand, united arab emirates
    Posts
    1

    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
  •  





Click Here to Expand Forum to Full Width

Featured