It is currently May 9th, 2024, 11:32 pm

Execute bang on InputText cancel

Get help with creating, editing & fixing problems with skins
User avatar
haibusa2005
Posts: 52
Joined: June 15th, 2011, 7:23 pm
Location: Bulgaria, Varna

Execute bang on InputText cancel

Post by haibusa2005 »

Is it possible to execute a bang if input text measure is canceled? I have a measure that hides a meter first and then the input field is displayed. I want to show a meter if user presses escape or clicks away for some reason. Or instead displaying a meter at least to refresh the skin.

Here is my code

Code: Select all


[DAFDetailsFolder1ClickField]
Meter=Image
SolidColor=255,0,0,1
x=280
y=475
w=267
h=55
Group=DAFClickFields
MouseOverAction=!Execute [!SetOptionGroup DAFFolder1 FontColor "#ColorBrightP#,#*DAFFadeMain*#"] [!UpdateMeterGroup DAFFolder1] [!DisableMeasure DAFDetailsAutohideTimer] [!EnableMeasure DAFDetailsResetAutohideTimer] [!Redraw]
MouseLeaveAction=!Execute [!SetOptionGroup DAFFolder1 FontColor "#ColorDimP#,#*DAFFadeMain*#"] [!UpdateMeterGroup DAFFolder1] [!EnableMeasure DAFDetailsAutohideTimer] [!DisableMeasure DAFDetailsResetAutohideTimer] [!Redraw]
LeftMouseUpAction=[#Folder1Path#] [!SetVariable AutoHideOnClick 1] [!UpdateMeasure DAFAutoHideOnClick]
RightMouseUpAction=[!SetVariable FreezeDAFAutohide "0"] [!CommandMeasure "DAFFolder1FriendlyName" "ExecuteBatch 1-3"]
Hidden=1

[DAFFolder1FriendlyName]
Measure=Plugin
Plugin=InputText
SolidColor=000000CC
FontColor=FFFFFFFF
FontFace=Calibri
FontSize=18
StringAlign=Right
X=290
Y=480
w=250
h=32
FocusDismiss=1
DefaultValue=#Folder1#
Command1=[!HideMeter DAFDetailsFolder1] [!UpdateMeter DAFDetailsFolder1] [!Redraw]
Command2=!WriteKeyValue Variables Folder1 "$UserInput$" "#CURRENTPATH##CURRENTFILE#"
Command3=!Refresh
User avatar
KreAch3R
Posts: 608
Joined: February 7th, 2011, 7:27 pm
Location: Thessaloniki, GR

Re: Execute bang on InputText cancel

Post by KreAch3R »

I would like that, too. I think there isn't a way right now (unless someone comes with a really nice work-around).
Inactive, due to life changes. Send me a PM for any question.

Desktop DeviartArt
Image