NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Information Community Announcements v
« Previous 1 … 19 20 21 22 23 … 56 Next »
Send keys 2 gbpvr WITHOUT STEALING FOCUS!

 
  • 0 Vote(s) - 0 Average
Send keys 2 gbpvr WITHOUT STEALING FOCUS!
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#1
2006-08-25, 06:55 AM (This post was last modified: 2006-08-28, 11:23 PM by pBS.)
Here's a little app that can send keystrokes to gbpvr, without having or stealing focus!
Use it with hip or girder or irrremote to be able to use 2 monitors without stepping on eachother's toes!

Notes for use:
Simply run this app with keystrokes as arguments..special key list at bottom of page..{alt} {shift} etc. eg. send2gbpvr "1" or send2gbpvr "{enter}"
MCE users need to use the MCEir third party driver or you'll get the double hit keystrokes.
It does add a slight delay but it's barely noticeable, holding key down does repeat nicely Smile

Put it in System-wide keys list in HIP, so keys will always be active no matter which program is in focus on other monitor...EDIT: don't have to if gbpvr is only app setup in HIP..just setup as normal keys..

also there are 'send' message codes for gbpvr for some keys...[post messages] they get sent only to gbpvr no matter what..i just use this app for the ones that aren't there..
just add these as a 'post message' with message being 32771 and wparam= the # below
here's the list..
Code:
REW    242
FF      222
PLAY    245
STOP    246
RECORD    247
Track-    228
Track+    222
Back    223
Info    233
Start    205
Ch+    224
Ch-    225
TVRec    247
pause    240
1    193
2    194
3    195
4    196
5    197
6    198
7    199
8    200
9    201
GREEN     288
BLUE      233
RED      242
YELLOW 248

Oddities: it's a windows thing so i doubt Sub can do anything about it but when starting a file, Windows steals focus for the playing activemovie window...not a big deal,but it does steal focus only when starting up video. [Thanks Microsoft! Grrr]

