home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Development
General Development (no feature request here!)
3 digit channel in tv guide
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="elihunter" data-source="post: 25965" data-attributes="member: 16346"><p>I was having problems not being able to change to a channel with 3 digits in the TV guide. I found this section of code</p><p>[code]</p><p> void OnKeyCode(char chKey)</p><p> {</p><p> if (chKey >= '0' && chKey <= '9') //Make sure it's only for the remote</p><p> {</p><p> TimeSpan ts = DateTime.Now - m_timeKeyPressed;</p><p> if (m_strInput.Length >= 2 || ts.TotalMilliseconds >= 800)</p><p> {</p><p> m_strInput = String.Empty;</p><p> }</p><p> m_timeKeyPressed = DateTime.Now;</p><p> if (chKey == '0' && m_strInput.Length == 0) return;</p><p> m_strInput += chKey;</p><p> if (m_strInput.Length == 2)[/code]</p><p></p><p>and changed it to this</p><p></p><p>[code] void OnKeyCode(char chKey)</p><p> {</p><p> if (chKey >= '0' && chKey <= '9') //Make sure it's only for the remote</p><p> {</p><p> TimeSpan ts = DateTime.Now - m_timeKeyPressed;</p><p> if (m_strInput.Length >= 3 || ts.TotalMilliseconds >= 800)</p><p> {</p><p> m_strInput = String.Empty;</p><p> }</p><p> m_timeKeyPressed = DateTime.Now;</p><p> if (chKey == '0' && m_strInput.Length == 0) return;</p><p> m_strInput += chKey;</p><p> if (m_strInput.Length == 3)[/code]</p><p></p><p>which seemed to fix the problem. I don't know how to submit changes or anything or even if this is really right. Hopefully we can get this changed in the CVS.</p><p></p><p>Eli[code][/code]</p></blockquote><p></p>
[QUOTE="elihunter, post: 25965, member: 16346"] I was having problems not being able to change to a channel with 3 digits in the TV guide. I found this section of code [code] void OnKeyCode(char chKey) { if (chKey >= '0' && chKey <= '9') //Make sure it's only for the remote { TimeSpan ts = DateTime.Now - m_timeKeyPressed; if (m_strInput.Length >= 2 || ts.TotalMilliseconds >= 800) { m_strInput = String.Empty; } m_timeKeyPressed = DateTime.Now; if (chKey == '0' && m_strInput.Length == 0) return; m_strInput += chKey; if (m_strInput.Length == 2)[/code] and changed it to this [code] void OnKeyCode(char chKey) { if (chKey >= '0' && chKey <= '9') //Make sure it's only for the remote { TimeSpan ts = DateTime.Now - m_timeKeyPressed; if (m_strInput.Length >= 3 || ts.TotalMilliseconds >= 800) { m_strInput = String.Empty; } m_timeKeyPressed = DateTime.Now; if (chKey == '0' && m_strInput.Length == 0) return; m_strInput += chKey; if (m_strInput.Length == 3)[/code] which seemed to fix the problem. I don't know how to submit changes or anything or even if this is really right. Hopefully we can get this changed in the CVS. Eli[code][/code] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
3 digit channel in tv guide
Contact us
RSS
Top
Bottom