Search Button (1 Viewer)

Wilco

Portal Member
January 6, 2007
5
0
Home Country
England England
Okay, yesterday I downloaded Mediaportal, thought I'd play around with the source code so downloaded that. But I don't know what you're working on or anything, so this may be useless :)

First, a quick question:
When I run it as a debug in VS2005 I can't use my keyboard arrow keys to navigate (works in normally installed version). Any idea why?


In the version I got the search function appeared to be disabled (for the music section anyway). Not quite sure why but I decided to make my own. I sorted out the GUISMSInput control and combined it with a button to make a search control that turns into a textbox when you focus on it. you can enter a search term with keyboard or numpad/remote. (However this uses the given method of determining what you're using, which seems like quite a hack :) ). Using the already existing methods it updates the search as you type, not sure how fast that would be on a large list. If you mouse away from the control it keeps the search, showing what you entered on the button. If you delete what you entered it goes back to the folder you were looking at previously.

I've done a video of it here: http://wilco.34sp.com/mpsearchvid.html

(Potential) Bugs:
The code for determining if you're using a remote (and thus to use SMS input mode) looks ropey. (if you only press keys 0-9 it assumes you're using a remote, not sure what happens if you press another key on the remote).
I made a new layer section to draw the keypad onto to make sure its above the rest, as it seems you can only have 1 object drawing each layer? Potential bugs there
Needs skinning :)
Not sure how fast it is.

If you'd think it would be useful I can put together the files I've used. I'm not a great coder (just a small hobby), tho I've tried to stick to the guidelines.
 

Wilco

Portal Member
January 6, 2007
5
0
Home Country
England England
Oh, and it only search the by title, I was going to edit this to include artist, but I can't find your database structure. Where can I find this?
 

wunschkind

Portal Pro
January 10, 2005
186
0
hi,

it´s great i think .. i like your search. there could also be something like that in MYTV program-search. thank you

bye


wunschkind
 

Wilco

Portal Member
January 6, 2007
5
0
Home Country
England England
Yeah, it uses the same searching routine as the Virtual Keyboard (which i found after i posted and went looking :) ) so its probably just about as simple as changing the skin and ~20 lines of code in each file. The bugs need looking at tho I think. TBH I like mine better (not biased :p ), How do you find the virtual keyboard? I'd find it easier to use the number keys on the remote SMS style. Also takes up less space.
 

rtv

Retired Team Member
  • Premium Supporter
  • April 7, 2005
    3,622
    301
    Osnabruck
    Home Country
    Germany Germany
    Please look at the scheduling in TVEngine3 there has just been implemented a SMS search as well - would be a pity to have another section using different code to achieve the same..

    The search is disabled just in "shares" view.

    Performance: Just make sure it doesn't start before the 3rd char is entered. The scenario as described above would stall MP for serveral minutes here ;)

    If you want help on integrating this just ask here - that's been on the list of mPod and me for quite some time now..
     

    Users who are viewing this thread

    Top Bottom