| View previous topic :: View next topic |
| Author |
Message |
futures
Joined: 19 Nov 2009 Posts: 3
|
Posted: Thu Nov 19, 2009 5:46 pm Post subject: Spacebar macro (urgent!) yes i used search. |
|
|
yes, i did search.
and i found this.
*$Space::
while GetKeyState("Space", "P")
send {space}
return
which is ALMOST perfect to what i need.
all i want to add to this is so that it doesnt press it like without any pauses.
I need it to pause every like 0.75seconds.
to help you understand,
i play this game where you dash/roll right?
and to dash you need to press spacebar.
BUT, if you press it and then press it again (after a few miliseconds)...then it does this super dash thing.
the problem is...the timing is pretty hard to get right.
and its annoying to do it over and over again without any mistakes.
so i need a macro that allows me to just hold the spacebar..
but it will continuously press it for me...and pause every...like...0.75seconds (so it can do the super dash thing)
do you get what i mean?
so basically all im doing is holding the spacebar..
but in the game i'm basically doing an infinite amount of super dashes..
so please help me out.
i got
*$Space::
while GetKeyState("Space", "P")
send {space}
return
this...
but it doesnt pause...
i think this wud be pretty easy for you pros to figure out.
i just want to add in a pause.
and sorry i dont know the EXACT milisecond for the super dash thing.
so can you make it so that it does it anywhere from 0.01-10seconds...
then i'll just play around with it until i figure the exact milisecond out.
thanks a lot you guys!  |
|
| Back to top |
|
 |
Guest
|
Posted: Thu Nov 19, 2009 5:58 pm Post subject: |
|
|
| u can either use "SetKeyDelay" or put some "Sleep" |
|
| Back to top |
|
 |
futures
Joined: 19 Nov 2009 Posts: 3
|
Posted: Thu Nov 19, 2009 5:59 pm Post subject: |
|
|
could you give me an example?
i tried it, and i doesnt work the way i want it o. |
|
| Back to top |
|
 |
tidbit
Joined: 09 Mar 2008 Posts: 650 Location: USA
|
Posted: Thu Nov 19, 2009 6:44 pm Post subject: |
|
|
show what you tried so we can help you. _________________ rawr. be very affraid
*poke*
Note: My name is all lowercase for a reason. |
|
| Back to top |
|
 |
futures
Joined: 19 Nov 2009 Posts: 3
|
Posted: Fri Nov 20, 2009 7:56 am Post subject: |
|
|
i tried adding sleep and any number next to it..
like
*$Space::
while GetKeyState("Space", "P")
send {space}
sleep 300
return
but it doesnt really do anything...
;;;
i dont get this stuff..
can anyone just please write it for me. |
|
| Back to top |
|
 |
Guest
|
Posted: Fri Nov 20, 2009 8:00 am Post subject: |
|
|
if u write like that, the while-loop will only loop the "send {space}"
in order for it to loop the "sleep 300" too
u need to put:
| Code: |
*$Space::
while GetKeyState("Space", "P")
{
send {space}
sleep 300
}
return
|
|
|
| Back to top |
|
 |
|