Results 1 to 5 of 5

Thread: Use irremote.ini to run autohotkey macro

  1. #1
    Join Date
    Jan 2006
    Location
    Oklahoma, USA
    Posts
    226

    Use irremote.ini to run autohotkey macro

    This is a bit off track from GB-PVR support, but I'm hoping someone here can help anyhow. I'm trying to set up my remote to move GB-PVR between my computer monitor and my HDTV (set up as dual monitors). I have written an AutoHotkey macro that moves the window to the TV when I press Control-t and to my monitor when I press control-m. These commands work great when entered from the keyboard and they move GB-PVR no matter what program has the current focus. However, I can not find a way to assign this function to my remote using irremote.ini. I have tried setting it up as a function under the PVRX2 section, but it does nothing (I assume because it is trying to interpret the control-T or M as a GB-PVR command). I have also tried setting up the remote control function under an AutoHotkey section I have defined and this does not work either. I assume this is because there is no autohotkey window to receive the focus (though it has a process called AutoHotkey.exe that shows up in task manager). Can anyone tell me how feed the control-T or M commands to the macro program using the remote...or perhaps someone can suggest a better forum for me to post my question.

  2. #2
    Join Date
    Jan 2006
    Posts
    579
    I assume you are using a Hauppage remote... first you need to decide which button on the remote you want to use.

    As an example, let's say you want to use the RADIO button

    then, go into the [Default] section and make sure you have

    RADIO={ctrl}{t}

    and make sure you comment out any other mention of RADIO in the [Default] section.

    Give that a try. You might have to have the line send the keystroke to the desktop or something, but this might work so give it a shot.
    nPVR 3.1.1 on Win7 x64 Pro|| 46" LG 47LW5300 LCD || Hauppauge HD-PVR2|| Hauppauge HVR-1250
    creator of webStreamer.. now its built-in

  3. #3
    Join Date
    Jan 2006
    Location
    Oklahoma, USA
    Posts
    226
    Quote Originally Posted by sgilani View Post
    I assume you are using a Hauppage remote... first you need to decide which button on the remote you want to use.

    As an example, let's say you want to use the RADIO button

    then, go into the [Default] section and make sure you have

    RADIO={ctrl}{t}

    and make sure you comment out any other mention of RADIO in the [Default] section.

    Give that a try. You might have to have the line send the keystroke to the desktop or something, but this might work so give it a shot.
    Thanks for the suggestion. I am using a 45 Key Hauppauge. I have already tried the {ctrl}{t} suggestion and nothing happens when I press the remote button. (true both when I put the command in the PVRX2 section and when I try to setup an autokey section). I assume it is trying to "interpret" this and send a command to GB-PVR rather than windows itself (or AutoKey).

    What did you mean by "have the line send the keystroke to the desktop"? How is this done? It sounds like this might work...I think I just need a way to make windows think it has received keystrokes, but what irremote.ini is doing is sending an interpreted command to a specific program. I just can't figure out any other way to send info from irremote.ini. Any suggestions?

  4. #4
    Join Date
    Oct 2004
    Location
    Seattle, WA USA
    Posts
    360
    I use custom menu to do the switching between TV and monitor. First create config1 with TV as 2nd monitor and config2 as computer monitor, then I have customer menu to run a batch script to check that no recording, no viewing then the script swaps config file then restart recording to have the new config applied.

    Hope that will help.

    Dan L.
    Dell Dual Core 6400 XP Pro, PVR500, HVR-1600, MVPs on Belkin wireless bridge

  5. #5
    Join Date
    Jan 2006
    Location
    Oklahoma, USA
    Posts
    226
    Quote Originally Posted by replaytv View Post
    I use custom menu to do the switching between TV and monitor. First create config1 with TV as 2nd monitor and config2 as computer monitor, then I have customer menu to run a batch script to check that no recording, no viewing then the script swaps config file then restart recording to have the new config applied.

    Hope that will help.

    Dan L.
    Neat idea. I assume the custom menus you are referring to are "desktop profiles" (at least that is what my nVidia card calls them)? I may play with this as it sounds like it might accomplish what I need...probably a project for next weekend. Thanks for the suggestion.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •