AutoHotkey Community

It is currently May 27th, 2012, 1:22 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: November 19th, 2009, 6:46 pm 
Offline

Joined: November 19th, 2009, 6:38 pm
Posts: 3
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:


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 19th, 2009, 6:58 pm 
u can either use "SetKeyDelay" or put some "Sleep"


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 19th, 2009, 6:59 pm 
Offline

Joined: November 19th, 2009, 6:38 pm
Posts: 3
could you give me an example?
i tried it, and i doesnt work the way i want it o.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 19th, 2009, 7:44 pm 
Offline

Joined: March 10th, 2008, 12:55 am
Posts: 1907
Location: Minnesota, USA
show what you tried so we can help you.

_________________
rawr. be very afraid
*poke*
Note: My name is all lowercase for a reason.
"I think Bigfoot is blurry, that's the problem. It's not the photographer's fault, Bigfoot is blurry. So there's a large, out-of-focus monster roaming the countryside."


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 20th, 2009, 8:56 am 
Offline

Joined: November 19th, 2009, 6:38 pm
Posts: 3
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 20th, 2009, 9:00 am 
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
 


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: iDrug, Ohnitiel and 24 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group