Page 1 of 3 123 LastLast
Results 1 to 10 of 23

Thread: How to pass focus from RR to IG via iGkeys?

  1. #1
    Constant Bitrate 01black_ac's Avatar
    Join Date
    Jul 2005
    Location
    NJ
    Posts
    223

    How to pass focus from RR to IG via iGkeys?

    I'm trying to integrate iGkeys shortcuts into a skin I've built for RoadRunner, but am finding it difficult to pass the focus from the RoadRunner skin (which is using SENDKEYS to pass the shortcut keystrokes), to iGuidance, which needs to be the active window in order for iGkeys keystrokes to work...

    Is there a way to pass focus to iGuidance after a RoadRunner button has been pressed, perhaps waiting a half-second before the iGkeys shortcut is actually executed? I've read as many of the iGkeys threads as I could find but wasn't able to find anything specific.

    '01
    Hang on while I defragment my car...

    the Acura ITX project
    the Acura ITX skin for RoadRunner
    project progress: 99%

  2. #2
    The Curator
    Auto Apps:loading...
    Blue ZX3's Avatar
    Join Date
    Aug 2004
    Location
    Chicago area,IL
    Posts
    4,860
    tried "ACTIVATE;iGuidance||nextRRcode"

    And R U using theiGnative feature?
    RideRunner...The #1 FE, PERIOD.

    Current Project: DFXVoice [Beta Released]
    Next in line: RRMedia v2.0

    DFX 5.1.1 Skin
    Appstore Link

    My RideRunner Plugins
    RRMedia
    RRExtended
    DFXVoice

  3. #3
    Constant Bitrate 01black_ac's Avatar
    Join Date
    Jul 2005
    Location
    NJ
    Posts
    223
    I'm using the 4/12 version of RR and I don't think iGNative mode is available in it...

    I'm calling iGuidance from a GPS menu selection screen. This is the button which loads the iGuidance screen:

    Code:
     B21,325,275,150,101,"LOAD;EXTERNAL_GPS_IG.SKIN;;C:\Program Files\iNav\iGuidance\iGuidanceUMPC.exe;iGuidance",""

    and this is the button in question. It uses SENDKEYS, rotating through 1, 2, 3 and 4, to show the 3 3D views and then the 2D view of the iGuidance map...

    Code:
     B13,200,547,099,052,"ACTIVATE;iGuidance||SENDKEY;{1}||SWITCHBUTTON;13>>||SENDKEY;{2}||SWITCHBUTTON;13>>||SENDKEY;{3}||SWITCHBUTTON;13>>||SENDKEY;{4}||SWITCHBUTTON;13>>",""
    '01
    Hang on while I defragment my car...

    the Acura ITX project
    the Acura ITX skin for RoadRunner
    project progress: 99%

  4. #4
    The Curator
    Auto Apps:loading...
    Blue ZX3's Avatar
    Join Date
    Aug 2004
    Location
    Chicago area,IL
    Posts
    4,860
    FYI, iGnative has been native to rr since the 9-6-2006 release....
    Button code looks correct, I there any reason your NOT using the ignative? Or do you run two different gps apps and require the gps menu to select which one?
    RideRunner...The #1 FE, PERIOD.

    Current Project: DFXVoice [Beta Released]
    Next in line: RRMedia v2.0

    DFX 5.1.1 Skin
    Appstore Link

    My RideRunner Plugins
    RRMedia
    RRExtended
    DFXVoice

  5. #5
    Maximum Bitrate
    Join Date
    Aug 2004
    Location
    Germany
    Posts
    520
    Use a short delay after the ACTIVATE command. That worked for me.
    BTW: You have a space in your fist SENDKEY command
    SENDKEY;{ 1}

  6. #6
    Super Moderator
    Auto Apps:loading...
    JohnWPB's Avatar
    Join Date
    Sep 2005
    Location
    West Palm Beach, Florida
    Posts
    4,658
    Blog Entries
    1
    This is a side effect of the forums, it will break long lines of code with spaces unless they are wrapped with the CODE tag. I wrapped the lines in the post above with the CODE tag, so if someone copies and pastes the line, it will work.
    Front End of Choice: Ride Runner (Is there anything else??? ) & Powered by the DFX5.1 Skin Available in the Mobile App Mart

    My Fiero Build Thread

  7. #7
    Constant Bitrate 01black_ac's Avatar
    Join Date
    Jul 2005
    Location
    NJ
    Posts
    223
    Yeah I think the spaces in my code were introduced when I pasted the line into the post editor here. There aren't any spaces in my skin code...

    I manually added the ignative=true line into the rr.ini... when I do that, and set iGuidance for EXTERNAL, the iGKeys shortcuts don't work at all.

    By default, pressing 'T' in iGuidance brings up the Trip Computer.
    With iGKeys runnings, pressing 'T' brings up a shortcut to "Go to Street Address" which is not a normally available keyboard shortcut within iGuidance. It's scripted into iGKeys.

    If I remove the ignative=true setting from rr.ini and call iGuidance like so:

    Code:
    B21,325,275,150,101,"LOAD;EXTERNAL_GPS_IG.SKIN;;C:\Program Files\iNav\iGuidance\iGuidanceUMPC.exe;iGuidance",""
    then iGuidance loads into the GPS skin I built for it, and embeds (seemingly) properly.

    With iGuidance embedded this way, *and* with iGKeys running in the system tray, pressing a button that uses SENDKEY;{T}
    Code:
    B15,400,547,099,052,"ACTIVATE;iGuidance||SENDKEY;{T}||GETFOCUS"
    still loads the trip computer. In other words, it's not catching the fact that iGKeys is supposed to reassign the 'T' to load "Go to Street Address"...

    However, if I click on the iGuidance map, and press 'T' directly on the keyboard (I'm testing all of this on a laptop) then the iGKeys scripted commands do work, and Go To Street pops up.

    So it's something with the fact that a button within RR is being pressed, that's causing focus to go to RR at which point the standard iGuidance shortcut for 'T' takes effect rather than the one which iGKeys is supposed to insert instead... You're probably familiar with iGKeys, but if not, the way it works is that whenever the iGuidance window is the active window on the screen, the shortcuts scripted into iGKeys override all other shortcuts for iGuidance and, in some cases, exist as entirely new shortcuts... but if the iGuidance window is not the active window on the screen, then the iGKeys shortcuts don't do anything at all...

    '01
    Hang on while I defragment my car...

    the Acura ITX project
    the Acura ITX skin for RoadRunner
    project progress: 99%

  8. #8
    Super Moderator
    Auto Apps:loading...
    JohnWPB's Avatar
    Join Date
    Sep 2005
    Location
    West Palm Beach, Florida
    Posts
    4,658
    Blog Entries
    1
    Couple of things... iGkeys is really no longer needed. Back with ig2.x it has some advanantages, but most of the keyboard commands that iGKeys accessed, have since been removed from iGuidance.

    On the screen you have iG embedded on, you can simply use the code:

    "SENDKEY;%{v}{t}"

    This sends an ALT V (drop down the View menu) and sends T (for the trip meter)

    This happens instantly, and you will never see the drop down menu appear.

    My suggestion, is to just scrap iGKeys and use the standard rr sendkey to access iGuidance.

    Just have a look at the pull-down menu's, for the letter that is underlined in the list, to see what the hot key is for that option / function.

    For instance all of the items in the "File drop-down" are:

    "SENDKEY;%{f}{E}" = "Enter Destination"
    "SENDKEY;%{f}{L}" = "Save Current Location"
    "SENDKEY;%{f}{C}" = "Clear Route"
    "SENDKEY;%{f}{R}" = "Record Track"
    "SENDKEY;%{f}{P}" = "Play Track"
    "SENDKEY;%{f}{D}" = "Demo"
    "SENDKEY;%{f}{A}" = "About"
    "SENDKEY;%{f}{X}" = "Exit"

    You can access the other 2 drop down menu's by simply using the T & V to access the drop-downs, and then the letter of the function that you want.

    On a last note, make sure your "switch buttons" are in order, meaning if you have switchbutton1 then that button needs to be the very first button listed in the skin file itself, or it will not work properly.
    Front End of Choice: Ride Runner (Is there anything else??? ) & Powered by the DFX5.1 Skin Available in the Mobile App Mart

    My Fiero Build Thread

  9. #9
    The Curator
    Auto Apps:loading...
    Blue ZX3's Avatar
    Join Date
    Aug 2004
    Location
    Chicago area,IL
    Posts
    4,860
    No I don't use Igkeys, nor have a use for it. The ignative makes the ig window a child of rr and thats probably why it didn't work at all as ig was no longer its own parent window.
    RideRunner...The #1 FE, PERIOD.

    Current Project: DFXVoice [Beta Released]
    Next in line: RRMedia v2.0

    DFX 5.1.1 Skin
    Appstore Link

    My RideRunner Plugins
    RRMedia
    RRExtended
    DFXVoice

  10. #10
    Constant Bitrate 01black_ac's Avatar
    Join Date
    Jul 2005
    Location
    NJ
    Posts
    223
    JohnWPB... I know how to SENDKEY to the dropdown menus... the point is that iGKeys allows access to commands that are not available via the dropdowns... for example, using iGKeys it's possible to access internal menu commands by sending one keypress to automatically show all hospitals or gas stations within a 25-mile radius of current location... that can't be done via the dropdowns...

    So, instead of having to click, in iGuidance, the MENU button, the DESTINATION button, the POI button, the AUTOMOTIVE button, the GAS button, and then the BY DISTANCE button, iGKeys makes it possible to just press, for example, the 'G' key and it handles all 6 of those keypresses transparently and just shows you the list of gas stations...

    But again, I can't seem to figure out how to set the focus so that iGuidance is the active window *as* the SENDKEY is sending the keystroke... it always seems to send the default iGuidance keystroke instead, as if iGuidance where not the active window.

    EDIT: Incidentally, I found out while working on this that you don't need to call the first part of the dropdown menus in iGuidance... at least not in the version 4 that I'm working with... for example, you don't have to SENDKEY;%{T}{R} to get the Route Info... You can just SENDKEY;{R} and it works just fine....
    I also found that you can SENDKEY;{3} and it toggles beteen 3D view #2 and 2D view... someone might find that useful... of course, I'm trying to go a different route by using iGKeys, but those shortcuts work for me in iGuidance v4...

    '01
    Hang on while I defragment my car...

    the Acura ITX project
    the Acura ITX skin for RoadRunner
    project progress: 99%

Page 1 of 3 123 LastLast

Similar Threads

  1. Toy For Christmas (PowerMate)
    By chuckster in forum Road Runner
    Replies: 9
    Last Post: 02-10-2006, 08:24 AM
  2. RR not regaining focus after Sendkey...
    By J187 in forum Road Runner
    Replies: 4
    Last Post: 01-15-2006, 01:39 AM
  3. How make RR on top of IG?
    By civic5zigen in forum RR Skins
    Replies: 15
    Last Post: 11-19-2005, 08:47 PM
  4. RR pulling focus away when it receives customlabels
    By CdRsKuLL in forum RR Bug Tracker
    Replies: 4
    Last Post: 09-22-2005, 05:21 PM
  5. Bruno Speech Recognition with RR?
    By ruairi in forum Road Runner
    Replies: 12
    Last Post: 05-03-2005, 01:20 PM

Bookmarks

Posting Permissions

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