It is currently May 4th, 2024, 2:43 am

What is the difference between !Refresh and !Redraw

Get help with creating, editing & fixing problems with skins
User avatar
Virginityrocks
Posts: 478
Joined: February 26th, 2011, 10:22 pm

What is the difference between !Refresh and !Redraw

Post by Virginityrocks »

!Refresh
Reloads the configuration file.

!Redraw
Forces the redraw of the window. This also updates all the meters.
Droptop Four
Dropdown menu bar & app launcher for Windows & Rainmeter
User avatar
jsmorley
Developer
Posts: 22631
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: What is the difference between !Refresh and !Redraw

Post by jsmorley »

Virginityrocks wrote:!Refresh
Reloads the configuration file.

!Redraw
Forces the redraw of the window. This also updates all the meters.
Yes, that is the difference...
User avatar
Virginityrocks
Posts: 478
Joined: February 26th, 2011, 10:22 pm

Re: What is the difference between !Refresh and !Redraw

Post by Virginityrocks »

They both refresh the meters, though. That's where I'm confused.
Droptop Four
Dropdown menu bar & app launcher for Windows & Rainmeter
User avatar
jsmorley
Developer
Posts: 22631
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: What is the difference between !Refresh and !Redraw

Post by jsmorley »

Virginityrocks wrote:They both refresh the meters, though. That's where I'm confused.
!Refresh refreshes the entire skin. It re-reads the .ini file, refreshes the measures and meters... with the exception of "counters", it is pretty much the same as unloading and reloading the skin.

!Redraw just refreshes meters. It is mostly used to force an update of a meter when you have changed the value of a supporting measure or variable with !SetOption or !SetVariable or a Lua script, so the meter is updated without having to wait for the next full "update".