Announcement

Collapse
No announcement yet.

Sendkey not working

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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"

    Comment


    • #3
      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"

      Comment


      • #4
        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.......

        Comment


        • #5
          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."

          Comment


          • #6
            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"

            Comment


            • #7
              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"

              Comment


              • #8
                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."

                Comment


                • #9
                  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"

                  Comment

                  Working...
                  X