It is currently May 25th, 2020, 2:36 pm

Non-terminating Powershell script in OnRefreshAction is not running

Get help with installing and using Rainmeter.
jn_meter
Posts: 31
Joined: December 27th, 2016, 12:04 pm

Re: Non-terminating Powershell script in OnRefreshAction is not running

Post by jn_meter »

Blimey, computers - Windows especially, as against my beloved Linux - are fiddly, aren't they? [EDIT: But I use Lua on Linux too . .] I did encounter a version of the problem, in that Powershell was outputting text that Lua (I think it was Lua rather than Rainmeter itself) was garbling, even though the text comprised simple English words. I solved the problem by making the lines in Powershell that wrote to files have this format:

Code: Select all

<command that generates some output> | Out-File -FilePath $path_outputFile -Encoding ASCII
i.e. by specifying an ASCII 'encoding' (which isn't the Powershell default for the 'Out-File' command, I think).

I am sure that the post to which I reply will be a useful resource for people.