It is currently May 2nd, 2024, 5:29 am
Get help with creating, editing & fixing problems with skins
kenny782
Posts: 6 Joined: June 1st, 2010, 9:44 pm
Post
by kenny782 » May 20th, 2011, 8:01 am
Okay here's what I have now:
Code: Select all
[measureAdapterDesc1]
Measure=Plugin
Plugin=Plugins\SysInfo.dll
SysinfoType=ADAPTER_DESCRIPTION
SysInfoData=1
[meterAdapterDesc1Value]
Meter=String
MeterStyle=styleLeftText
MeasureName=measureAdapterDesc1
X=10
Y=157
W=190
H=14
Text="%1"
AntiAlias=1
I want to add this:
Code: Select all
[MeasureFireAction1]
Measure=Calc
Formula=Counter % 30
IfEqualValue=0
IfEqualAction=!Execute ["#CURRENTPATH#MAC.exe" "#CURRENTCONFIG#" "#PROGRAMPATH#" "#NICName1#" "MACAddress1"]
But instead of manually entering the NIC name into a variable (#NICName1#), I'd like to dynamically pull the name from my existing code.
But I have no idea how to do that.
I'd appreciate any help
Thanks,
Kenny
Varelse
Posts: 61 Joined: April 22nd, 2009, 7:46 pm
Post
by Varelse » May 20th, 2011, 8:05 am
This should work assuming [measureAdapterDesc1] is the same as #NICName1#.
[MeasureFireAction1]
Measure=Calc
Formula=Counter % 30
IfEqualValue=0
IfEqualAction=!Execute ["#CURRENTPATH#MAC.exe" "#CURRENTCONFIG#" "#PROGRAMPATH#" "[measureAdapterDesc1]" "MACAddress1"]
DynamicVariables=1
kenny782
Posts: 6 Joined: June 1st, 2010, 9:44 pm
Post
by kenny782 » May 20th, 2011, 9:09 am
Varelse wrote: This should work assuming [measureAdapterDesc1] is the same as #NICName1#.
[MeasureFireAction1]
Measure=Calc
Formula=Counter % 30
IfEqualValue=0
IfEqualAction=!Execute ["#CURRENTPATH#MAC.exe" "#CURRENTCONFIG#" "#PROGRAMPATH#" "[measureAdapterDesc1]" "MACAddress1"]
DynamicVariables=1
Works pefectly. Thank you