2024-06-17, 23:20
(2024-06-17, 19:36)Officer KD6-3.7 Wrote:Thanks !!(2024-06-17, 17:31)BriceysCousin Wrote:(2024-06-17, 13:57)Officer KD6-3.7 Wrote: Hi!
Try using this code. Replacing all the ids from 1105 to 1185 should do the job.
Code:<include content="Dialog_Side_Button" condition="!$EXP[Exp_InfoDialogs]">
<param name="id">03</param>
<param name="label">$LOCALIZE[31066]</param>
<param name="icon">special://skin/extras/icons/binoculars.png</param>
<param name="visible">[!String.IsEmpty(Container(99950).ListItem.Property(base_title))]</param>
<onclick>SetProperty(CustomSearchTerm,$ESCINFO[Container(99950).ListItem.Property(base_title)],Home)</onclick>
<onclick>SetProperty(ReplaceWindow,1185,Home)</onclick>
<onclick condition="!Window.IsActive(1185)">ActivateWindow(1185)</onclick>
<onclick condition="Window.IsActive(1185)">ReplaceWindow(1197)</onclick>
</include>
You can also change the icon to search.png or anything else that you like for more customization.
Let me know!
Thanks for the reply. I did try this, but it didn't work for me. i think maybe the CustomSearchTerm property needs to be edited somewhere.
Sorry about that! Along with the previous change, try editing the lines 81 to 87 in the Includes_Search_View.xml file to the following:
Code:
<onfocus condition="Window.IsVisible(1185) + String.IsEmpty(Window(Home).Property(SearchDiscover.FocusFilter)) + String.IsEmpty(Window(Home).Property(CustomSearchTerm))">SetFocus(9094)</onfocus>
<onfocus condition="Window.IsVisible(1185) + String.IsEmpty(Window(Home).Property(SearchDiscover.FocusFilter)) + !String.IsEmpty(Window(Home).Property(CustomSearchTerm))">AlarmClock(refocus,RunScript(script.skinvariables,set_editcontrol=9099,window_id=1185,setfocus=52,text=$INFO[Window(Home).Property(CustomSearchTerm)]),00:01,silent)</onfocus>
<onfocus condition="Window.IsVisible(1185) + !String.IsEmpty(Window(Home).Property(SearchDiscover.FocusFilter)) + String.IsEmpty(Window(Home).Property(CustomSearchTerm))">SetFocus(9094)</onfocus>
<onfocus condition="Window.IsVisible(1185) + !String.IsEmpty(Window(Home).Property(SearchDiscover.FocusFilter)) + !String.IsEmpty(Window(Home).Property(CustomSearchTerm))">AlarmClock(refocus,RunScript(script.skinvariables,set_editcontrol=9099,window_id=1185,setfocus=9094,text=$INFO[Window(Home).Property(CustomSearchTerm)]),00:01,silent)</onfocus>
<onfocus>ClearProperty(CustomSearchTerm,Home)</onfocus>
<onfocus>ClearProperty(SearchDiscover.FocusFilter,Home)</onfocus>
<onfocus condition="!Window.IsVisible(1185)">SetFocus(9094)</onfocus>
It could be a bit janky but I just tried it and it works functionally (maybe some misses with wrong focus id issues).
Let me know!