Activate a Theme via Key?


  1. Posts : 1,364
    Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
       #1

    Activate a Theme via Key?


    I have a G510s keyboard with programmable keys. I want to assign some of them so that they will activate specific themes I have saved in the 'My Themes' section of the Control Panel's 'Personalization' window. How can I do this, shortcut, macro, command, ???

    -thx
      My Computer


  2. Posts : 72,046
    64-bit Windows 11 Pro for Workstations
       #2

    Hello MourningStar, :)

    You could program the key to run the .theme file of the theme you want.
      My Computer


  3. Posts : 1,364
    Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
    Thread Starter
       #3

    Brink said:
    Hello MourningStar, :)

    You could program the key to run the .theme file of the theme you want.
    thx Shawn. where do I find the theme and what would be the 'run' command syntax? If it can be shown me how to make a shortcut of this (iow, what the shortcut cmd text is), I could use it in other ways as well.
      My Computer


  4. Posts : 72,046
    64-bit Windows 11 Pro for Workstations
       #4

    "My Themes" are in the folder below.

    %LocalAppData%\Microsoft\Windows\Themes

    You'll need to check the keyboard's manual on how to program the keys for specific details, but you would basically just need to open/run the full path of the .theme file you want to have it used.
      My Computer


  5. Posts : 1,364
    Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
    Thread Starter
       #5

    Thx Shawn - I tested this by putting the path you provided above with the desired theme name into the Start > run dialogue. I also created a shortcut and assigned a programmable key. In both cases it worked perfect with one vital exception. Not only does it activate the theme as per my request, but it also opens the personalization window, and this I do not want. Thoughts?
      My Computer


  6. Posts : 72,046
    64-bit Windows 11 Pro for Workstations
       #6

    You might see if having the macro run the .vbs file in post 2 below may work to help with that. Be sure to edit the .vbs file for the .theme file you want instead.

    Is There a Silent Command-Line Operation to change theme? - Windows 7 Help Forums
      My Computer


  7. Posts : 1,364
    Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
    Thread Starter
       #7

    Brink said:
    You might see if having the macro run the .vbs file in post 2 below may work to help with that. Be sure to edit the .vbs file for the .theme file you want instead. ...
    Shawn, once again you have done it! With additional tweaks I was able to prevent the window from opening and all functions as per my original post request. THX!!!
      My Computer


  8. Posts : 72,046
    64-bit Windows 11 Pro for Workstations
       #8

    Great news
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 23:13.
Find Us