Yep, that got it working for me.tass_co wrote: ↑September 27th, 2022, 2:54 pm There is something wrong.
Actually, the code that balala wrote works.
Please install the skin file below and try again!
Code works for me.
(Webparser is update to every 10 sec + Left Button run BT)
GIF 27.09.2022 17-51-26.gif
BtDiscovery_2.0.rmskin
Code: Select all
[Rainmeter] Update=1000 DynamicWindowSize=1 OnRefreshAction=[!CommandMeasure mBluetoothDevicePairing "run"] [Variables] BluetoothDevicePairing=#@#BluetoothDevicePairing.exe [mBluetoothDevicePairing] Measure=Plugin Plugin=RunCommand Program=#BluetoothDevicePairing# Parameter=discover OutputType=ANSI OutputFile=#@#TestFile.txt DynamicVariables=1 UpdateDivider=-1 FinishAction=[!UpdateMeasure MeasureText][!UpdateMeter *][!Redraw] [MeasureText] Measure=WebParser Url=file://#@#TestFile.txt RegExp=(?siU)^(.*)$ RegExpSubstitute=1 Substitute="^(.*)\n":"#CRLF#","-":"",".*\|Connected\s*\|(.*)\|.*\n":"\1#CRLF#",".*\|Paired\s*\|(.*)\|.*\n":"",".*\|\s*\|(.*)\|.*\n":"","Start discovering devices for 10 seconds":"","^#CRLF#":"" UpdateRate=10 [MeterString] Meter=String MeasureName=MeasureText X=0 Y=0 FontColor=255,255,255,255 FontFace=Segoe UI FontSize=16 StringEffect=Shadow SolidColor=0,0,0,255 AntiAlias=1 Text=Output: %1 DynamicVariables=1 LeftMouseUpAction=[!CommandMeasure mBluetoothDevicePairing "run"]
Had to ad another "#CRLF#":"" to the end still, but that did it.
Thank you everyone.
You rock