Jump to content

Recommended Posts

I'm trying to create a script to detect the Action Center in Windows 10:

Opt("WinTitleMatchMode", 4)
Opt("WinSearchChildren", 1)

While 1
    $hControl = ControlGetHandle("[CLASS:TrayNotifyWnd]", "", "Action Center, No new notifications")
    If not $hControl = 0x00000000 and Not WinActive("[CLASS:TrayNotifyWnd]") Then

I'm having issues detecting the Main Class and Window name of Action Center. I have used the Autoit Window Info Tool without success and I'm currently trying Microsoft Spy++. I want to detect the window when it is active.

If anyone has figured this out before or could lend some support it would be much appreciated.

I have also done research and think the Class could be Dwm and the Window Title is DWM Notification Window but I have been unsuccessful with both

Thank you

- red

Annotation 2020-08-03 151443.png

Here is the Failed test with Autoit WindowInfo Tool:

Opt("WinTitleMatchMode", 4)
Opt("WinSearchChildren", 1)

While 1

Func _ActionCenter()
    ;If @error Then MsgBox(16, "Error", "System tray not found")
    if WinExists("[TITLE:Action center; CLASS:Windows.UI.Core.CoreWindow]") then


Edited by red0fireus
Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By therks
      As the title says, does anyone know of a way to open the Windows 10 action center using AutoIt. Maybe via rundll or some other applet?
      My intention is to just hide the normal icon, then have an AutoIt system tray icon that will open the action center on click. And I can't just send the Win+A hotkey because I have it disabled. 
      Thanks for reading.
    • By dieterhatn
      Hello there!
      I've recently updated to Windows 10 and saw that new and beatiful info center for notifications.
      A lot of applications already support it, so I'm curious if I can get my autoit script to use the windows native notification system.
      Any help is much appreciated
      Thanks in advance
  • Create New...