Jump to content
Sign in to follow this  
anom_admin

Action Center check/uncheck box

Recommended Posts

anom_admin

Hello everyone,

I'm trying to create a script that will check and uncheck certain checkbox in the action center.

I am able to check and uncheck all the boxes correctly under ''Security messages'', however under ''Maintenance messages''. I am unable to uncheck the box Drive Status, File history, Device Software, Storage Space, Startup apps and Work Folders.

I'm using the AutoIt Window Info tool to get my button class ID, it says that Drive Status is Button14 and the others are Button15, Buttont16,etc.

Executing my script only uncheck the box from Buttont1 to Button13, then the rest isn't working.

;Security messages
ControlCommand("Action Center", "Change Action Center settings", "[CLASS:Button; INSTANCE:1]", "UnCheck", "")
ControlCommand("Action Center", "Change Action Center settings", "[CLASS:Button; INSTANCE:2]", "UnCheck", "")
ControlCommand("Action Center", "Change Action Center settings", "[CLASS:Button; INSTANCE:3]", "UnCheck", "")
ControlCommand("Action Center", "Change Action Center settings", "[CLASS:Button; INSTANCE:4]", "UnCheck", "")
ControlCommand("Action Center", "Change Action Center settings", "[CLASS:Button; INSTANCE:5]", "UnCheck", "")
ControlCommand("Action Center", "Change Action Center settings", "[CLASS:Button; INSTANCE:6]", "UnCheck", "")
ControlCommand("Action Center", "Change Action Center settings", "[CLASS:Button; INSTANCE:7]", "UnCheck", "")
ControlCommand("Action Center", "Change Action Center settings", "[CLASS:Button; INSTANCE:8]", "UnCheck", "")

;Maintenance messages
ControlCommand("Action Center", "Change Action Center settings", "[CLASS:Button; INSTANCE:11]", "UnCheck", "")
ControlCommand("Action Center", "Change Action Center settings", "[CLASS:Button; INSTANCE:12]", "UnCheck", "")
ControlCommand("Action Center", "Change Action Center settings", "[CLASS:Button; INSTANCE:13]", "UnCheck", "")
ControlCommand("Action Center", "Change Action Center settings", "[CLASS:Button; INSTANCE:14]", "UnCheck", "")
ControlCommand("Action Center", "Change Action Center settings", "[CLASS:Button; INSTANCE:15]", "UnCheck", "")
ControlCommand("Action Center", "Change Action Center settings", "[CLASS:Button; INSTANCE:16]", "UnCheck", "")
ControlCommand("Action Center", "Change Action Center settings", "[CLASS:Button; INSTANCE:17]", "UnCheck", "")
ControlCommand("Action Center", "Change Action Center settings", "[CLASS:Button; INSTANCE:19]", "UnCheck", "")

Windows : 8.1

Thank you,
 

 

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
Sign in to follow this  

×