AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Spacebar macro (urgent!) yes i used search.

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
futures



Joined: 19 Nov 2009
Posts: 3

PostPosted: Thu Nov 19, 2009 5:46 pm    Post subject: Spacebar macro (urgent!) yes i used search. Reply with quote

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! Wink
Back to top
View user's profile Send private message
Guest






PostPosted: Thu Nov 19, 2009 5:58 pm    Post subject: Reply with quote

u can either use "SetKeyDelay" or put some "Sleep"
Back to top
futures



Joined: 19 Nov 2009
Posts: 3

PostPosted: Thu Nov 19, 2009 5:59 pm    Post subject: Reply with quote

could you give me an example?
i tried it, and i doesnt work the way i want it o.
Back to top
View user's profile Send private message
tidbit



Joined: 09 Mar 2008
Posts: 650
Location: USA

PostPosted: Thu Nov 19, 2009 6:44 pm    Post subject: Reply with quote

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
View user's profile Send private message
futures



Joined: 19 Nov 2009
Posts: 3

PostPosted: Fri Nov 20, 2009 7:56 am    Post subject: Reply with quote

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
View user's profile Send private message
Guest






PostPosted: Fri Nov 20, 2009 8:00 am    Post subject: Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group