Here are the keys to send:
Code:
Send Command  =  Resulting Keypress
A-Z and 0-9 as usual eg. send2gbpvr "123" send2gbpvr "hello there"
{!}  = !  etc.
{#} = #
{+} = +
{^} = ^
{{}  = {
{}}  = }
{SPACE} = SPACE
{ENTER} = ENTER key on the main keyboard
{ALT} = ALT
{BACKSPACE} or {BS}  = BACKSPACE
{DELETE} or {DEL} = DELETE
{UP} Up arrow
{DOWN} Down arrow
{LEFT} Left arrow
{RIGHT} Right arrow
{HOME} HOME
{END} END
{ESCAPE} or {ESC} ESCAPE
{INSERT} or {INS} INS
{PGUP} PGUP
{PGDN} PGDN
{F1} - {F12} Function keys
{TAB} TAB
{PRINTSCREEN} PRINTSCR
{LWIN} Left Windows key
{RWIN} Right Windows key
{NUMLOCK} NUMLOCK
{CTRLBREAK} Ctrl+Break
{PAUSE} PAUSE
{CAPSLOCK} CAPSLOCK
{NUMPAD0} - {NUMPAD9} Numpad digits
{NUMPADMULT} Numpad Multiply
{NUMPADADD} Numpad Add
{NUMPADSUB} Numpad Subtract
{NUMPADDIV} Numpad Divide
{NUMPADDOT} Numpad period
{NUMPADENTER} Enter key on the numpad
{APPSKEY} Windows App key
{LALT} Left ALT key
{RALT} Right ALT key
{LCTRL} Left CTRL key
{RCTRL} Right CTRL key
{LSHIFT} Left Shift key
{RSHIFT} Right Shift key
{SLEEP} Computer SLEEP key
{ALTDOWN} Holds the ALT key down until {ALTUP} is sent
{SHIFTDOWN} Holds the SHIFT key down until {SHIFTUP} is sent
{CTRLDOWN} Holds the CTRL key down until {CTRLUP} is sent
{LWINDOWN} Holds the left Windows key down until {LWINUP} is sent
{RWINDOWN} Holds the right Windows key down until {RWINUP} is sent
{ASC nnnn} Send the ALT+nnnn key combination
    
{BROWSER_BACK} 2000/XP Only: Select the browser "back" button
{BROWSER_FORWARD} 2000/XP Only: Select the browser "forward" button
{BROWSER_REFRESH} 2000/XP Only: Select the browser "refresh" button
{BROWSER_STOP} 2000/XP Only: Select the browser "stop" button
{BROWSER_SEARCH} 2000/XP Only: Select the browser "search" button
{BROWSER_FAVORITES} 2000/XP Only: Select the browser "favorites" button
{BROWSER_HOME} 2000/XP Only: Launch the browser and go to the home page
{VOLUME_MUTE} 2000/XP Only: Mute the volume
{VOLUME_DOWN} 2000/XP Only: Reduce the volume
{VOLUME_UP} 2000/XP Only: Increase the volume
{MEDIA_NEXT} 2000/XP Only: Select next track in media player
{MEDIA_PREV} 2000/XP Only: Select previous track in media player
{MEDIA_STOP} 2000/XP Only: Stop media player
{MEDIA_PLAY_PAUSE} 2000/XP Only: Play/pause media player
{LAUNCH_MAIL} 2000/XP Only: Launch the email application
{LAUNCH_MEDIA} 2000/XP Only: Launch media player
{LAUNCH_APP1} 2000/XP Only: Launch user app1
{LAUNCH_APP2} 2000/XP Only: Launch user app2
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
Mr. Seldon
Offline

Junior Member

Posts: 4
Threads: 1
Joined: Aug 2006
#2
2006-08-28, 06:05 PM
Hi!

I don´t get it. Did u maybe forget to link to that app?
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#3
2006-08-28, 10:47 PM (This post was last modified: 2006-08-28, 10:51 PM by pBS.)
oops! guess the app upload didn't take...
here tis again...sorry about that...musta waited too long to hit send..
hey,it didn't take that one either...!!??
popup came up,i added file,then 'send' and no upload!?
will try another browser...
ahhh,ok....it wouldn't take an .exe for attachment...
had to zip it up...Smile
silly me...lol
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
idkpmiller
Offline

Posting Freak

Posts: 817
Threads: 141
Joined: May 2006
#4
2006-11-15, 07:18 AM
what are you system call are you using to provide this functionality as I have a problem with sending commands to GBPVR in the plugin I am writing. When I start an external app using system.dognostic.process I cannot get a remote control command to GBPVR to get it to close the external process :-(

Cheers

Paul
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#5
2006-11-15, 07:40 AM
i am using it within HIP, it's just a command-line app to send the keys that you can specify on command line so it doesn't really 'listen' for the remote keys, it has to be externally executed by your remote software..[can't use for gbpvr built-in remote functionality]
hip just executes it with appropriate params and it looks for the window name and sends it along there without bringing it forward even..

it's an auto-it script so dissaemble it and edit for yourself..
[or see how it works]
[get autoit3 to disassemble it back to code and edit]

your problem may be from having gbpvr not the 'active' window, so unless your remote is global in nature, you'll have to setup that key map for when your external app is active...i set my HIP up to always respond no matter the active app, and sends keys in background...most are covered by the wm commands, but for some this is needed...
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
Wakalaka
Offline

Posting Freak

Posts: 926
Threads: 161
Joined: Jan 2007
#6
2007-03-01, 12:52 PM
How to disassemble your send2gbpvr.exe? I can't make AutoIt3 do it.
NPVR 4.1.0.180302 o Kodi 17.6 o EventGhost 0.5.0.rc4 o SAF 6.3.2 o SchedulesDirect
[SIZE="1"]
Case: Apevia X-Qpack HTPC o Motherboard: Asus P8H67-MLE o CPU: Intel Core i3-2100 o RAM: 8 GB o OS: Win7 64-bit
Tuner: HDHomeRun dual tuner o Leaf SkyHDTV antenna o Remote: Microsoft MCE
Hard drives: Samsung 500 GB SSD, Seagate 2 TB SATA2, Samsung 540 GB SATA2 o Input: Logitech USB keyboard & mouse
Video: ATI Radeon 7750 o Monitor: Viewsonic 27" VX2703MH-LED, LG 55" LCD TV
[/SIZE]
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#7
2007-03-01, 08:57 PM (This post was last modified: 2007-03-01, 09:58 PM by pBS.)
it's probably just an older version of autoit i've done it with..
[it was a while ago..]
i believe this is that one's original code..:
Code:
#NoTrayIcon
AutoItSetOption ( "TrayIconHide", 1 )
Opt("WinTitleMatchMode", 3)
if winactive("GB-PVR") then
send($cmdlineraw)
else
ControlSend("GB-PVR", "", "", $CmdLineRaw)
endif

if gb active, it sends normal key, if not, it uses control send..

did you try the exe2aut.exe that comes with autoit?
worked with my latest version..
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
Wakalaka
Offline

Posting Freak

Posts: 926
Threads: 161
Joined: Jan 2007
#8
2007-03-02, 05:57 AM (This post was last modified: 2007-03-02, 06:50 PM by Wakalaka.)
; <AUT2EXE VERSION: 3.2.0.1>
; <AUT2EXE INCLUDE-START: C:\AutoIt3\send2gbpvr.au3>
#NoTrayIcon
ControlSend("GB-PVR", "", "", $CmdLineRaw)
exit
; <AUT2EXE INCLUDE-END: C:\AutoIt3\send2gbpvr.au3>

Thanks, I didn't look in the Extras folder. Your tool works great!

I tried using Post Message for items such as Play, which has a wParam value, but all of the Post Message entries I had would steal focus, so I went with using your program for all buttons. My HIP file is attached, maybe it's a configuration issue?

Tried Event Ghost, but couldn't figure out how to configure it.
Found a post here that has more native codes.
I have an MCE 2005 remote.
NPVR 4.1.0.180302 o Kodi 17.6 o EventGhost 0.5.0.rc4 o SAF 6.3.2 o SchedulesDirect
[SIZE="1"]
Case: Apevia X-Qpack HTPC o Motherboard: Asus P8H67-MLE o CPU: Intel Core i3-2100 o RAM: 8 GB o OS: Win7 64-bit
Tuner: HDHomeRun dual tuner o Leaf SkyHDTV antenna o Remote: Microsoft MCE
Hard drives: Samsung 500 GB SSD, Seagate 2 TB SATA2, Samsung 540 GB SATA2 o Input: Logitech USB keyboard & mouse
Video: ATI Radeon 7750 o Monitor: Viewsonic 27" VX2703MH-LED, LG 55" LCD TV
[/SIZE]
HydroChronic
Offline

Member

Posts: 106
Threads: 23
Joined: Jan 2007
#9
2007-03-02, 03:08 PM
I've had this working without any third-party software using IR32 (aka IRRemote) from Hauppauge since almost when I put my DVR together. The newest version of IR32 has a command to send data on a message code just like the AutoIt application is doing here.

I like this setup since I have the "Video" button on my remote setup to put IR32 into "GBPVR" mode, which only sends message codes to GBPVR. In order to get out of this mode I have the "Go" button setup to return IR32 back to its original mode.

Using this setup I can easily close any applications I open with GameZone and setup special remote buttons for specified third party programs (like comskip so I can mark commercials with my remote). Hopefully soon I will also be able to control the mouse and use the keyboard via the remote as well, but thats a different project Rolleyes

Anyway, I have the most complete list of message code information for GBPVR that I've seen floating around. I've attached it here when I have time; work calls. If anyone wants a peak at my IRRemote.ini, just let me know and I'll post that up too.
Wakalaka
Offline

Posting Freak

Posts: 926
Threads: 161
Joined: Jan 2007
#10
2007-03-03, 12:54 AM
HydroChronic Wrote:Anyway, I have the most complete list of message code information for GBPVR that I've seen floating around. I've attached it here when I have time; work calls. If anyone wants a peak at my IRRemote.ini, just let me know and I'll post that up too.

Can you post your message code list? I've found a few on the forums and elsewhere. I'm in the process of gathering docs, tips, etc. and have access to update the Wiki so will do that once I get enough info.
NPVR 4.1.0.180302 o Kodi 17.6 o EventGhost 0.5.0.rc4 o SAF 6.3.2 o SchedulesDirect
[SIZE="1"]
Case: Apevia X-Qpack HTPC o Motherboard: Asus P8H67-MLE o CPU: Intel Core i3-2100 o RAM: 8 GB o OS: Win7 64-bit
Tuner: HDHomeRun dual tuner o Leaf SkyHDTV antenna o Remote: Microsoft MCE
Hard drives: Samsung 500 GB SSD, Seagate 2 TB SATA2, Samsung 540 GB SATA2 o Input: Logitech USB keyboard & mouse
Video: ATI Radeon 7750 o Monitor: Viewsonic 27" VX2703MH-LED, LG 55" LCD TV
[/SIZE]
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (5): 1 2 3 4 5 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  External tool: Transfer Season Record schedules from GBPVR to NPVR kendrak24 37 21,257 2013-04-11, 05:58 AM
Last Post: kendrak24
  myGBPVR: use XMBC as GBPVR FrontEnd Ton 161 63,742 2012-02-15, 07:04 PM
Last Post: rantzau
  Translations for nPVR and GBPVR MixMan 19 8,164 2011-08-25, 07:32 PM
Last Post: sub
  N3XT Rev 001.6 with GBPVR support psicotron3 0 1,985 2009-08-30, 08:57 PM
Last Post: psicotron3
  Showname - Rename utility for GBPVR recordings Anthony 0 1,472 2009-03-05, 05:40 PM
Last Post: Anthony
  GBPVR install on WINE/Ubuntu Gutsy fhmanas 28 15,922 2009-02-03, 12:53 PM
Last Post: fhmanas
  GBPVR Wellington Xmas drinks psycik 44 11,023 2008-12-08, 05:44 AM
Last Post: skippy_nz
  Possible infection found on GBPVR site? suddste 40 13,114 2008-10-21, 01:06 AM
Last Post: sub
  GBPVR LCD Plugin for LCDSmartie fooman1 146 68,362 2008-07-03, 08:04 PM
Last Post: prada115
  PSP Streaming from GBPVR psycik 11 4,794 2008-06-03, 11:58 AM
Last Post: fuzzweed

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

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

Linear Mode
Threaded Mode