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 … 613 614 615 616 617 … 1231 Next »
irremote command clarification

 
  • 0 Vote(s) - 0 Average
irremote command clarification
HydroChronic
Offline

Member

Posts: 106
Threads: 23
Joined: Jan 2007
#1
2007-01-20, 05:43 PM (This post was last modified: 2007-01-20, 05:47 PM by HydroChronic.)
Hey everyone

I am trying to get my irremote just right and one of the commands in the documentation I found is a little unclear.

Quote:{mode(appname)}
Forces translation of the next button command in the context of the
application section specified by appname rather than by what application
currently has Windows focus.

If no parameter is given, {mode()}, the forced mode is canceled and command
tranlsation is done by automatic section selection according to which
application has Windows focus.

My question is the actual functionality of this command. That is to say that if I set this command as such:

Code:
[Default]
1={mode(GB-PVR)}

...

[GB-PVR]
1={findwnd(GB-PVR)}1

When 1 is pushed the first time will the GB-PVR section be called and the command for 1 from there executed, or will ir.exe simply be told to look at the GB-PVR section for the next button pushed? And on subsequent button pushes; will only the [GB-PVR] section be called or will the program go through its normal execution on the third button press?

Thanks for the help.
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#2
2007-01-20, 07:14 PM
i think it just sets the 'current' section translations, so
[Default]
1={mode(GB-PVR)}1{mode(GB-PVR)}
should tell it to use gbpvr's '1' code and then return to default section operation..
cuz:
[Default]
1={mode(GB-PVR)}
would leave it in gbpvr mode, kinda like a toggle key for gbpvr commands..
and all presses, until a key that isn't in the gbpvr list or a {mode(GB-PVR)} is seen, will send out the ones in gbpvr's section..
just a guess cuz haven't actually tried it out yet..
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
mmatheny
Offline

Senior Member

Posts: 732
Threads: 113
Joined: May 2006
#3
2007-01-20, 07:51 PM
Why isn't there a manual for configuring this bugger??
Mike

PVRX2 1.3.11
Community Skin 3.2.4
Community Skin Plugin 3.2.2
Win7 RTM 7600 x32
Comcast Houston (cable co)
ECS 7050M-M2 V2
AMD Phenom 9550 QuadCore
4G RAM
BFG GeForce 9600GT 512mb
160g SATA II (OS)
500g SATA II (DATA)
LG GGC-H20LK Combo drive
Hauppauge WinTV HVR-2250
JVC RX-9010 RX
Samsung PN50A550
dejunai
Offline

Junior Member

Posts: 24
Threads: 4
Joined: Dec 2006
#4
2007-01-20, 09:10 PM
This page is a couple years out of date, but it's a good source of info...

http://www.dschnabel.de/irdocen.htm

I am not sure what you are after, but if it's to always communicate with GB-PVR
No matter where the current focus is, then what you want is something like:

Code:
[Default]
GRNPOWER={run(C:\Progra~1\devnz\gbpvr\gbpvr.bat)}{sleep(2000)}{findwnd(,GB-PVR)}{fgnwnd()}
0={findwnd(,GB-PVR)}{fgnwnd()}0
1={findwnd(,GB-PVR)}{fgnwnd()}1
2={findwnd(,GB-PVR)}{fgnwnd()}2
3={findwnd(,GB-PVR)}{fgnwnd()}3
4={findwnd(,GB-PVR)}{fgnwnd()}4
5={findwnd(,GB-PVR)}{fgnwnd()}5
6={findwnd(,GB-PVR)}{fgnwnd()}6
7={findwnd(,GB-PVR)}{fgnwnd()}7
8={findwnd(,GB-PVR)}{fgnwnd()}8
9={findwnd(,GB-PVR)}{fgnwnd()}9
NAVDOWN={findwnd(,GB-PVR)}{fgnwnd()}{DOWN}
NAVUP={findwnd(,GB-PVR)}{fgnwnd()}{UP}
NAVRIGHT={findwnd(,GB-PVR)}{fgnwnd()}{right}
NAVLEFT={findwnd(,GB-PVR)}{fgnwnd()}{left}
CHNLUP={findwnd(,GB-PVR)}{fgnwnd()}{pgup}

