It is currently May 2nd, 2024, 5:29 am

Use info from one plugin for another?

Get help with creating, editing & fixing problems with skins
kenny782
Posts: 6
Joined: June 1st, 2010, 9:44 pm

Use info from one plugin for another?

Post by kenny782 »

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 :D

Thanks,

Kenny
User avatar
Varelse
Posts: 61
Joined: April 22nd, 2009, 7:46 pm

Re: Use info from one plugin for another?

Post by Varelse »

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

Re: Use info from one plugin for another?

Post by kenny782 »

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 :)