jsmorley wrote: ↑July 16th, 2020, 2:21 pmNote that DynamicVariables=1 is required on a SysInfo measure where you want a dynamic change to the ADAPTER_DESCRIPTION or other "network" values to be recognized. This is peculiar to these values, and was originally designed this way since like many other values you measure with SysInfo, it was not expected that the name of your active network adapter could change while the skin is running. WiFi and VPN and all that has changed this assumption somewhat over the years, but the original behavior remains.
But this would be required on kenbo01's initial measure as well, wouldn't it? Although he doesn't have set it, his measure, according to his post:
kenbo01 wrote: ↑July 16th, 2020, 11:38 am
I can confirm that the code does actually work and produce the desired outcome on my computer. That is, if I disconnect VPN it changes to red text and icon, and if I reconnect it changes to the green text and icon. So I can only assume that under the hood it can cope with a "1" when expecting a 1.
is working well. How or why, although it wouldn't have to? Or am I missing something in meanwhile?
Hi all,
this is my, I think, simpler approach (this works only for a home/work pc, not for a mobile....).
Your IP address is always the same because is given by your provider, so set that address as variable #DefaultIP#, than use this simple code:
brax64 wrote: ↑July 16th, 2020, 8:15 pmYour IP address is always the same because is given by your provider [...]
This is not that simple, since what you said is true only for static IPs. If one has a dynamic IP (also "given by the provider", and there are a lot of dynamic IPs out there), then I believe your method won't work.
Yincognito wrote: ↑July 16th, 2020, 8:28 pm
This is not that simple, since what you said is true only for static IPs. If one has a dynamic IP (also "given by the provider", and there are a lot of dynamic IPs out there), then I believe your method won't work.
Hi Yincognito,
yes, you're absolutely correct, did forget to mention it...
jsmorley wrote: ↑July 16th, 2020, 10:27 pm
Uhm... Isn't the ENTIRE point of a VPN to change your visible IP address?
Exactly. Which is why some of these "what's my IP" services even have a note mentioning that their results are affected by the presence of a VPN, among other things.
First my sincere apologies for the lag. Right after I wrote this I ended up in the hospital and am just getting back to it.
Thanks so much for taking the time. I tried the code (below) and it works! But for some reason doesn't seem to refresh. It will identify the correct state of the PIA VPN upon launch but doesn't recognize if I connect or disconnect the VPN. It continues to show the state it discovered when it was launched. It only seems to be able to identify the state upon launch. Any ideas how I might fix that. The code looks correct to me but I am quite the novice.
Again, thanks for the help.
Regards,
Darv
kenbo01 wrote: ↑July 15th, 2020, 11:35 pm
Something like this?
Darv wrote: ↑November 13th, 2020, 8:30 am
Thanks so much for taking the time. I tried the code (below) and it works! But for some reason doesn't seem to refresh. It will identify the correct state of the PIA VPN upon launch but doesn't recognize if I connect or disconnect the VPN. It continues to show the state it discovered when it was launched. It only seems to be able to identify the state upon launch. Any ideas how I might fix that. The code looks correct to me but I am quite the novice.
It doesn't refresh because the [MeasureNetwork] measure is missing the DynamicVariables=1 option on the measure. This is required for SysInfo measures that use the "Best" option.
SilverAzide wrote: ↑November 13th, 2020, 1:59 pm
It doesn't refresh because the [MeasureNetwork] measure is missing the DynamicVariables=1 option on the measure. This is required for SysInfo measures that use the "Best" option.