Results 1 to 9 of 9

Thread: Sendkey not working

  1. #1
    One Sharp Cheddar ThunderStick's Avatar
    Join Date
    Aug 2006
    Location
    West Allis, WI
    Posts
    1,657

    Sendkey not working

    I posted this question in my SKin thread but couldnt get an answer that helped me.
    ANyway,
    I am having problems with the sendkey command. I cant get it to send a keyboard command to a game from a button
    here is the current button command.
    "ACTIVATE;Form1||SENDKEY;{DOWN}||GETFOCUS"

    Form1 is the name of the window, and the game embeds just fine. But I cant get this crazy sendkey thing to happen. What am I doing wrong. This is all that is keeping my skin from being released.
    I searched and found nothing....for you search police out there.
    New Age Garmin - Skin for RR
    New Age Slider - RR SKin In Progress
    "It's called CODE because I don't want you to know"

  2. #2
    One Sharp Cheddar ThunderStick's Avatar
    Join Date
    Aug 2006
    Location
    West Allis, WI
    Posts
    1,657
    Anyone have an idea. My skin is pretty much complete and the sendkey issue is all I have to figure out..
    New Age Garmin - Skin for RR
    New Age Slider - RR SKin In Progress
    "It's called CODE because I don't want you to know"

  3. #3
    Variable Bitrate
    Join Date
    Aug 2006
    Posts
    257
    I *think* the syntax is wrong on your command, from what I can understand when you use multiple commands in one button they are set out like: "Cmd1||= ||cmd2"
    So you could try using the string:-
    "ACTIVATE;Form1||= ||SENDKEY;{DOWN}||= ||GETFOCUS"

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

    Are you sure the window name is correct ? if you fire up the application standalone, is Form1 the wording of the window ? I suspect it is something else, but can't offer any better advice on trying to fix this for you.

    Sorry m8
    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.......

  5. #5
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,817
    The syntax seems correct, swift_gti's advice is actually for when combining label texts (not the case here). So chances are the window title is wrong. Can you please try it with something simple like notepad, etc ? It should really work, but I have seen cases where sendkey does not work with specific applications (just depends on how they handle the keyboard).
    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
    One Sharp Cheddar ThunderStick's Avatar
    Join Date
    Aug 2006
    Location
    West Allis, WI
    Posts
    1,657
    Quote Originally Posted by guino View Post
    The syntax seems correct, swift_gti's advice is actually for when combining label texts (not the case here). So chances are the window title is wrong. Can you please try it with something simple like notepad, etc ? It should really work, but I have seen cases where sendkey does not work with specific applications (just depends on how they handle the keyboard).
    You were correct as usual. It worked with notepad. For some reason or another I can not get it to work with space invaders. The game module that came with the Freedom skin. Oh well back to the drawing board.
    Thanks for the help
    New Age Garmin - Skin for RR
    New Age Slider - RR SKin In Progress
    "It's called CODE because I don't want you to know"

  7. #7
    One Sharp Cheddar ThunderStick's Avatar
    Join Date
    Aug 2006
    Location
    West Allis, WI
    Posts
    1,657
    Quote Originally Posted by kpjuk View Post
    Hi Thunderstick,

    Are you sure the window name is correct ? if you fire up the application standalone, is Form1 the wording of the window ? I suspect it is something else, but can't offer any better advice on trying to fix this for you.

    Sorry m8
    KPJUK
    as for the window name it is hidden. There is no window. I assume it is form1 since I use form1 to embed it and it works fine.
    New Age Garmin - Skin for RR
    New Age Slider - RR SKin In Progress
    "It's called CODE because I don't want you to know"

  8. #8
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,817
    It doesn't work cause I'm pretty sure that's a FLASH object on a VB form, so when you use sendkey, the VB form is catching the keys, and not the flash object. There are similar issues with flash objects inside RR. This is a limitation of integration between Flash and VB it seems.
    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
    One Sharp Cheddar ThunderStick's Avatar
    Join Date
    Aug 2006
    Location
    West Allis, WI
    Posts
    1,657
    That's what what I figured..
    Thanks for the help
    New Age Garmin - Skin for RR
    New Age Slider - RR SKin In Progress
    "It's called CODE because I don't want you to know"

Similar Threads

  1. OBDII / Elm MPG meter. Almost working but not quite!
    By stevieg in forum Engine Management, OBD-II, Engine Diagnostics, etc.
    Replies: 105
    Last Post: 08-19-2008, 04:24 AM
  2. TS working... not working... work... not...
    By bulgogi777 in forum General Hardware Discussion
    Replies: 28
    Last Post: 01-11-2005, 10:25 AM
  3. AT&T Sierra Aircard 775 working on Mac OS X
    By rsanchez28 in forum Wireless Communications
    Replies: 0
    Last Post: 11-21-2004, 02:18 PM
  4. All built and working, just one last problem......
    By Matthew230 in forum Power Supplies
    Replies: 2
    Last Post: 10-18-2004, 05:02 PM
  5. Got GPS 16 working
    By tekknikal in forum General Hardware Discussion
    Replies: 9
    Last Post: 06-16-2002, 07:55 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
  •