Jump to content


Problem script


  • Please log in to reply
10 replies to this topic

#1 Antonio95

Antonio95
  • Guests

Posted 10 April 2012 - 09:06 PM

Hi people,
I've downloaded AutoHotkey because i need for make a script.
do you can write a script?
when I press the space should be as I pressed 3 times.

I need to get this game, haxball.
Help me please!

#2 Learning one

Learning one
  • Members
  • 1292 posts

Posted 10 April 2012 - 10:08 PM

Welcome Antonio95

Here is the code for you;
$Space::Send, {Space 3}
If it will not work, try replacing Send with SendPlay

#3 Antonio95

Antonio95
  • Guests

Posted 11 April 2012 - 11:14 AM

I'm sorry but don't function..
When press 'space' in that game don't repeat .
The game is haxball.com
Please can you try to solve

#4 janopn

janopn
  • Members
  • 691 posts

Posted 11 April 2012 - 12:55 PM

I'm sorry but don't function..
When press 'space' in that game don't repeat .
The game is haxball.com
Please can you try to solve


Hi, Antonio!
Have you tried with SENDPLAY, as Learning one said before?

#5 Antonio95

Antonio95
  • Guests

Posted 11 April 2012 - 01:06 PM

With SendPlay don't function,
while Play function but when press space don't repeat..

#6 janopn

janopn
  • Members
  • 691 posts

Posted 11 April 2012 - 01:31 PM

Hi again.
You say "function", i think you speak Spanish (like me).
Instead of Function, say works (en vez de function, dí works).

About the program, try this:

$Space::
Loop, 3
{
Send, {Space}
Sleep, 10
}
return


#7 Antonio95

Antonio95
  • Guests

Posted 11 April 2012 - 04:22 PM

It does not work D:

Try to get into the game Haxball and press space,
you will see that the lights pg.
I need that every time I press the space must be valid for 3

#8 Antonio95

Antonio95
  • Guests

Posted 11 April 2012 - 04:29 PM

I tried it and it's fine:
~space::
Send {space left}{space right}{space down}{space up}
return
Now I have to make sure that when I change direction with the arrow keys (left, right, up, down) and hit the space continues to press.

#9 Antonio95

Antonio95
  • Guests

Posted 12 April 2012 - 08:14 PM

Up help me please D:

#10 janopn

janopn
  • Members
  • 691 posts

Posted 12 April 2012 - 08:25 PM

Hi!

{space left} {space right}

I think that does not exist in ahk.
I have alredy told you to use "up" and "down" options. Glad that works.

Now, i don't understand your request.

when I change direction with the arrow keys and hit the space continues to press.


You mean that when you press the keys, space should be pressed too?
If so, you can add this to the code:

~Left::
Send, {Space}
return

~UP::
Send, {Space}
return

~Down::
Send, {Space}
return

~Right::
Send, {Space}
return


#11 Antonio95

Antonio95
  • Guests

Posted 12 April 2012 - 09:36 PM

It's right,
But for example if I'm going to the right and I hold down the space it's ok, but if I change direction and I always pressed space it does not work continuously.
Try it yourself in the game ..