Sign in to follow this  
Followers 0
niceguy75

How to apply custom theme?

12 posts in this topic

Hi guys,

I wish to apply a custom theme with autoit. Please give me the script which can apply a theme named "simplicity.theme" and also close personalization window after applying the theme.

Please help me guys, I am very new to Autoit and I don't know how to use autoit for applying themes.

Share this post


Link to post
Share on other sites



ShellExecute(@MyDocumentsDir & "\simplicity.theme")
WinWait("Display Properties") 
ControlClick("Display Properties", "", "Button3")


Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs, and the Universe
trying to produce bigger and better idiots.
So far, the Universe is winning.

Share this post


Link to post
Share on other sites

ShellExecute(@MyDocumentsDir & "\simplicity.theme")
WinWait("Display Properties") 
ControlClick("Display Properties", "", "Button3")

Not working, I guess location is not right in the script, location of theme file is "C:\Windows\Resoruce\Themes".

Share this post


Link to post
Share on other sites

Then just change the path specified for the theme.

You should be able to manage to do that at least.

Share this post


Link to post
Share on other sites

Then just change the path specified for the theme.

You should be able to manage to do that at least.

Come on brother, I have already tried. But not working even after changing the location of the theme file.

Secondly when I place that file in the MyDocument folder the theme was applied successfully but the personalization window is not closing. I want that window to be closed by Autoit as well.

Share this post


Link to post
Share on other sites

Hi,

this works for me on WIN XP Sp3:

ShellExecute("C:\WINDOWS\Resources\Themes" & "\luna.theme")
WinWait("Display Properties") 
ControlClick("Display Properties", "OK", "Button3")

Without "OK" in function call ControlClick the window doesn't close!?!

;-))

Stefan

Share this post


Link to post
Share on other sites

Maybe it's just me, but the way you word your statements makes me perceive you as someone who is lazy and who isn't concerned with actually learning anything.

Either that or you don't know enough English to understand what the help file is saying.

Share this post


Link to post
Share on other sites

Hi,

this works for me on WIN XP Sp3:

ShellExecute("C:\WINDOWS\Resources\Themes" & "\luna.theme")
WinWait("Display Properties") 
ControlClick("Display Properties", "OK", "Button3")

Without "OK" in function call ControlClick the window doesn't close!?!

;-))

Stefan

Thanks brother but the personalization window is still not closing. I have tried with "personalization" in place of "Display Properties" as well, but still not closing the window.

@omikron48

We are not here to discuss about English. I can see how good your english is, just see your reply once again.

Share this post


Link to post
Share on other sites

This forum is not too keen on lazy coders.

We like to help those that at least TRY to help themselves.


010101000110100001101001011100110010000001101001011100110010000

001101101011110010010000001110011011010010110011100100001

My Android cat and mouse game
https://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek

We're gonna need another Timmy!

Share this post


Link to post
Share on other sites

Replace ControlClick("Display Properties", "OK", "Button3") with WinClose("Display Properties").


- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
Share on other sites

Big grin,

you might add the WinClose after the ControlClick to get the changes...

;-))

Stefan

Share this post


Link to post
Share on other sites

Maybe for some reason or another the window information of the window that displays for him is different.

@niceguy75: Can you post the window information shown by Au3Info.exe so we can confirm that we're all in the same page here?

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  
Followers 0