Results 1 to 10 of 10

Thread: Help With Sendkey Command And AutoHotKey

  1. #1
    Low Bitrate
    Join Date
    Mar 2009
    Posts
    66

    Help With Sendkey Command And AutoHotKey

    Hi

    i need some help with the sendkey command to autohotkey
    i tried using "Sendkey;{F12}" for example ( keytbl also defined as well )
    but the button isn't working
    i tried searching here and found that you need to get focus but autohotkey works everywhere ( if i press the key inside rr on an actual keyboard it works perfectly )

    what am i doing wrong?

    *i also tried kanakey but it doesn't work either

    btw i have a problem with skin transitions
    it works very very slow
    the pc is very strong :
    amd 5050e dual core
    onboard ati radeon hd3200
    2gb ddr2

    latest flash
    latest rr version
    everything else works like charm ( even 3d visual on winamp )

    what could be the problem?

    thanks in advance ,
    nimikipod

  2. #2
    Maximum Bitrate kpjuk's Avatar
    Join Date
    Dec 2003
    Location
    West Midlands
    Posts
    474
    Hi Nimikipod,

    have you tried to activate the screen/app you want to send the key to first?


    How do I use SENDKEY

    If I want to make the buttons for embedded applications so that they look like they belong in my skin, how do I do that?

    You can communicate with embedded applications using the SENDKEY command. You make the buttons in your skin with the standard button commands, and then use SENDKEY to send commands to your application. Here is an extract of my GPS skin which I embed Infomap Navigator into.

    /, B, x, y, w, h, Command;COMMANDCODES, Tooltip
    B01,-1,-2,56,68,"ACTIVATE;Navigator||SENDKEY;{F5}","Zoom In"
    B02,51,-1,51,67,"ACTIVATE;Navigator||SENDKEY;{F6}","Zoom In"
    B03,101,-1,102,67,"ACTIVATE;Navigator||SENDKEY;%V{RIGHT}I%V {RIGHT}O","Fullscreen Toggle"
    B04,201,-1,100,67,"ACTIVATE;Navigator||SENDKEY;%T{DOWN}{DOW N}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN} {DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{RIGHT}{ENTER} ","Exit"
    B05,301,0,101,65,"ACTIVATE;Navigator||SENDKEY;%T{D OWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOW N}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{RIGHT }{DOWN}{DOWN}{DOWN}{ENTER}","Exit"
    B06,402,0,100,65,"ACTIVATE;Navigator||SENDKEY;%T{D OWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOW N}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{RIGHT }C","Exit"
    B07,500,0,101,65,"ACTIVATE;Navigator||SENDKEY;{F7} ","Exit"
    B08,601,1,99,64,"MENU;Audio_Menu.skin",
    B08,700,1,99,64,"EXIT","Exit"

    cheers
    KPJUK
    M1000, 512MB, 512MB CF, 6GB Disk (4200rpm),
    DVD/RW, Dynamix 8" screen, M2-ATX, Custom case,Too many hours building and rebuilding and rebuild.......

  3. #3
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,817
    I don't believe sendkeys will work to simulate it for autohotkey, but if you tell us what you're trying to do in autohotkey (by pressing F12), we may be able to tell you how to do that in RR. Otherwise, you may need to find a way to perform the autohotkey function you want by command line parameters (using the RUN command in RR).
    Ride Runner RR's Myspace

    "Being happy is not about having what you want, it's about wanting what you have."
    "The best things in life are always free - but that doesn't mean money can't buy you good things."

  4. #4
    Constant Bitrate
    Join Date
    Oct 2004
    Location
    Israel
    Posts
    147
    i wrote the message for nimikipod - im helping him with his carpc

    kpjuk - i can't activate the window because autohotkey works from tray with no window..

    guino - we have made a script which changes the mute state of 2 recording lines from the onboard soundcard

    he is using an asus pci card as a sound source
    but also using the onboard sound device for hqct and mic ( for phone control )
    one is using line-in port
    the other is using microphone port
    but when you use winamp linein plugin you get both

    so basicly what the script from autohotkey does is mute one and unmute the other
    for example -
    one press - line-in muted , microphone unmuted
    press again - line-in unmuted , microphone muted

    is it possible to do this inside rr?

    thanks
    HeadUnit : Car-Pc | Processor : JBL MS-8 | Front Stage : Woofer - Mpyre 65M , Mid - Dayton RS100-4 , Tweeter - Tang-Band Ceramic 25-1719S | Subwoofer : Hertz HX250D | Amps : A/D/S PQ10 , Hifonics Olympus XI , SPL AB03445 | Wiring : Sommer , Neutrik

  5. #5
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,817
    RR can mute/unmute sources only, not inputs, but if there's a way to execute the same script with a command line parameter to autohotkey then it should be easy to use the RUN command instead of the F12 keypress. There are also a few command line volume control tools that could do the trick.
    Ride Runner RR's Myspace

    "Being happy is not about having what you want, it's about wanting what you have."
    "The best things in life are always free - but that doesn't mean money can't buy you good things."

  6. #6
    Constant Bitrate
    Join Date
    Oct 2004
    Location
    Israel
    Posts
    147
    got it
    i downloaded a little prog called volumeline
    hope this will do the job
    thanks
    HeadUnit : Car-Pc | Processor : JBL MS-8 | Front Stage : Woofer - Mpyre 65M , Mid - Dayton RS100-4 , Tweeter - Tang-Band Ceramic 25-1719S | Subwoofer : Hertz HX250D | Amps : A/D/S PQ10 , Hifonics Olympus XI , SPL AB03445 | Wiring : Sommer , Neutrik

  7. #7
    Newbie
    Join Date
    Sep 2007
    Posts
    14

    sendkey right-mouse-button?

    Quote Originally Posted by guino View Post
    I don't believe sendkeys will work to simulate it for autohotkey, but if you tell us what you're trying to do in autohotkey (by pressing F12), we may be able to tell you how to do that in RR. Otherwise, you may need to find a way to perform the autohotkey function you want by command line parameters (using the RUN command in RR).
    Hey Guino,
    I'm trying to send a right-mouse-click to my embedded application, but I can't figure it out.
    I've tried numerous things, including:
    B08,109,438,93,70,"ACTIVATE;MyApplication||SENDKEY ;{F11}", (no space after SENDKEY, forum modified the post...)
    where the right mouse button is mapped to F11 via AutoHotkey.
    I also tried:
    B08,109,438,93,70,"ACTIVATE;MyApplication||SENDKEY ;{+F10}", (same here)

    What am I doing wrong/is it possible?

    (Thanks Guino, you rock, RR is the best!)

  8. #8
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,817
    It is currently not possible to simulate mouse clicks in RR, but I have thought of making an extension plugin for that for a long time.. for right now, I'd suggest looking for a command line parameter to autohotkey that can execute the F11 command, or trying to activate autohotkey (instead of your application) to simulate it.
    Ride Runner RR's Myspace

    "Being happy is not about having what you want, it's about wanting what you have."
    "The best things in life are always free - but that doesn't mean money can't buy you good things."

  9. #9
    Newbie
    Join Date
    Sep 2007
    Posts
    14

    sendkey right-mouse-button?

    Quote Originally Posted by guino View Post
    It is currently not possible to simulate mouse clicks in RR, but I have thought of making an extension plugin for that for a long time.. for right now, I'd suggest looking for a command line parameter to autohotkey that can execute the F11 command, or trying to activate autohotkey (instead of your application) to simulate it.
    Thanks Guino,
    I was able to get Autohotkey to fire the "Click right x,y" and close...and I didn't realize putting the mouse in the app window was necessary at first. If you do ever write the plugin I'll be grateful...there's a measureable delay between hitting the button and the right-click, but it gets the job done!
    Thanks again for the continued goodness!

    p.s. any thoughts of how multi-touch might change things? I bet those touchscreens are coming soon... 8-D

  10. #10
    Newbie
    Join Date
    Jun 2008
    Posts
    20
    Quote Originally Posted by flat6 View Post
    Thanks Guino,
    I was able to get Autohotkey to fire the "Click right x,y" and close...and I didn't realize putting the mouse in the app window was necessary at first. If you do ever write the plugin I'll be grateful...there's a measureable delay between hitting the button and the right-click, but it gets the job done!
    Thanks again for the continued goodness!

    p.s. any thoughts of how multi-touch might change things? I bet those touchscreens are coming soon... 8-D
    Why cant you add a line to make the window active first so you dont have to hover the mouse anywhere.... AutoHotKey comes with a example script that opens Notepad on Ctrl+Alt+Del

    Eample:
    ^!n::
    IfWinExist Untitled - Notepad
    WinActivate
    else
    Run Notepad
    return


    Hopefully that will make it a little more convenient.

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
  •