Yesterday i started trying to make a skin to take simple notes with a visual i'd like.
Now i was finally able to make something closer to what i want, but i stumbled up two major problems:
1) I cant tell why if i use the same action on "Command" and on "OnDismissAction" the code react in two different ways. See:
If i take this:
Command1=[!CommandMeasure MeasureWriteLua "WriteFile('$UserInput$')"][!Redraw]
and just do FocusDismiss=1 and this:
OnDismissAction=[!CommandMeasure MeasureWriteLua "WriteFile('$UserInput$')"][!Redraw]
It doesnt save the changes
2) I cant save if i use Enter + ctrl to add 2 lines, but i can read if i have 2 lines on my .txt
Desired way to work: Type my text, using enter for new lines, click outside to save changes on .txt
Could work: Type my text, using ctrl+enter for new lines, click outside to save changes on .txt
I dont have a desire to save on enter, its just what i've achieved till now.
Also, i dont know if there's any other way to call [MeasureInput] on screen, if im using FocusDismiss=1, other than to add this line on my [MeterText]:
LeftMouseUpAction=[!CommandMeasure MeasureInput "ExecuteBatch 1"][!Redraw]
So that means i cant remove the option Command1 even if i have no use for it.
I'm adding my files below for those who could help with the second problem
Thanks!
Now i was finally able to make something closer to what i want, but i stumbled up two major problems:
1) I cant tell why if i use the same action on "Command" and on "OnDismissAction" the code react in two different ways. See:
Code:
[MeasureInput]Measure=PluginPlugin=InputTextX=6Y=45SolidColor=240,240,240FontColor=0,0,0FontSize=12FontFace=ArialW=137H=100AntiAlias=1FocusDismiss=0DefaultValue="[MeasureLuaScript]"Command1=[!CommandMeasure MeasureWriteLua "WriteFile('$UserInput$')"][!Redraw]
Command1=[!CommandMeasure MeasureWriteLua "WriteFile('$UserInput$')"][!Redraw]
and just do FocusDismiss=1 and this:
OnDismissAction=[!CommandMeasure MeasureWriteLua "WriteFile('$UserInput$')"][!Redraw]
It doesnt save the changes
2) I cant save if i use Enter + ctrl to add 2 lines, but i can read if i have 2 lines on my .txt
Desired way to work: Type my text, using enter for new lines, click outside to save changes on .txt
Could work: Type my text, using ctrl+enter for new lines, click outside to save changes on .txt
I dont have a desire to save on enter, its just what i've achieved till now.
Also, i dont know if there's any other way to call [MeasureInput] on screen, if im using FocusDismiss=1, other than to add this line on my [MeterText]:
LeftMouseUpAction=[!CommandMeasure MeasureInput "ExecuteBatch 1"][!Redraw]
So that means i cant remove the option Command1 even if i have no use for it.
I'm adding my files below for those who could help with the second problem
Thanks!
Statistics: Posted by shovelcheco — Yesterday, 5:05 pm — Replies 3 — Views 78