It is currently June 25th, 2019, 4:33 am

Refreshing skin with CTRL+S

Tips and Tricks from the Rainmeter Community
User avatar
StArL0rd84
Posts: 335
Joined: February 8th, 2015, 10:07 pm
Location: EU, Denmark.

Refreshing skin with CTRL+S

StArL0rd84 » March 23rd, 2019, 8:20 am

When you are working on a skin you can use this trick to automatically refresh the skin when you hit CTRL+S.
That means the .ini file will save and then the skin will refresh.
Immediately presenting you with the changes that you've made, saving you the trouble of right clicking the skin and clicking refresh all the time.

Code: Select all

[HotkeyRefresh]
 Measure=Plugin
 Plugin=HotKey
 HotKey=CTRL s
 KeyUpAction=[!Refresh]
But you cannot (at least in my case) disable the measure nor use UpdateDivider=-1 when not using it.
So just (un?)comment the line ,HotKey=CTRL s, to break it ^^

Example:
;HotKey=CTRL s

You can get the plugin here:
https://forum.rainmeter.net/viewtopic.php?f=127&t=18849&hilit=hotkey
(#WorkTime# = 1 ? #Work# : ([mEnergyLoss:%] > 100 ? #SleepMode# : #Rainmeter#))
User avatar
balala
Rainmeter Sage
Posts: 8308
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Refreshing skin with CTRL+S

balala » March 25th, 2019, 5:10 pm

StArL0rd84 wrote:
March 23rd, 2019, 8:20 am
But you cannot (at least in my case) disable the measure nor use UpdateDivider=-1 when not using it.
So just (un?)comment the line ,HotKey=CTRL s, to break it ^^

Example:
;HotKey=CTRL s
Yep, you can't indeed through a !DisableMeasure bang, but there is another approach. You have to use a !CommandMeasure bang:
  • To disable the measure use the following bang: [!CommandMeasure "HotkeyRefresh" "Stop"].
  • To re-enable it, use this one: [!CommandMeasure "HotkeyRefresh" "Start"].
So, no need to comment out the HotKey option.