Thank you, now no more link open when refresh or after window startup. BUT i found out, after doing search, the user input will not reset and when we do another search, the same result from first user input. Code that I edit as below..balala wrote:It is, I think. I'd remove the mentioned OnUpdateAction option from the [MeasureString] measure and would complete the Command1 option of the [MeasureInput] measure with a !SetOption bang to set back the same OnUpdateAction option to the [MeasureString] measure when the string is input (see the !SetOption bang below):
Code: Select all
[MeasureInput]
Measure=Plugin
Plugin=InputText.dll
X=7
Y=35
W=280
H=23
DefaultValue=""
FontColor=255,255,255,255
SolidColor=30,30,30,255
FontFace=Segoe UI
FontSize=10
AntiAlias=1
FocusDismiss=1
Command1=[!SetVariable ISBN "$UserInput$"][!SetOption MeasureString OnUpdateAction """["http://webpac.kdu.edu.my/search/query?match_1=MUST&term_1=[MeasureString]#SearchCat#"]"""][!UpdateMeasure "MeasureString"]
[MeasureString]
Measure=String
String=#ISBN#
RegExpSubstitute=1
Substitute="^\d{1}(\d*)$":"\1"
DynamicVariables=1
;OnUpdateAction=["http://webpac.kdu.edu.my/search/query?match_1=MUST&term_1=[MeasureString]#SearchCat#"]
UpdateDivider=-1
balala wrote: Add the following LeftMouseDownAction option to the [MeterTitle] meter: LeftMouseDownAction=[!SetOption #CURRENTSECTION# StringStyle "Bold"][!UpdateMeter "#CURRENTSECTION#"][!Redraw]. The !SetOption bang of this option sets the Bold style to the meter when you're pushing the button. When the button is released, the same Normal style should be set back. For this you have to add a similar bang to the LeftMouseUpAction option of the same meter (beside the existing ones): LeftMouseUpAction=[!SetOptionGroup Category FontColor "#*TextOff*#"][color=#FF0000][!SetOption #CURRENTSECTION# StringStyle "Normal"][/color][!SetOption #CURRENTSECTION# FontColor "#*TextOrange*#"][!SetVariable SearchCat "&field_1=t&facet_loc=10000&sort=relevance&theme=kdu"][!UpdateMeter *][!Redraw].
Ok, I already add this code;
Code: Select all
LeftMouseDownAction=[!SetOption #CURRENTSECTION# StringStyle "Bold"][!UpdateMeter "#CURRENTSECTION#"][!Redraw]
LeftMouseUpAction=[!SetOptionGroup Category FontColor "#*TextOff*#"][color=#FF0000][!SetOption #CURRENTSECTION# StringStyle "Normal"][/color][!SetOption #CURRENTSECTION# FontColor "#*TextOrange*#"][!SetVariable SearchCat "&field_1=t&facet_loc=10000&sort=relevance&theme=kdu"][!UpdateMeter *][!Redraw]
Can we make bold effect stay bold before we click another meter ( same like orange color effect)?
Got this working withbalala wrote:Or there also is a third possibility, too: to set the string bold when you're hovering the mouse over it, then set it back to normal, when you you're leaving it. Just have to add the appropriate bangs to a newly added MouseOverAction and MouseLeaveAction options. If you can't do this and you're interested, please let me know, to help you.
Code: Select all
MouseLeaveAction=[!SetOption #CURRENTSECTION# StringStyle ""][!UpdateMeter *][!Redraw]
MouseOverAction=[!SetOption #CURRENTSECTION# StringStyle Bold][!UpdateMeter *][!Redraw]