Guest Posted May 8, 2013 Share Posted May 8, 2013 (edited) hello, i need a function to disable/enable the "Use visual styles on windows and buttons" in windows 7 thanks for helpers! Edited May 8, 2013 by Guest Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted May 8, 2013 Moderators Share Posted May 8, 2013 Hi, gil900. We are not in the habit of spoon-feeding code to folks, but we are happy to assist. What have you tried thus far on your own? I would suggest beginning with a Google search of how to configure these settings in the registry, and then look at the Registry Management topic in the help file. Once you have something coded, even if it is not working the way you would like, feel free to post here and we can help you further. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
Guest Posted May 8, 2013 Share Posted May 8, 2013 All I did was search on Google for how to do it through cmd.exe .. But I did not find command for this. If I was find that then I would not asked for it here Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted May 8, 2013 Moderators Share Posted May 8, 2013 A Google search of registry disable use visual styles on windows and buttons yields 596,000 results for me. The very first result (MSFN) shows you how to set this in the registry. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
Guest Posted May 8, 2013 Share Posted May 8, 2013 I've never tried to change the registry through autoit. Can you give me an example? Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted May 8, 2013 Moderators Share Posted May 8, 2013 I'll do you one better, I'll give you 7 examples! They're all located in the help file under RegWrite. somdcomputerguy 1 "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
Guest Posted May 8, 2013 Share Posted May 8, 2013 But the change is immediate? I do not want to restart the computer for it ... I'm just not sure that the change immediately. Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted May 8, 2013 Moderators Share Posted May 8, 2013 You're not sure because you haven't bothered to read the help file as I have suggested, and you surely haven't spent the two minutes it would take you to actually TRY something on your own. Sorry, I already have two small children, not looking to adopt any more. You've gotten your last from me on this topic until you show some effort "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
Guest Posted May 8, 2013 Share Posted May 8, 2013 Sorry .. I'm just lazy now and I wanted to save my power .. Thank you for your help. Link to comment Share on other sites More sharing options...
careca Posted May 8, 2013 Share Posted May 8, 2013 (edited) hahaha! you're awesome! cannot believe that you got that post count being that lazy...EDIT: oh well, because you're so fun, i'll try to help you out.Ok, so, registry:HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionThemeManagerthere's a key:ThemeActiveand you set it to either 0 or 1That's it, come back when you have doubts. Edited May 8, 2013 by careca Spoiler Renamer - Rename files and folders, remove portions of text from the filename etc. GPO Tool - Export/Import Group policy settings. MirrorDir - Synchronize/Backup/Mirror Folders BeatsPlayer - Music player. Params Tool - Right click an exe to see it's parameters or execute them. String Trigger - Triggers pasting text or applications or internet links on specific strings. Inconspicuous - Hide files in plain sight, not fully encrypted. Regedit Control - Registry browsing history, quickly jump into any saved key. Time4Shutdown - Write the time for shutdown in minutes. Power Profiles Tool - Set a profile as active, delete, duplicate, export and import. Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes. NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s. IUIAutomation - Topic with framework and examples Au3Record.exe Link to comment Share on other sites More sharing options...
Guest Posted May 8, 2013 Share Posted May 8, 2013 Actually I tried it .. But must to restart the computer for it to work. The change is not done immediately .. Link to comment Share on other sites More sharing options...
nanr3d Posted August 29, 2013 Share Posted August 29, 2013 Hello, you need restart "Temas" (Spanish) or "Themes" (English) Service for changes take effect immediately. Link to comment Share on other sites More sharing options...
careca Posted August 31, 2013 Share Posted August 31, 2013 That comes a bit too late huh? Spoiler Renamer - Rename files and folders, remove portions of text from the filename etc. GPO Tool - Export/Import Group policy settings. MirrorDir - Synchronize/Backup/Mirror Folders BeatsPlayer - Music player. Params Tool - Right click an exe to see it's parameters or execute them. String Trigger - Triggers pasting text or applications or internet links on specific strings. Inconspicuous - Hide files in plain sight, not fully encrypted. Regedit Control - Registry browsing history, quickly jump into any saved key. Time4Shutdown - Write the time for shutdown in minutes. Power Profiles Tool - Set a profile as active, delete, duplicate, export and import. Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes. NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s. IUIAutomation - Topic with framework and examples Au3Record.exe Link to comment Share on other sites More sharing options...
worldofwars1 Posted February 12, 2014 Share Posted February 12, 2014 Sorry to revive an older post (New to the forums aha). Hopefully this helps someone with the same question. Func ThemeStart() If ProcessExists("cmd.exe") Then WinActivate("cmd.exe") Else Run("cmd.exe") EndIf Do Sleep(100) $Win = WinGetTitle("[CLASS:ConsoleWindowClass]") WinActivate($Win) Until $Win = True WinWaitActive($Win) ControlSend($Win,"","","net start themes") ControlSend($Win,"","","{ENTER}") ProcessClose("cmd.exe") EndFunc Func ThemeStop() If ProcessExists("cmd.exe") Then WinActivate("cmd.exe") Else Run("cmd.exe") EndIf Do Sleep(100) $Win = WinGetTitle("[CLASS:ConsoleWindowClass]") WinActivate($Win) Until $Win = True WinWaitActive($Win) ControlSend($Win,"","","net stop themes") ControlSend($Win,"","","{ENTER}") ProcessClose("cmd.exe") EndFunc Link to comment Share on other sites More sharing options...
careca Posted February 14, 2014 Share Posted February 14, 2014 (edited) How about this for a disable and enable theme? #include <Constants.au3> $Theme = Run('cmd.exe', '', @SW_HIDE, $STDIN_CHILD) StdinWrite($Theme, "net stop themes" & @CRLF) WinWaitClose($Theme) $Theme = Run('cmd.exe', '', @SW_HIDE, $STDIN_CHILD) StdinWrite($Theme, "net start themes" & @CRLF) Shorter and simple. Edited February 14, 2014 by careca Spoiler Renamer - Rename files and folders, remove portions of text from the filename etc. GPO Tool - Export/Import Group policy settings. MirrorDir - Synchronize/Backup/Mirror Folders BeatsPlayer - Music player. Params Tool - Right click an exe to see it's parameters or execute them. String Trigger - Triggers pasting text or applications or internet links on specific strings. Inconspicuous - Hide files in plain sight, not fully encrypted. Regedit Control - Registry browsing history, quickly jump into any saved key. Time4Shutdown - Write the time for shutdown in minutes. Power Profiles Tool - Set a profile as active, delete, duplicate, export and import. Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes. NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s. IUIAutomation - Topic with framework and examples Au3Record.exe Link to comment Share on other sites More sharing options...
Guest Posted February 14, 2014 Share Posted February 14, 2014 (edited) How about this for a disable and enable theme? #include <Constants.au3> $Theme = Run('cmd.exe', '', @SW_HIDE, $STDIN_CHILD) StdinWrite($Theme, "net stop themes" & @CRLF) WinWaitClose($Theme) $Theme = Run('cmd.exe', '', @SW_HIDE, $STDIN_CHILD) StdinWrite($Theme, "net start themes" & @CRLF) Shorter and simple. This method requires admin privileges, what I want to avoid as much as possible. i know another method that not requires admin privileges. But I do not need this help.This Thread is very old.Thanks anyway Edited February 14, 2014 by Guest Link to comment Share on other sites More sharing options...
orbs Posted February 14, 2014 Share Posted February 14, 2014 @worldofwars1 , @careca , for short and simple, what's wrong with RunWait('net stop themes') RunWait('net start themes') ? @gil900 , i know another method that not requires admin privileges. care to share your knowledge? Signature - my forum contributions: Spoiler UDF: LFN - support for long file names (over 260 characters) InputImpose - impose valid characters in an input control TimeConvert - convert UTC to/from local time and/or reformat the string representation AMF - accept multiple files from Windows Explorer context menu DateDuration - literal description of the difference between given dates Apps: Touch - set the "modified" timestamp of a file to current time Show For Files - tray menu to show/hide files extensions, hidden & system files, and selection checkboxes SPDiff - Single-Pane Text Diff Link to comment Share on other sites More sharing options...
worldofwars1 Posted February 14, 2014 Share Posted February 14, 2014 @worldofwars1 , @careca , for short and simple, what's wrong with RunWait('net stop themes') RunWait('net start themes') ? @gil900 , care to share your knowledge? Huh... Didn't know you could do it that way. xD I don't normally do this kind of thing in autoit. Link to comment Share on other sites More sharing options...
careca Posted February 15, 2014 Share Posted February 15, 2014 No problem, that works fine. Spoiler Renamer - Rename files and folders, remove portions of text from the filename etc. GPO Tool - Export/Import Group policy settings. MirrorDir - Synchronize/Backup/Mirror Folders BeatsPlayer - Music player. Params Tool - Right click an exe to see it's parameters or execute them. String Trigger - Triggers pasting text or applications or internet links on specific strings. Inconspicuous - Hide files in plain sight, not fully encrypted. Regedit Control - Registry browsing history, quickly jump into any saved key. Time4Shutdown - Write the time for shutdown in minutes. Power Profiles Tool - Set a profile as active, delete, duplicate, export and import. Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes. NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s. IUIAutomation - Topic with framework and examples Au3Record.exe 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