NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 23 24 25 26 27 … 93 Next »
some help on basic gbpvr plugin code

 
  • 0 Vote(s) - 0 Average
some help on basic gbpvr plugin code
Etacovda
Offline

Senior Member

Posts: 253
Threads: 37
Joined: Apr 2006
#11
2009-06-14, 09:58 AM
can anyone point me in the right direction for allowing user input into gbpvr? i now want to do pop ups that allow entry of time (ie 0730, 2245 etc) for my solar system to allow the user to program the running times for the heating of my house.

any ideas/pointers/source code someone can point me at?
[SIZE="3"]HTPC: [/SIZE]3000+ A64 | Gigabyte k8N 939 SLI | 1 gb ddr 400 | 2x mce150 tuners + mce remote | 1x Pinnacle 7010xi dual dvb-s, dual dvb-t tuner, 2xSky motorolla decs with IR server Suite changing channels via MCE remote| ati x1600 pro | 1x250 1x320 gb Seagate IDE drives | 29" sony CRT via svideo | Windows XP sp2
[SIZE="3"]Clients: [/SIZE]2x desktop pc's, 1 wired MVP connected to a 29" mitsubishi
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#12
2009-06-14, 04:16 PM
It'd be hard to give you a full example, because you need a lot of stuff like navigation between fields on the screen etc.

For actually handling the extry of four digital time values, you'd need to implement some key handling like this in the OnKeyDown() method.

Code:
public bool OnKeyDown(KeyEventArgs e)
        {
            switch (e.KeyCode)
            {
                case System.Windows.Forms.Keys.D0:
                case System.Windows.Forms.Keys.D1:
                case System.Windows.Forms.Keys.D2:
                case System.Windows.Forms.Keys.D3:
                case System.Windows.Forms.Keys.D4:
                case System.Windows.Forms.Keys.D5:
                case System.Windows.Forms.Keys.D6:
                case System.Windows.Forms.Keys.D7:
                case System.Windows.Forms.Keys.D8:
                case System.Windows.Forms.Keys.D9:
                    {
                        int value = e.KeyValue - '0';
                        quickKeyValue *= 10;
                        quickKeyValue += value;

                        // handle wrap around ...
                        if (quickKeyValue > 9999)
                        {
                            quickKeyValue = value;
                        }
                        break;
                    }

                ...
                handling of other keys here (like up/down/left/right to move between the fields on your screen)
                ...


                default:
                    handled = false;
                    break;
            }
            ... etc
Etacovda
Offline

Senior Member

Posts: 253
Threads: 37
Joined: Apr 2006
#13
2009-06-14, 08:24 PM
thanks sub, i will look into this tonight + see how i do.
[SIZE="3"]HTPC: [/SIZE]3000+ A64 | Gigabyte k8N 939 SLI | 1 gb ddr 400 | 2x mce150 tuners + mce remote | 1x Pinnacle 7010xi dual dvb-s, dual dvb-t tuner, 2xSky motorolla decs with IR server Suite changing channels via MCE remote| ati x1600 pro | 1x250 1x320 gb Seagate IDE drives | 29" sony CRT via svideo | Windows XP sp2
[SIZE="3"]Clients: [/SIZE]2x desktop pc's, 1 wired MVP connected to a 29" mitsubishi
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): « Previous 1 2


Possibly Related Threads…
Thread Author Replies Views Last Post
  PIP plugin for Kodi sgilani 2 3,020 2022-10-17, 12:44 AM
Last Post: sgilani
  New Systems Plugin kirschey 10 3,506 2020-11-14, 08:01 PM
Last Post: sub
  Remote control example code? drmargarit 4 3,878 2018-04-21, 11:24 PM
Last Post: drmargarit
  Looking for C# UPnP Media Server code bgowland 5 7,723 2016-12-16, 08:25 PM
Last Post: mvallevand
  TitanTv Remote Schedule For GBPVR UncleJohnsBand 51 34,240 2015-08-20, 05:11 PM
Last Post: sub
  VIdeo playback from plugin mvallevand 5 3,599 2015-08-06, 10:43 PM
Last Post: sub
  Attention Sub: Open TV / Custom Data Grabber plugin Benoire 2 2,982 2014-11-14, 02:05 AM
Last Post: Benoire
  API docs to help with plugin development? McBainUK 3 2,841 2013-06-08, 06:14 PM
Last Post: sub
  Refreshing TV Guide Data (after System plugin EPG update) imilne 13 6,284 2013-03-24, 08:03 PM
Last Post: imilne
  sabnzbd plugin to show processed files Wakalaka 1 2,007 2013-03-12, 06:48 AM
Last Post: psycik

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode