niceguy75 Posted April 21, 2010 Share Posted April 21, 2010 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 More sharing options...
funkey Posted April 21, 2010 Share Posted April 21, 2010 ShellExecute(@MyDocumentsDir & "\simplicity.theme") WinWait("Display Properties") ControlClick("Display Properties", "", "Button3") Programming today is a race between software engineers striving tobuild bigger and better idiot-proof programs, and the Universetrying to produce bigger and better idiots.So far, the Universe is winning. Link to comment Share on other sites More sharing options...
niceguy75 Posted April 21, 2010 Author Share Posted April 21, 2010 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". Link to comment Share on other sites More sharing options...
omikron48 Posted April 21, 2010 Share Posted April 21, 2010 Then just change the path specified for the theme. You should be able to manage to do that at least. Link to comment Share on other sites More sharing options...
niceguy75 Posted April 21, 2010 Author Share Posted April 21, 2010 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 More sharing options...
99ojo Posted April 21, 2010 Share Posted April 21, 2010 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 Link to comment Share on other sites More sharing options...
omikron48 Posted April 21, 2010 Share Posted April 21, 2010 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 More sharing options...
niceguy75 Posted April 21, 2010 Author Share Posted April 21, 2010 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 More sharing options...
kaotkbliss Posted April 21, 2010 Share Posted April 21, 2010 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 gamehttps://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek We're gonna need another Timmy! Link to comment Share on other sites More sharing options...
somdcomputerguy Posted April 21, 2010 Share Posted April 21, 2010 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. Link to comment Share on other sites More sharing options...
99ojo Posted April 21, 2010 Share Posted April 21, 2010 Big grin, you might add the WinClose after the ControlClick to get the changes... ;-)) Stefan Link to comment Share on other sites More sharing options...
omikron48 Posted April 22, 2010 Share Posted April 22, 2010 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? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now