Results 1 to 10 of 10

Thread: Help with SENDKEY command

  1. #1
    Low Bitrate
    Join Date
    Oct 2005
    Location
    Raleigh, NC
    Posts
    76

    Help with SENDKEY command

    Hi,

    I'm planning to use a set of key strokes to perform different functions in RR, depending on which screen is in the forefront. For testing purposes, I mapped the "U" key as Test1 and the "D" key as Test2 in the KeyTBL.ini, then made the necessary entries in the ExecTBL.ini. The audio player responds correctly when I press the U and D keyboard keys, but nothing happens in Guidance 3.1. As a proof of concept, I also tried SENDKEY;{g}" and SENDKEY;{a}" (known hotkeys in IG) and still no response. I am not using a modified iGuidance, and have IGNATIVE=TRUE in RR.ini.
    Would one of the gurus kindly take a look at the syntax and offer some suggestions?

    Thank you,

    RRG

    KeyTBL.ini

    85,"TEST1"
    68,"TEST2"

    ExecTBL.ini

    "TEST1","PGUP",audio_player.skin
    "TEST1","ACTIVATE;iGuidance||SENDKEY;{up}"||GETFOC US",external_gps.skin

    "TEST2","PGDOWN",audio_player.skin
    "TEST2","ACTIVATE;iGuidance||SENDKEY;{down}"||GETF OCUS",external_gps.skin

  2. #2
    MGD
    MGD is offline
    FLAC
    Auto Apps:loading...
    MGD's Avatar
    Join Date
    Feb 2005
    Location
    Los Angeles
    Posts
    1,756
    I havenothing in my KEYtbl.ini or in Exectbl.ini.
    In my GPS screen I have those commands for zoom in and zoom out and they work just fine.
    B17,684,449,112,69,"SENDKEY;{DOWN}","Zoom Out"
    B18,684,371,112,78,"SENDKEY;{UP}","Zoom In"

  3. #3
    Low Bitrate
    Join Date
    Oct 2005
    Location
    Raleigh, NC
    Posts
    76
    Hey MGD,

    My skin parameters are the same as yours, and it works fine with the touch screen.

    I'm trying to add a level of customization, via keyboard input, so the 2 ini files need to have those entries. I combed through the posts, and believe all is set up correctly. I suspect iGuidance is not getting into focus. The window display name is "iGuidance"

    I also removed the entries for the audio_player.skin, in case of some conflict, but still the same result.

    Please send me your suggestions.

    Thanks,

    RRG

  4. #4
    MGD
    MGD is offline
    FLAC
    Auto Apps:loading...
    MGD's Avatar
    Join Date
    Feb 2005
    Location
    Los Angeles
    Posts
    1,756
    Look at your code very closely..
    "TEST1","PGUP",audio_player.skin
    "TEST1","ACTIVATE;iGuidance||SENDKEY;{up}"||GE TFOC US",external_gps.skin

    "TEST2","PGDOWN",audio_player.skin
    "TEST2","ACTIVATE;iGuidance||SENDKEY;{down}"|| GETF OCUS",external_gps.skin

    After the {up} and {down} remove the "
    Maybe try to remove the ACTIVATE;iGuidance since you run it natively.

  5. #5
    Low Bitrate
    Join Date
    Oct 2005
    Location
    Raleigh, NC
    Posts
    76
    MGD,

    I tried your suggestion, and the following, but still no go.

    "SENDKEY;{DOWN}||GETFOCUS",external_gps.skin
    "SENDKEY;{DOWN}||GETFOCUS,external_gps.skin"
    "SENDKEY;{DOWN}",external_gps.skin
    "SENDKEY;{DOWN},external_gps.skin"

    As an additional test, I created this entry: "TEST2","SENDKEY;{DOWN}".
    The audio player and iGuidance did not respond this command.
    I then created "TEST2","DOWN" and audio worked fine, but iGuidance didn't.

    Thoughts?

    Thanks

  6. #6
    Confusion Master
    Auto Apps:loading...
    Enforcer's Avatar
    Join Date
    Sep 2003
    Location
    If you go down to the woods today, You're sure of
    Posts
    14,622
    Sendkey won't work with iGuidance 3, they removed the key inputs away in this version.

    Should work with iG 2.1.x

  7. #7
    Low Bitrate
    Join Date
    Oct 2005
    Location
    Raleigh, NC
    Posts
    76
    Thanks Enforcer. Isn't sendkey command the same as pressing a keyboard key? When I am in iGuidance, and press the arrow up, arrow down keys on the KB, IG responds correctly.

    Thanks

  8. #8
    Confusion Master
    Auto Apps:loading...
    Enforcer's Avatar
    Join Date
    Sep 2003
    Location
    If you go down to the woods today, You're sure of
    Posts
    14,622
    Yes and no, it depends on whether the software is set up to accept use of sendkeys, I believe iG3 isn't whereas iG2 was.


    I know for example Red Deaths Mobile Emulator isn't. (you can control it using the keyboard but it doesn't recognise sendkeys).


    Have a search for other threads regarding iG3 as this was one of the reasons skinners had to change the way their skins interacted with iG and use autoit plugins etc.

  9. #9
    Low Bitrate
    Join Date
    Oct 2005
    Location
    Raleigh, NC
    Posts
    76
    Thanks for clearing this up! I'll work on a different approach.

    RRG

  10. #10
    FLAC Sal R.'s Avatar
    Join Date
    Aug 2006
    Location
    Sun Diego
    Posts
    1,448
    KeyTBL
    38,"PCiGZoom+",EXTERNAL_GPS.skin
    40,"PCiGZoom+",EXTERNAL_GPS.skin

    ExecTBL
    "PCiGZoom+","SENDKEY;"{up}||ACTIVATE;Road Runner"
    "PCiGZoom-","SENDKEY;"{down}||ACTIVATE;Road Runner"

    This is what I use.

    This was button code from JohnWPB's original Blue Devil skin.
    Pico-ITX / XP Home with EWF-HORM / RR v12/02/2009 / Winamp v5.13 / RRMedia v1.2.2

Similar Threads

  1. request: exclude command on .skin
    By liquid_smoke in forum Road Runner
    Replies: 5
    Last Post: 11-03-2006, 06:41 PM
  2. Sendkey not working
    By ThunderStick in forum Road Runner
    Replies: 8
    Last Post: 09-12-2006, 06:28 AM
  3. SpeakEasy Voice Recognition - Beta 1
    By ruairi in forum Road Runner
    Replies: 31
    Last Post: 08-22-2006, 11:12 PM
  4. Set a pause with Sendkey command?
    By Mattkins99 in forum Road Runner
    Replies: 11
    Last Post: 10-11-2005, 02:35 AM
  5. Anyone understand Java ? I need help.
    By frodobaggins in forum Software & Software Development
    Replies: 31
    Last Post: 05-24-2004, 10:53 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
  •