NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Add-ons (3rd party plugins, utilities and skins) Old Stuff (Legacy) GB-PVR Support (legacy) v
« Previous 1 … 405 406 407 408 409 … 1231 Next »
EventGhost needs SendMessage interface

 
  • 0 Vote(s) - 0 Average
EventGhost needs SendMessage interface
zehd
Offline

Posting Freak

Posts: 5,119
Threads: 249
Joined: Feb 2006
#1
2007-04-23, 04:35 AM
sub, the author of EventGhost is trying to build a plugin for GB-PVR. Originally we started off with keystroke emulations similar to HIP uses.

However the author of EventGhost would rather SendMessage to GB-PVR to control the interface.

I have not been able to find that information. Perhaps it doesn't exist or is not public, or I'm blind.

Does GB-PVR respond to message from the Windows SendMessage interface?
Frank Z
[COLOR="Gray"]
I used to ask 'why?' Now I just reinstall...
[SIZE="1"]______________________________________________
Author: ZTools: ZProcess, MVPServerChecker; UltraXMLTV Enhancer, Renamer, Manager; [/SIZE]
[/COLOR]
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,724
Threads: 767
Joined: Nov 2003
#2
2007-04-23, 05:08 AM
There is a couple of posts here that describe this info. Basically you can send message id 0x00008007, with wParam set to the key code. Some examples:

2007-04-23 17:08:36.883 VERBOSE [1] OnKeyDown: Up value=38
2007-04-23 17:08:37.437 VERBOSE [1] OnKeyDown: Down value=40
2007-04-23 17:08:37.940 VERBOSE [1] OnKeyDown: Left value=37
2007-04-23 17:08:38.459 VERBOSE [1] OnKeyDown: Right value=39
2007-04-23 17:08:40.491 VERBOSE [1] OnKeyDown: Return value=13
etc...

Sorry - your install wont generate these log messages, but these are standard key codes, so there should be a table somewhere. These give you a few matches to get you started.
zehd
Offline

Posting Freak

Posts: 5,119
Threads: 249
Joined: Feb 2006
#3
2007-04-23, 05:32 AM
sub Wrote:There is a couple of posts here that describe this info. Basically you can send message id 0x00008007, with wParam set to the key code. Some examples:

2007-04-23 17:08:36.883 VERBOSE [1] OnKeyDown: Up value=38
2007-04-23 17:08:37.437 VERBOSE [1] OnKeyDown: Down value=40
2007-04-23 17:08:37.940 VERBOSE [1] OnKeyDown: Left value=37
2007-04-23 17:08:38.459 VERBOSE [1] OnKeyDown: Right value=39
2007-04-23 17:08:40.491 VERBOSE [1] OnKeyDown: Return value=13
etc...

Sorry - your install wont generate these log messages, but these are standard key codes, so there should be a table somewhere. These give you a few matches to get you started.

I'll write a quickie that will report each key press. Thanks...
Frank Z
[COLOR="Gray"]
I used to ask 'why?' Now I just reinstall...
[SIZE="1"]______________________________________________
Author: ZTools: ZProcess, MVPServerChecker; UltraXMLTV Enhancer, Renamer, Manager; [/SIZE]
[/COLOR]
zehd
Offline

Posting Freak

Posts: 5,119
Threads: 249
Joined: Feb 2006
#4
2007-04-23, 05:38 AM
zehd Wrote:I'll write a quickie that will report each key press. Thanks...

Would you know off hand, if 'CTRL' is 17 and 'y' is 89, and they need to be pressed simultaneously, what would be the correct number?
Frank Z
[COLOR="Gray"]
I used to ask 'why?' Now I just reinstall...
[SIZE="1"]______________________________________________
Author: ZTools: ZProcess, MVPServerChecker; UltraXMLTV Enhancer, Renamer, Manager; [/SIZE]
[/COLOR]
Dava
Offline

Member

Posts: 172
Threads: 20
Joined: Oct 2006
#5
2007-12-11, 12:18 PM
sub Wrote:There is a couple of posts here that describe this info. Basically you can send message id 0x00008007, with wParam set to the key code. Some examples:

2007-04-23 17:08:36.883 VERBOSE [1] OnKeyDown: Up value=38
2007-04-23 17:08:37.437 VERBOSE [1] OnKeyDown: Down value=40
2007-04-23 17:08:37.940 VERBOSE [1] OnKeyDown: Left value=37
2007-04-23 17:08:38.459 VERBOSE [1] OnKeyDown: Right value=39
2007-04-23 17:08:40.491 VERBOSE [1] OnKeyDown: Return value=13
etc...

Sorry - your install wont generate these log messages, but these are standard key codes, so there should be a table somewhere. These give you a few matches to get you started.

Looking at this info, I wrote the following in VB6 to try to send an "up" message but it doesn't have any effect. Can anyone see why this would not work? It gets the window handle correctly but PVRX2 does not respond at all. I am using 1.1.5.

Public Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
Public Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long

Sub main()
PVRHWnd = FindWindow(vbNullString, "PVRX2")
Debug.Print "handle " & PVRHWnd
SendMessage PVRHWnd, &H8007, 38, 0
End Sub
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#6
2007-12-11, 02:44 PM
here's a list of all the known codes...
there are modifiers for cntrl etc.
[explained within]
http://forums.nextpvr.com/showthread.php...post245818
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
Dava
Offline

Member

Posts: 172
Threads: 20
Joined: Oct 2006
#7
2007-12-11, 02:56 PM
pBS Wrote:here's a list of all the known codes...
there are modifiers for cntrl etc.
[explained within]
http://forums.nextpvr.com/showthread.php...post245818

Thank you for this, I just found the other thread too.

The problem with my code was the &h8007. I replaced this with the decimal 32775 and we are working!!Big Grin
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#8
2007-12-11, 09:59 PM
will the plugin be for gb or eventghost?
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Sudden Error Message when accessing gbpvr web interface classpro 0 1,531 2010-11-11, 11:59 PM
Last Post: classpro
  Web interface does not respond kojak 4 1,930 2010-02-09, 05:56 PM
Last Post: kojak
  Eventghost channel changer settings help vskatusa 6 2,289 2009-05-31, 10:44 PM
Last Post: vskatusa
  How do I install MCE remote using eventghost? neal64ss 1 2,498 2009-02-06, 09:32 PM
Last Post: persim
  Hauppauge Remote, EventGhost, and GB-PVR ktalley 0 1,476 2008-08-27, 02:35 AM
Last Post: ktalley
  Does GBPVR have a command line interface? JimDaniel 4 1,634 2008-08-20, 05:21 PM
Last Post: JimDaniel
  Help needed with irremote.ini or EventGhost obelix998 2 2,268 2008-07-21, 12:44 PM
Last Post: obelix998
  Hauppauge remote and EventGhost gazoo 3 3,224 2008-04-08, 07:35 AM
Last Post: zehd
  User/Programming Interface to GBPVR hec1152 5 2,120 2008-03-06, 01:58 PM
Last Post: K.S.
  HIP or EventGhost? blackpaw 5 2,428 2007-12-16, 12:20 AM
Last Post: blackpaw

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

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

Linear Mode
Threaded Mode