neo.nemek wrote: ↑February 15th, 2023, 7:41 pm
I need that within a METER that Variable be checked and execute a series of actions by doing "LeftMouseDownAction" on an image so that there will be a TAB slide and show some hidden METERS,
See the first point of my
reply above. IfCondition can't work on meters, just on measures. It's completely useless to add them to a meter, because it's ignored on meters. So, move it to a measure (in fact doesn't even really matter which measure are you moving it to, but what is important is to use it on a measure, for nstance on [mAdapterType]).
neo.nemek wrote: ↑February 15th, 2023, 7:41 pm
But this code syntax doesn't work because the code after "IfTrueAction=" is wrongly assembled, its syntax is incorrect.
It definitely is, but there is a question and I can't follow what you want to do: do you want to set the proper LeftMouseUpAction option to a meter, depending on the value of the OpenTabGroup variable, or you want to execute certain operation depending on the value of the variable?
In first case, you have to use !SetOption bangs. For instance this way:
Code: Select all
[mAdapterType]
Measure=
...
IfCondition=(#OpenTabGroup# = 1)
IfTrueAction=[!SetOption "TabClosed-Open Network TAB" LeftMouseDownAction """[!HideMeterGroup 6][!ShowMeterGroup 7][!ShowMeterGroup "NetworkIP"][!Redraw]"""][!UpdateMeter "TabClosed-Open Network TAB"]
IfCondition2=(#OpenTabGroup# = 2)
IfTrueAction2=[!SetOption "TabClosed-Open Network TAB" LeftMouseDownAction """[ ADD HERE THE APPROPRIATE BANGS, YOU WANT TO SET TO THE LEFTMOUSEUPACTION OPTION FOR THIS CASE]"""][!UpdateMeter "TabClosed-Open Network TAB"]
...
Note here that I included the bangs you want to set with the !SetOption bang into triple quotes (
Magic Quotes), which are needed because the bangs themselves contain quotes. Also I removed the deprecated and not needed !Execute bang. Don1t use it anymore, because it
has been deprecated long time ago.
For second case, add simply the bangs to the IfTrueAction options:
Code: Select all
[mAdapterType]
Measure=
...
IfCondition=(#OpenTabGroup# = 1)
IfTrueAction=[!HideMeterGroup 6][!ShowMeterGroup 7][!ShowMeterGroup "NetworkIP"][!Redraw]
IfCondition2=(#OpenTabGroup# = 2)
IfTrueAction2=[ ADD HERE THE APPROPRIATE BANGS, YOU WANT TO SET TO THE LEFTMOUSEUPACTION OPTION FOR THIS CASE]
...
If I misunderstood you please give us (me) a few details on what you want to achieve.
Additional note (again): even if not forbidden, it's not a good idea either to use spaces into names of sections. Instead of [TabClosed-Open Network TAB] (with spaces), I recommend to use for example [TabClosed-OpenNetworkTAB] (no spaces). If the name contain spaces, whenever are you using it into a bang, you have to quote it, otherwise the bang fails.