Jump to content
Sign in to follow this  
newhere

Changing Windows Themes >in the background<

Recommended Posts

newhere

Hey,

Im completely new to AutoIt and therefore am completely clueless what to do or understanding topics with similar problems.

Ive got the following script:

RunWait(@ComSpec & " /c " & '%SystemRoot%system32rundll32.exe %SystemRoot%system32shell32.dll,Control_RunDLL %SystemRoot%system32desk.cpl desk,@Themes /Action:OpenTheme /file:"C:UsersUsernameAppDataLocalMicrosoftWindowsThemesDay.theme"', "", @SW_HIDE)
WinWait("Anpassung")
WinClose("Anpassung")

Where "Anpassung" is the Windows 7 Personalization Window where you change/create themes (I dont know the exact name in the english version of Windows). This combined with the task schedule function of windows 7 changes my themes according to daytime.

It works perfectly except for one thing that is bugging me:

It opens the Personalization window for a short moment, even when Im doing something in another application (browsing, playing a game and so on).

My question: Is it somehow possible to change the script so it opens the window and closes in the background?

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  

×