Hello.
When Rainmeter is on, I can't turn off my computer with alt-f4. However, I still can close windows with those keys.
Why does it happen, and how it can be fixed? Also, can Rainmeter be closed by hotkey?
Windows 10, Rainmeter 4.3.1.3321 (64-bit)
It is currently March 28th, 2024, 6:25 pm
Rainmeter blocks turn off hotkey
Rainmeter blocks turn off hotkey
Last edited by Ronin on March 22nd, 2021, 6:41 pm, edited 1 time in total.
- jsmorley
- Developer
- Posts: 22628
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: Rainmeter blocks turn off hotkey
Yeah, Rainmeter will "see" the ALF F4, but does not respond to it like other applications and shut down. So in effect it does "block" using ALT F4 to close all running applications one after the other until Windows itself offers to shutdown.
The answer I think is the HotKey plugin.
https://forum.rainmeter.net/viewtopic.php?f=127&t=18849
So you might create a little skin like this:
That will run invisibly in the background, and when ALT F4 is pressed it will react to that and close Rainmeter.
The .rmskin above will install the HotKey plugin on your system for you.
The answer I think is the HotKey plugin.
https://forum.rainmeter.net/viewtopic.php?f=127&t=18849
So you might create a little skin like this:
Code: Select all
[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1
[Variables]
[MeasureQuit]
Measure=Plugin
Plugin=HotKey
HotKey=ALT F4
KeyDownAction=[!Quit]
[MeterDummy]
Meter=String
The .rmskin above will install the HotKey plugin on your system for you.
- jsmorley
- Developer
- Posts: 22628
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: Rainmeter blocks turn off hotkey
If the goal is to have ALT-F4 shutdown or restart the computer itself, you might want to use that HotKey plugin like this:
Code: Select all
[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1
[Variables]
RestartComputer=[shutdown.exe -r -t 00]
HybridShutDownComputer=[shutdown.exe -s -hybrid -f -t 00]
FullShutDownComputer=[shutdown -s -f -t 00]
SleepComputer=[rundll32.exe PowrProf.dll,SetSuspendState 0,1,0]
LogoffWindows=[shutdown -l]
LockWindows=[rundll32.exe User32.dll,LockWorkStation]
[MeasureQuit]
Measure=Plugin
Plugin=HotKey
; Just replace the #Variable# below with the one for the action you want to take.
HotKey=ALT F4
KeyDownAction=#FullShutDownComputer#
[MeterDummy]
Meter=String
Re: Rainmeter blocks turn off hotkey
Thank you.
QuitHotKey plugin is a suitable solution, and it works
QuitHotKey plugin is a suitable solution, and it works