[BUG] Can't send a number from a formula to an addon in the most recent beta update
Posted: June 26th, 2021, 10:04 pm
Droptop not compatible with the most recent update. Causes below error. Cannot send an argument when executing the launch command for an executable. Does not happen in the previous beta update.
The addon used takes a string value and converts it into an integer. The command when executed is supposed to send the value in quotes as a string, but it sends the value as an integer, which my suspicion is what causes the exception.
Placing a fixed integer in quotes works normally (eg. "42"), but as a formula (eg. "[#CURRENTSECTION#]") does not work, even if the number is exactly the same.
Green highlight = Execute addon command with argument
The addon used takes a string value and converts it into an integer. The command when executed is supposed to send the value in quotes as a string, but it sends the value as an integer, which my suspicion is what causes the exception.
Placing a fixed integer in quotes works normally (eg. "42"), but as a formula (eg. "[#CURRENTSECTION#]") does not work, even if the number is exactly the same.
Green highlight = Execute addon command with argument
Code: Select all
[MeasureRegistry]
Measure=Registry
RegHKey=HKEY_CURRENT_USER
RegKey=Control Panel\Desktop\WindowMetrics
RegValue=AppliedDPI
UpdateDivider=-1
Group=WorkareaMeasures
[DPIRescaleValue]
Measure=Calc
Formula=((ROUND(([MeasureRegistry]/100)/0.25))*0.25)
IfAboveValue=0
IfAboveAction=[!WriteKeyValue Variables DPIRescaleValue [#CURRENTSECTION#] "#@#GlobalVar\UserSettings.inc"][!SetVariableGroup DPIRescaleValue [#CURRENTSECTION#] "DroptopSuite"]
Substitute="":"1"
DynamicVariables=1
UpdateDivider=-1
[SetTaskbarSize]
Measure=Calc
Formula=((#WORKAREAHEIGHT#-#WORKAREAWIDTH#)+(#WORKAREAX#-#WORKAREAY#))
OnChangeAction=[!Move ((#Xnum#>0?0:#WORKAREAX#)+(([#SCREENAREAWIDTH[#MonitorNum]]+([#SCREENAREAWIDTH[#MonitorNum]]*([DPIRescaleValue]*(#DPIRescaleOFF#=1?0:1))))*#Xnum#)) (#AlwaysShowSkin#=1?0:(#Xnum#>0?0:#WORKAREAY#)) "Droptop\DropdownBar"][!UpdateMeter * "Droptop\DropdownBar][!Redraw "Droptop\DropdownBar"]
DynamicVariables=1
Group=WorkareaMeasures
[TopReserve]
Measure=Calc
Formula=ROUND((#TopHeight#+#TopReservationOffset#)*(#DPIRescaleOFF#=1?[DPIRescaleValue]:1))
IfCondition=(#AlwaysShowSkin#=1)
IfTrueAction=[!ActivateConfig "Droptop\DropdownBar" "DropdownBar.ini"]["#SKINSPATH#Droptop Folders\Other files\Addons\Droptop Rainmeter.exe" "[#CURRENTSECTION#]"][!Delay 2000][!Show "Droptop\DropdownBar"]["#SKINSPATH#Droptop Folders\Other files\Addons\Droptop Rainmeter.exe" "[#CURRENTSECTION#]"]
IfFalseAction=[!ActivateConfig "Droptop\DropdownBar" "DropdownBar.ini"][!Show "Droptop\DropdownBar"]
IfConditionMode=1
DynamicVariables=1
UpdateDivider=-1
Group=WorkareaMeasures