Jump to content
therks

Open Action Center (Windows 10)?

Recommended Posts

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. :)

Share this post


Link to post
Share on other sites
careca
control /name Microsoft.ActionCenter  
control wscui.cpl

Spoiler

Paster - Main function is to paste text, but has more functions. (No longer mantained, switched to String Trigger)

Renamer - Rename files and folders, remove portions of text from the filename etc.

GPO Tool - Export/Import Group policy settings.

BeatsPlayer - Music player.

Params Tool - Right click an exe to see it's parameters or execute them.

String Trigger - Triggers pasting text or applications or internet links on specific strings.

Inconspicuous - Hide files in plain sight, not fully encrypted.

Regedit Control - Registry browsing history, quickly jump into any saved key.

Time4Shutdown - Write the time for shutdown in minutes.

Power Profiles Tool - Set a profile as active, delete, duplicate, export and import.

Firefox Profile Backup - Backup/restore previously saved profile.

Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes.

NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s.

IUIAutomation - Topic with framework and examples

Au3Record.exe

Share this post


Link to post
Share on other sites
therks

I actually tried those but they open the Security and Maintenance panel for me, not the action center. 

Share this post


Link to post
Share on other sites
iamtheky
powershell -c "Get-ControlPanelItem -Name "'Action Center'" | Show-ControlPanelItem"

 

if that fails use the first part to verify that action center package is available

powershell -c "Get-ControlPanelItem -Name A*"

 


,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

Share this post


Link to post
Share on other sites
jguinch

Do you mean this :

ShellExecute("ms-settings:notifications")

The list of settings can be found here : https://msdn.microsoft.com/en-us/microsoft-r/mt228342

 

Edited by jguinch

Share this post


Link to post
Share on other sites
Subz

I believe he is referring to the Windows 10 Action Center Toast Notifier (see attached), which you see when you press Win+a

 

Action_Center.png

Share this post


Link to post
Share on other sites
therks

Yes, @Subz has exactly what I'm looking for. I guess I should have included a screenshot myself. Thanks Subz.

Share this post


Link to post
Share on other sites
iamtheky

Well that is a fine question,  is there a way to determine what command win+a is executing? 


,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

Share this post


Link to post
Share on other sites
jetterer

Have you tried this:

Send ( "{LWINDOWN}" & "a" & "{LWINUP}")

 

Share this post


Link to post
Share on other sites
anthonyjr2

It is much more difficult than I thought it would be to figure out what WIN+A is calling, and looking through every possible thread on the Internet still has me coming up with nothing. I can't find a Powershell command to open the Action Center either.


UHJvZmVzc2lvbmFsIENvbXB1dGVyZXI=

Share this post


Link to post
Share on other sites
iamtheky

Maybe its not a thing, maybe its two things...

Maybe the question is how to create a blank toast and populate it with an object, in this case being the Action Center.

What is the command to just make the side window pop out?

Edited by iamtheky

,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

Share this post


Link to post
Share on other sites
therks
23 hours ago, jetterer said:

Have you tried this:

Send ( "{LWINDOWN}" & "a" & "{LWINUP}")

 

No that won't work because the Win+A shortcut key is disabled.

14 hours ago, Subz said:

This works for me:

_ActionCenter()
Func _ActionCenter()
    Local $hSysTray = ControlGetHandle('[Class:Shell_TrayWnd]', '', '[Class:TrayButton;Instance:3]')
    If @error Then MsgBox(16, "Error", "System tray not found")
    ControlClick('', '', $hSysTray)
EndFunc

 

This does not work for me. I can make it work if I change Instance:3 to 1, but this also requires the normal Action Center icon to be visible, which is what I'm specifically trying to replace.

Thanks for the help guys. I'm assuming it can't be done, or at least it has yet to be discovered how. I do understand I have a very specific set of circumstances I'm trying to work with, but I figured if there was any way to do what I want, someone on the forums here might know.

Share this post


Link to post
Share on other sites
anthonyjr2

I even tried monitoring DLLs when I pressed the hotkey to maybe track down what command was being passed, but that stuff got way more complicated than I could handle way too quickly, haha. In any case, I think the consensus I saw after searching around is to send some sort of blank Toast Notification to the Action Center.


UHJvZmVzc2lvbmFsIENvbXB1dGVyZXI=

Share this post


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

  • Similar Content

    • Daydreamer067
      By Daydreamer067
      Hi
      in windows 10 i create a new desktop.
      I want to run a script in this desktop, for exemple Mouseclick("left",x,y)
      I want the script to work in that desktop while i switch to the primary desktop.
      So far autoit clicks on the active desktop.
      Is there a way to make it run only on the other desktop ?
       
      Thank you for your response.
    • codingislife
      By codingislife
      Hi everyone, 
      I'm new to the autoit world and am trying to do something a little complicated and am having trouble developing a solution. My OS after reimaging comes up with two operating system choices during boot up, I'd like to delete the incorrect OS. I have noticed that the default OS is always the correct OS. My issue is I need a way to find the OS identifier before I can delete. I know that I  can use bcdedit to find this but it changes every time and it needs to be the correct identifier (i.e. not the Default or bootmgr). If someone knows of a way to parse through the output of bcdedit to find the identifier that would be greatly appreciated. Here is an example of what I am trying to do:
      https://scottiestech.info/2016/07/03/remove-the-choose-an-operating-system-message-when-starting-your-computer/
    • PramodR
      By PramodR
      Hello,
      i am new to AUTO IT development , I would like one help to read value from a POP up.
      i am able to read below values using inspect tool , information given below, I tried to create a script to read value but that does not help. any help is appreciated.
      Available Controls
      POPUP window Controls
      Auto Id = "UpdateNow_Btn"
      Name = Update Now
      Invoke - Button Control
      Below Controls i get when i move inspector tool to the text which i need to read. i need to read the text Name . Currently with my code i get only blank text 
      Auto Id = timeOutLb
      ClassName = TextBlock
      LegacyIAccess = GetName
      Name  = Read Value for Name
       
      My code.
       
    • Dreamfire
      By Dreamfire
      Hi,
      Since today, exe's are being flagged as having a trojan by Windows Defender (Fuery.B!cl)
      Version:  3.3.14.3 - SciTE Version 3.7.3



       

    • PramodR
      By PramodR
      Hello,
      I have to execute below block of code in elevated previllage, as that particular wmic class will work only with admin previlage.
      i am getting out put when i launch autoit as administrator,  but i will not be able to launch autoit as admin in this particular case but my user have admin rights.
      is there any better way i can run those command as administrator.?
      tried below steps:
      i have tried #RequireAdmin but that creates a user prompt  Tried using Runas command but gives error as wrong username or password , stuck with that step.  
       
×