SmartFarm/SOURCE/SmartFarmHMI/SmartFarmHMI_FMX/isdelay_fix.ps1
2026-09-04 10:53:44 +09:00

9 lines
403 B
PowerShell

$file = "UIrrigation_Impl.inc"
$text = Get-Content $file -Encoding UTF8 -Raw
$pattern = "Sched.IsDelaying := False;`r`n Sched.ActionStartTick := NowTime;"
$replacement = "Sched.IsDelaying := False;`r`n Sched.ActionStartTick := NowTime;`r`n InitActionBaseValues(CurAct^);"
$text = $text.Replace($pattern, $replacement)
Set-Content $file -Value $text -Encoding UTF8