It is currently October 16th, 2021, 12:04 am

OnChangeAction will not recognise LAN IP change

Report bugs with the Rainmeter application and suggest features.
User avatar
virtual-adam
Posts: 10
Joined: February 11th, 2017, 9:32 pm
Location: UK

OnChangeAction will not recognise LAN IP change

Post by virtual-adam »

Hi,

The OnChangeAction command will not recognise a change in the LAN IP anymore, was using this to trigger a refresh of the displayed WAN IP when a VPN was activated. Got it to work anyway by using DNS_SERVER instead of IP_ADDRESS.

Wanted to make someone aware of this as it needs fixing. Open the 'VPN IP Refresh' file in the skin folder after you install to see what I mean, added some comments in there.

Thanks!

Rainmeter 4.5.4.3550 (64-bit)
Language: English (1033)
Build time: 2021-10-04 9:25:19
Windows 7 Professional 64-bit (build 7601) Service Pack 1 - English (1033)
Path: C:\Program Files\Rainmeter\
SkinPath: C:\Users\Adam\Documents\Rainmeter\Skins\
SettingsPath: C:\Users\Adam\AppData\Roaming\Rainmeter\
IniFile: C:\Users\Adam\AppData\Roaming\Rainmeter\Rainmeter.ini

GTX 1050 Ti
You do not have the required permissions to view the files attached to this post.
User avatar
jsmorley
Developer
Posts: 22364
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: OnChangeAction will not recognise LAN IP change

Post by jsmorley »

You need DynamicVariables=1 on the SysInfo measure for it to detect and react to a change in the value for "Best".

https://docs.rainmeter.net/manual/measures/sysinfo/#SysInfoData
User avatar
virtual-adam
Posts: 10
Joined: February 11th, 2017, 9:32 pm
Location: UK

Re: OnChangeAction will not recognise LAN IP change

Post by virtual-adam »

Thanks, glad it was you who replied as you made the original skin. All fixed Cheers!
User avatar
jsmorley
Developer
Posts: 22364
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: OnChangeAction will not recognise LAN IP change

Post by jsmorley »

virtual-adam wrote: October 13th, 2021, 1:34 pm Thanks, glad it was you who replied as you made the original skin. All fixed Cheers!
Glad to help.