Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support
Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support
Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support
Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support


Go Back   Australian Media Center Community > XP Media Center 2005 > XP Media Center 2005 - Plugins & Addons > Other MCE Addons

Community Information

Reply
 
Thread Tools
Old 27th May 2006, 03:22 PM   #1 (permalink)
MCE Journeyman
No Avatar
Status Ignorance is Offline:
ActivityPosts: 178
Reputation & Thanks Support Rating:
Ignorance
Points Earned: 63

Ignorance has been Thanked 0 times in 0 posts
Text Controls and Remote Control Input

Does anyone know the trick to getting a text control to work properly (eg. respond to double and tripple-presses on the remote control) in Media Center? I've been trying to script something to do the job, but it's NOT fun and not particularly easy.
  Reply With Quote
Old 28th May 2006, 05:58 PM   #2 (permalink)
 
monster's Avatar
Status monster is Offline:
Location Sydney
ActivityPosts: 1,963
Reputation & Thanks Support Rating:
monster monster monster monster monster monster monster
Points Earned: 759

monster has been Thanked 19 times in 12 posts
Re: Text Controls and Remote Control Input

hey Ignorance - what u would do is use a timer event to catch the particular key and see if i was pressed again within some time value.

something like this...

Code:
    function onRemoteEvent(keyChar)
    {
      if (keyChar == YOURKEY)
      {
         //var keyDownTime = TIMERCODE;

         if ((keyDownTime - lastKeyDownTime < SOMETIME))
	{
               //so if the key is pressed twice within X secs then its
               //considered a double click so execute your code
	}
          
        lastKeyDownTime = keyDownTime;
      }
      
      return true;
    }
that should give u a rough idea anyway... as i used a very similar code in my flash actionscript project.

hope this helps
__________________
Case: Sliverstone LC10B Motherboard: Abit AA8XE Processor: Intel P4 3G Video: Leadtek 6600GT TDH Extreme Memory: Kingmax 1G DDR2 533 Hard Drives: 2 x Maxtor SATA 200g NCQ Tuners: Dual AverTV DVB-T MCE Optical Drive: LG 4163BB DVD-R/W Software: Windows Vista MCE, Cyberlink HD Decoder, BladeRunner Pro v4, TheCollector, WebGuide 4, MovieMe Display: Sanyo Z2, 92" 16:9 Screen
  Reply With Quote
Old 28th May 2006, 06:35 PM   #3 (permalink)
MCE Journeyman
No Avatar
Status Ignorance is Offline:
ActivityPosts: 178
Reputation & Thanks Support Rating:
Ignorance
Points Earned: 63

Ignorance has been Thanked 0 times in 0 posts
Re: Text Controls and Remote Control Input

Yeah - I threw together something like that in the YouTube plugin, after stuffing around with it for a while. Due to all the other problems it caused, I ended up writing my OWN edit control rather than using a standard IE one.

It mostly works. You can't reposition the edit cursor, but most other functions seem to work OK.

I was under the delusion that MS would have produced something a little more reliable, but it looks like they just wanted to be difficult - again.
  Reply With Quote
Reply

Bookmarks

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Programming Your Microsoft MCE Remote Control Mike Other Hardware - XPMCE 43 6th July 2008 02:12 AM
Turn on PC with MCE Remote??? pantonious XP Media Center 2005 - The Software 26 13th November 2005 02:03 PM
Logitech Harmony 880 Remote Control Mike Advanced Remote Control Systems 14 18th September 2005 12:01 PM
Logitech to Build Universal Remote for MCE 2005 Mike Media Center News 4 28th June 2005 07:07 PM
XPMCE Remote Control System Mike Media Center News 0 25th March 2005 08:31 AM


Advertisers




Terms Of Service - Contact Us - Advertise With Us - Archive - Privacy Statement - FAQ
Microsoft©, Windows XP©, Windows XP Media Center© & Windows Vista© are registered trademarks of Microsoft Corporation.
www.xpmediacentre.com.au has no relationship with, nor is affiliated in any way with Microsoft Corporation.
All original content on this website © 2004 - 2008 xpmediacentre.com.au, All rights reserved
Forum by vBulletin Version 3.7.3 - Copyright Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0 RC7
Local time now is 09:03 AM AEDT.