Which is to say,
{Find the Window( with GB-PVR in the Title)}
{Make the Found Window the ForeGround Window()}
{Send Key to the Window}

And also, cause GB-PVT is now the ForeGround Window,
You should of course retain the [GB-PVR] Section as well:
Code:
[GB-PVR]
0=0
1=1
2=2
3=3
4=4
5=5
6=6
7=7
8=8
9=9
NAVDOWN={DOWN}
NAVUP={UP}
NAVRIGHT={right}
NAVLEFT={left}

Hope this helps a little...
-Dejunai
HydroChronic
Offline

Member

Posts: 106
Threads: 23
Joined: Jan 2007
#5
2007-01-20, 11:48 PM (This post was last modified: 2007-01-20, 11:49 PM by HydroChronic.)
I understand how to control GBPVR without having it in focus. In fact I send message labels to GBPVR in order to control it.

What I am trying to do is setup toggle buttons so that I can control multiple programs regardless of which program has focus. Kinda like a universal remote works with the TV, VCR, DVD and Cable Box depending on which mode is selected.

As for documentation for configuring irremote.ini. I found some text files which are a bit clearer than the website referenced above, although the website above is very good (I used it when setting up irremote.ini the first time).

I've also attached to this post a text file with all the message label numbers which GBPVR responds to. These can be used with the {findwnd(GB-PVR)} and {sendmsg()} commands to control GBPVR without bringing it to the foreground.
dejunai
Offline

Junior Member

Posts: 24
Threads: 4
Joined: Dec 2006
#6
2007-01-21, 01:27 AM
Ah I see whatcha mean...

That would be done via the {mode()}, but alas I dont make use of it...

I did just today tho, after spending sometime within my IRREMOTE.INI
Succedd with an experiment, that ~might~ help a little...

This works to control two apps from the Default:
Code:
[Default]
PLAY={findwnd(,Media Player Classic)}{fgnwnd()}{space}{findwnd(,GB-PVR)}{fgnwnd()}{enter}{sleep(1000)}{ctrl}P
PAUSE={findwnd(,Media Player Classic)}{fgnwnd()}{space}{findwnd(,GB-PVR)}{fgnwnd()}{ctrl}Q
FASTFWD={findwnd(,Media Player Classic)}{fgnwnd()}{ctrl}{right}{findwnd(,GB-PVR)}{fgnwnd()}{ctrl}F
REWIND={findwnd(,Media Player Classic)}{fgnwnd()}{ctrl}{left}{findwnd(,GB-PVR)}{fgnwnd()}{ctrl}D
SKIPFWD={findwnd(,Media Player Classic)}{fgnwnd()}{alt}{right}{findwnd(,GB-PVR)}{fgnwnd()}{ctrl}{right}
SKIPREV={findwnd(,Media Player Classic)}{fgnwnd()}{alt}{left}{findwnd(,GB-PVR)}{fgnwnd()}{ctrl}{left}
STOP={findwnd(,Media Player Classic)}{fgnwnd()}.{findwnd(,GB-PVR)}{fgnwnd()}{ctrl}S

I wouldn't have both apps open, so it's effectively a conditional statement.
( well as close as I can get with the syntax )

I don't share it as any type of solution...
Just as perhaps a snippet that may spur an idea for you...
Sorry I can't be more help...

I am currently working on an AutoIt script,
that I later plan to send all IR commands to,
that actually has some conditional logic behind it...
( a customized "poor man's HiP" if you will ) Smile

I'll see what I can do about real toggles...
-Dejunai
HydroChronic
Offline

Member

Posts: 106
Threads: 23
Joined: Jan 2007
#7
2007-01-21, 07:42 AM
If what you say works then that may be the answer to my question. I should be able to apply that to my code with the {mode()} function since I now think I understand its operation as well.

