It is currently April 19th, 2024, 8:53 am

[Bug] Rainmeter permanently unclickable by InputText.dll

Report bugs with the Rainmeter application and suggest features.
User avatar
Cariboudjan
Posts: 268
Joined: May 12th, 2019, 8:55 am

[Bug] Rainmeter permanently unclickable by InputText.dll

Post by Cariboudjan »

If a config with an active InputText box is deactivated while FocusDismiss=0, it will cause Rainmeter to be permanently unclickable until Rainmeter is closed via task manager or via command prompt. Even the Rainmeter system tray icon is inaccessible. Skins cannot be unloaded.

Windows 11
Rainmeter latest version

Code: Select all

[Rainmeter]
OnUnfocusAction=[!DeactivateConfig]

[Variables]
SomeValue=12345

[Button]
Meter=String
SolidColor=255,255,255
FontSize=20
Text=#SomeValue#
LeftMouseUpAction=[!CommandMeasure InputField "ExecuteBatch 1"]

[InputField]
Measure=Plugin
Plugin=InputText.dll
StringAlign=Left
FontSize=20
W=[Button:W]
H=[Button:H]
X=[Button:X]
Y=[Button:Y]
FocusDismiss=0
Command1=[!WriteKeyValue Variables SomeValue "$UserInput$"][!Refresh]
DefaultValue="#SomeValue#"
DynamicVariables=1
User avatar
Brian
Developer
Posts: 2679
Joined: November 24th, 2011, 1:42 am
Location: Utah

Re: [Bug] Rainmeter permanently unclickable by InputText.dll

Post by Brian »

I can't replicate this in Windows 10 nor Windows 11 (22000.593).

Note: Using OnUnfocusAction to deactivate the skin always causes the skin to deactivate when clicking on the textbox since the textbox has its on "window", thus causing the skin to lose focus. I had to disable this action to properly test your code.

-Brian
User avatar
Cariboudjan
Posts: 268
Joined: May 12th, 2019, 8:55 am

Re: [Bug] Rainmeter permanently unclickable by InputText.dll

Post by Cariboudjan »

The intention was to deactivate the skin. If you disable the ability for the config to deactivate while the textbox is open & has focus, you will not be able to replicate the issue.

If the config is closed while a textbox is open while FocusDismiss=0 it will cause the issue.
User avatar
Brian
Developer
Posts: 2679
Joined: November 24th, 2011, 1:42 am
Location: Utah

Re: [Bug] Rainmeter permanently unclickable by InputText.dll

Post by Brian »

Cariboudjan wrote: April 7th, 2022, 8:26 pm The intention was to deactivate the skin. If you disable the ability for the config to deactivate while the textbox is open & has focus, you will not be able to replicate the issue.

If the config is closed while a textbox is open while FocusDismiss=0 it will cause the issue.
Right, I tried both ways (with and without the OnUnfocusAction) and could not replicate the issue. Maybe this is an issue with a Windows update?

-Brian
User avatar
Cariboudjan
Posts: 268
Joined: May 12th, 2019, 8:55 am

Re: [Bug] Rainmeter permanently unclickable by InputText.dll

Post by Cariboudjan »

Well, it would be helpful to at least know how to force close the textbox window.

I'm sorry that you can't replicate it but its a big problem over here.
User avatar
SilverAzide
Rainmeter Sage
Posts: 2603
Joined: March 23rd, 2015, 5:26 pm

Re: [Bug] Rainmeter permanently unclickable by InputText.dll

Post by SilverAzide »

Cariboudjan wrote: April 8th, 2022, 2:49 pm Well, it would be helpful to at least know how to force close the textbox window.

I'm sorry that you can't replicate it but its a big problem over here.
What happens if you change the [InputField] measure to use FocusDismiss=1?

As far as killing the window, perhaps one way is to open Task Manager and kill the Explorer process. That will nuke your entire desktop, so you will need to select File > Run new task (or whatever Win11 calls it) and enter explorer to restore it.
Gadgets Wiki GitHub More Gadgets...
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: [Bug] Rainmeter permanently unclickable by InputText.dll

Post by jsmorley »

SilverAzide wrote: April 8th, 2022, 5:19 pm What happens if you change the [InputField] measure to use FocusDismiss=1?

As far as killing the window, perhaps one way is to open Task Manager and kill the Explorer process. That will nuke your entire desktop, so you will need to select File > Run new task (or whatever Win11 calls it) and enter explorer to restore it.
Here is a .bat file...

Code: Select all

taskkill /f /im explorer.exe
TIMEOUT /T 3
start explorer.exe