Seminko

Enable / Disable Windows Aero

4 posts in this topic

Hey fellas,

is there a way for autoit to enable / disable windows aero?

Thanks

Seminko

Share this post


Link to post
Share on other sites



 

How to rapidly enable or disable Aero under Windows 7?
  • Open a command prompt in administrator mode
    • Click on Start > Run > type "cmd" and press CTRL + SHIFT + ENTER.
  • To disable Aero, use this command:
    • net stop uxsms
  • To enable Aero back:
    • net start uxsms

Looks possible you will just have to add that to an autoit cmd command

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Disable:

DllCall("dwmapi.dll", "hwnd", "DwmEnableComposition", "uint", 0)

Enable:

DllCall("dwmapi.dll", "hwnd", "DwmEnableComposition", "uint", 1)

 

Note that the script need to run in order to keep the the Windows Aero disabled.

If the script designed to run while the Aero is disabled then this method is better.

Edited by gil900

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