We have added a new action option in the [Rainmeter] section of skins:
OnWakeAction
Action to execute when Windows returns from the sleep or hibernate states.
http://docs.rainmeter.net/manual-beta/skins/rainmeter-section#OnWakeAction
It is currently September 1st, 2024, 1:13 am
OnWakeAction
-
- Developer
- Posts: 22710
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
-
- Posts: 36
- Joined: February 3rd, 2020, 11:15 pm
- Location: Germany
Re: OnWakeAction
Sorry for bumping this old thread, but i have a question. I want my skin do a complete refresh, when you come back to your machine. My code:
OnWakeAction=[!Refresh]
But when i come back, it shows everything defined in OnConnectErrorAction for the webparser measure. It works normally after x minutes, when UpdateRate is reached again. I am curious about this.![Sad :(](./images/smilies/ac.gif)
OnWakeAction=[!Refresh]
But when i come back, it shows everything defined in OnConnectErrorAction for the webparser measure. It works normally after x minutes, when UpdateRate is reached again. I am curious about this.
![Sad :(](./images/smilies/ac.gif)
-
- Developer
- Posts: 22710
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: OnWakeAction
While I can't be sure, it seems to me that when your system "wakes up", Rainmeter is kicking in before your network infrastructure is fully stood up. You might look at delaying the refresh for some number of seconds after you wake up.QuakeGuy wrote: ↑February 5th, 2020, 2:35 pm Sorry for bumping this old thread, but i have a question. I want my skin do a complete refresh, when you come back to your machine. My code:
OnWakeAction=[!Refresh]
But when i come back, it shows everything defined in OnConnectErrorAction for the webparser measure. It works normally after x minutes, when UpdateRate is reached again. I am curious about this.![]()
Code: Select all
[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1
OnWakeAction=[!SetOption MeterString Text "10 seconds to Refresh"][!Delay 10000][!Refresh]
[MeterString]
Meter=String
FontSize=20
FontWeight=400
FontColor=255,255,255,255
SolidColor=47,47,47,255
Padding=5,5,5,5
AntiAlias=1
Text=Hello World
-
- Developer
- Posts: 22710
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: OnWakeAction
To be honest, using !Refresh feels a bit brute-force to me, although it may be appropriate in some circumstances.
Why not have the OnWakeAction wait some number of seconds, then simply [!CommandMeasure WebParserParentMeasure "Update"]
Going to be a lot less visibly "jarring" than refreshing the entire skin.
Why not have the OnWakeAction wait some number of seconds, then simply [!CommandMeasure WebParserParentMeasure "Update"]
Going to be a lot less visibly "jarring" than refreshing the entire skin.
-
- Posts: 36
- Joined: February 3rd, 2020, 11:15 pm
- Location: Germany
Re: OnWakeAction
Wow, fast reply. Thanks JSMorley. Btw i am new here, maybe its not the right section, "Help: Rainmeter Skins" would be better?
To my problem: OnWakeAction=[!Delay 5000][!Refresh] would easily fix this. I will test it.
The described problem occurs on my desktop pc. When i use my Surface nothing happens at all. It shows still the values of the last update, when i switched off.
To my problem: OnWakeAction=[!Delay 5000][!Refresh] would easily fix this. I will test it.
The described problem occurs on my desktop pc. When i use my Surface nothing happens at all. It shows still the values of the last update, when i switched off.
-
- Developer
- Posts: 22710
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: OnWakeAction
Either place is ok for this question.QuakeGuy wrote: ↑February 5th, 2020, 3:33 pm Wow, fast reply. Thanks JSMorley. Btw i am new here, maybe its not the right section, "Help: Rainmeter Skins" would be better?
To my problem: OnWakeAction=[!Delay 5000][!Refresh] would easily fix this. I will test it.
The described problem occurs on my desktop pc. When i use my Surface nothing happens at all. It shows still the values of the last update, when i switched off.
-
- Posts: 36
- Joined: February 3rd, 2020, 11:15 pm
- Location: Germany
Re: OnWakeAction
Fine. The [!Delay 5000] does the trick. ![Wink ;-)](./images/smilies/innuendo.gif)
Your are right, i maybe can directly update the measure. But i had no visual problems so far, because everything were always processed when i see my desktop.
The problem with my Surface still exists. I have no other laptop to test. Maybe OnWakeAction does'nt work here? I use the current Windows 10 Home on it.
![Wink ;-)](./images/smilies/innuendo.gif)
Your are right, i maybe can directly update the measure. But i had no visual problems so far, because everything were always processed when i see my desktop.
The problem with my Surface still exists. I have no other laptop to test. Maybe OnWakeAction does'nt work here? I use the current Windows 10 Home on it.
-
- Developer
- Posts: 22710
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: OnWakeAction
I don't know, I don't have any experience with Windows Surface.QuakeGuy wrote: ↑February 5th, 2020, 4:01 pm Fine. The [!Delay 5000] does the trick.
Your are right, i maybe can directly update the measure. But i had no visual problems so far, because everything were always processed when i see my desktop.
The problem with my Surface still exists. I have no other laptop to test. Maybe OnWakeAction does'nt work here? I use the current Windows 10 Home on it.
-
- Posts: 36
- Joined: February 3rd, 2020, 11:15 pm
- Location: Germany
Re: OnWakeAction
Ok. Has anybody here a Microsoft Surface and can test the OnWakeAction?
-
- Posts: 36
- Joined: February 3rd, 2020, 11:15 pm
- Location: Germany
Re: OnWakeAction
@JSMorley: I think it would be wise to move this thread or start a new one, so anybody can find it.
I noticed one difference:
The Rainmeter log at my Surface states something, that my desktop does not. But not every time!
System: "Show open windows" has been detected.
System: "Show desktop" has been detected.
I noticed one difference:
The Rainmeter log at my Surface states something, that my desktop does not. But not every time!
System: "Show open windows" has been detected.
System: "Show desktop" has been detected.