Jump to content

How to apply custom theme?


Recommended Posts

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.

Link to comment
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.

Link to comment
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.

Link to comment
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.

Link to comment
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.

Link to comment
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!

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...