Sponsored links

Go Back   MP3Car.com > Mp3Car Technical > Software & Software Development > Front Ends > Road Runner


Reply
 
Share Thread Tools Display Modes
Old 06-07-2009, 11:56 AM   #1
Low Bitrate
 
Join Date: Mar 2009
Posts: 64
nimikipod is an unknown quantity at this point
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
nimikipod is offline   Reply With Quote
Advertisement
 
Advertisement
Sponsored links

Old 06-08-2009, 02:50 PM   #2
Maximum Bitrate
 
kpjuk's Avatar
 
Join Date: Dec 2003
Location: West Midlands
Posts: 471
kpjuk is on a distinguished road
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.......
kpjuk is offline   Reply With Quote
Old 06-09-2009, 07:40 AM   #3
RoadRunner Mastermind
 
guino's Avatar
 
Join Date: Nov 2004
Location: Vitória, ES - Brazil
Posts: 9,306
guino will become famous soon enoughguino will become famous soon enough
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."
guino is offline   Reply With Quote
Old 06-09-2009, 11:08 AM   #4
Low Bitrate
 
Join Date: Oct 2004
Posts: 64
Madboy is on a distinguished road
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 : Soundblaster Audigy 2 ZS | 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 | Wiring : Sommer , Neutrik
Madboy is online now   Reply With Quote
Old 06-09-2009, 04:58 PM   #5
RoadRunner Mastermind
 
guino's Avatar
 
Join Date: Nov 2004
Location: Vitória, ES - Brazil
Posts: 9,306
guino will become famous soon enoughguino will become famous soon enough
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."
guino is offline   Reply With Quote
Old 06-11-2009, 07:46 AM   #6
Low Bitrate
 
Join Date: Oct 2004
Posts: 64
Madboy is on a distinguished road
got it
i downloaded a little prog called volumeline
hope this will do the job
thanks
__________________
HeadUnit : Car-Pc | Processor : Soundblaster Audigy 2 ZS | 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 | Wiring : Sommer , Neutrik
Madboy is online now   Reply With Quote
Old 08-30-2009, 02:21 AM   #7
Newbie
 
Join Date: Sep 2007
Posts: 12
flat6 is an unknown quantity at this point
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!)

Last edited by flat6; 08-30-2009 at 02:24 AM. Reason: forum modified my text
flat6 is offline   Reply With Quote
Old 08-30-2009, 11:00 AM   #8
RoadRunner Mastermind
 
guino's Avatar
 
Join Date: Nov 2004
Location: Vitória, ES - Brazil
Posts: 9,306
guino will become famous soon enoughguino will become famous soon enough
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."
guino is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Old 08-31-2009, 02:48 AM   #9
Newbie
 
Join Date: Sep 2007
Posts: 12
flat6 is an unknown quantity at this point
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
flat6 is offline   Reply With Quote
Old 09-26-2009, 02:49 PM   #10
Newbie
 
Join Date: Jun 2008
Posts: 20
derek0606 is an unknown quantity at this point
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.
derek0606 is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




All times are GMT -5. The time now is 02:53 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.2
Copyright © 1999 - 2008 Mp3Car.com Inc.Ad Management by RedTyger
Message Board Statistics