3

I have this code that I'm programming for a game I play. Its nothing special. I want it to run a simple function. Sending. Everything works except {space}. In the game Spacebar is used to make your character jump. I tried it with that, and it didn't work. Here's the code below:

NumpadEnd::
    Send wc
    Sleep, 300
    Send {space}
    Sleep, 600
    Send ddq
    Sleep, 400
    Send e
    Sleep, 500
    Send ssz
    Sleep, 100
    Send g
    Sleep, 1100
    Send asdq
    Sleep, 500
    Send q
    Sleep, 900
    Send sc
    return
jrbedard
  • 3,662
  • 5
  • 30
  • 34
Broly
  • 45
  • 1
  • 5

1 Answers1

0

Try:

SendMode Input

NumpadEnd::
    Send wc
    Sleep, 300
    Send {space Down}
    Sleep, 50
    Send {Space up}
    Sleep, 600
    Send ddq
    Sleep, 400
    Send e
    Sleep, 500
    Send ssz
    Sleep, 100
    Send g
    Sleep, 1100
    Send asdq
    Sleep, 500
    Send q
    Sleep, 900
    Send sc
    return
errorseven
  • 2,672
  • 2
  • 14
  • 20
  • YES!!!! IT WORKS THANK YOU!!!!! I don't know why it didn't work when I tried @wOxxOm's time. I thank both of you. – Broly Oct 09 '16 at 23:51
  • No problem, thank you for accepting the answers. Most new users dont take the time. – errorseven Oct 10 '16 at 00:20