I think, although I haven't tested it, that the {mode()} command locks the program (ir.exe) to the specified application. The program stays locked in this mode until it hits one of two things; either a command not defined in the specified application or {mode()}.

I really wish Hauppauge would document and really support this program, i mean DAMN!!!!
zaphod7501
Offline

Member

Posts: 196
Threads: 1
Joined: Dec 2006
#8
2007-01-21, 05:23 PM
HydroChronic Wrote:I really wish Hauppauge would document and really support this program, i mean DAMN!!!!
Just a general comment here. I've used the Hauppauge remote with other applications (but you've gone far beyond what I was willing to do, I switched to a Creative serial remote {$6} and girder instead to control other applications) but I think Hauppauge licensed the program (ir.exe was not written by Hauppauge) at low cost and didn't get the rights to disseminate information officially. The developer hasn't released many details since I'm sure he wants to licence it to others himself. Consequently, everything we know about the program seems to be based on observed action/reaction and not even reverse engineering.

Hauppauge seems to prefer to build hardware and let others develop the software. Look at the fact that their dual tuners don't have full functionality under their native software, only MCE, Sage, GB-PVR. etc can run the tuners simultaneously.
davreh99
Offline

Junior Member

Posts: 47
Threads: 13
Joined: Oct 2006
#9
2007-01-30, 03:10 AM
OK, let's try something easier...
After reading this page and the Links associated, and the documentation...

I still don't know how to make the "RED" button act as though I pushed F7 on the keyboard. (To change the aspect-ratio)

I know this is basic...... but anyway, can someone let me know what to type and what section under the irremote.ini for this?:confused:
dejunai
Offline

Junior Member

Posts: 24
Threads: 4
Joined: Dec 2006
#10
2007-01-30, 03:23 AM
davreh99 Wrote:OK, let's try something easier...
After reading this page and the Links associated, and the documentation...

I still don't know how to make the "RED" button act as though I pushed F7 on the keyboard. (To change the aspect-ratio)

I know this is basic...... but anyway, can someone let me know what to type and what section under the irremote.ini for this?:confused:

Under:
Code:
[Default]
RED={findwnd(,GB-PVR)}{fgnwnd()}{f7}
( if you want to make the Default app GB-PVR )

Under:
Code:
[GB-PVR]
RED={f7}
( is all you need if yer not planning on funking widda Default )

You want to comment-out with semicolons... any existing RED= statements
For Example:
Code:
[GB-PVR]
;RED=<the normal function for GB-PVR>
; === Here is Just a Comment ====
RED={f7}
; --- Above lines altered to use Aspect Ratio Key ---


Hope this helps,
-Dejunai
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  tsmuxer command line philly_phenom 7 22,469 2017-08-15, 10:23 AM
Last Post: mantamonaca
  Irremote.ini bethanyrayne 5 4,342 2010-06-29, 04:08 AM
Last Post: sgilani
  import command line switch psycik 4 1,942 2010-02-23, 12:23 AM
Last Post: psycik
  Can GB-PVR start/stop recording via command line? GBPVRinAL 6 2,736 2009-12-09, 07:37 PM
Last Post: GBPVRinAL
  Irremote.ini bethanyrayne 5 3,206 2009-09-21, 08:50 PM
Last Post: fla
  Req clarification of how IR Server works WeeGraeme 2 1,387 2009-09-01, 06:15 AM
Last Post: WeeGraeme
  Need to send additional command after channel change Gerald 1 1,564 2009-08-01, 02:24 PM
Last Post: martint123
  command VMRDeinterlaceMode soydios 2 1,610 2009-08-01, 09:24 AM
Last Post: soydios
  is there a command line for..... tweener 4 2,177 2009-07-06, 07:44 AM
Last Post: pBS
  Title bar during DVD play, "noframe" command line option doesn't work willyperkins 2 1,579 2009-07-02, 11:36 PM
Last Post: willyperkins

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

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

Linear Mode
Threaded Mode