The issue is that the inputbox dissappear after appearing, and rainmeter log throws this warning:
InputText: Exception System.ObjectDisposedException: No se puede obtener acceso al objeto desechado.
Nombre del objeto: 'InputBox'. (Lauhdutin\Game\Game.ini - [Input])
Using google I think this is the issue translated to english: InputText: Exception System.ObjectDisposedException: 'Cannot access a disposed object. Object name: InputBox'
I got this issue with Lauhdutin, on game.ini when editing a game info.
This skin has a lot of code, so I put here all the code I think handles that input (development-3 branch):
dist/Game/Game.ini
Code: Select all
[Script]
Measure=Script
ScriptFile=#@#game\init.lua
UpdateDivider=-1
[Input]
Measure=Plugin
Plugin=InputText
SolidColor=#WindowBackgroundColor#
X=0
Y=0
W=0
H=0
DefaultValue=
StringAlign=Left
StringStyle=Bold
FontSize=12
FontColor=#WindowSlotValueFontColor#
DynamicVariables=1
Command1=[!CommandMeasure "Script" "OnEditedProcessOverride('$UserInput$;')"]
Command2=[!CommandMeasure "Script" "OnCreatedTag('$UserInput$;')"]
Command3=[!CommandMeasure "Script" "OnEditedHoursPlayed('$UserInput$;')"]
Command4=[!CommandMeasure "Script" "OnEditedPlatformOverride('$UserInput$;')"]
Command5=[!CommandMeasure "Script" "OnEditedPath('$UserInput$;')"]
OnDismissAction=[!CommandMeasure "Script" "OnDismissedInput()"]
@include=#@#colors.inc
[Slot1Value]
Meter=String
Text=SLOT 1 VALUE
X=0r
Y=-4R
W=(#WindowWidth# - 30)
H=18
StringStyle=Bold
StringAlign=LeftCenter
FontSize=12
FontColor=#WindowSlotValueFontColor#
ClipString=1
AntiAlias=1
Code: Select all
local startEditing
startEditing = function(slotIndex, batchIndex, defaultValue)
local meter = SKIN:GetMeter(('Slot%dValue'):format(slotIndex))
SKIN:Bang(('[!SetOption "Input" "X" "%d"]'):format(meter:GetX() - 1))
SKIN:Bang(('[!SetOption "Input" "Y" "%d"]'):format(meter:GetY() - 1))
SKIN:Bang(('[!SetOption "Input" "W" "%d"]'):format(meter:GetW()))
SKIN:Bang(('[!SetOption "Input" "H" "%d"]'):format(20))
if defaultValue == nil then
defaultValue = ''
end
SKIN:Bang(('[!SetOption "Input" "DefaultValue" "%s"]'):format(defaultValue))
SKIN:Bang(('[!CommandMeasure "Input" "ExecuteBatch %d"]'):format(batchIndex))
STATE.ACTIVE_INPUT = true
end
Regards.
EDIT: I forget to put the Rainmeter info:
Code: Select all
Rainmeter 4.4.0.3350 beta (64-bit)
Language: Spanish (3082)
Build time: 2020-05-13 7:49:21
Commit Hash: 467019e6
Windows 10 Pro 1909 64-bit (build 18363) - Spanish (3082)
Path: C:\Program Files\Rainmeter\
SkinPath: C:\Users\User\Documents\Rainmeter\Skins\
SettingsPath: C:\Users\User\AppData\Roaming\Rainmeter\
IniFile: C:\Users\User\AppData\Roaming\Rainmeter\Rainmeter.ini