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 

how do i make it press and hold?

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





PostPosted: Wed Apr 20, 2005 11:05 am    Post subject: how do i make it press and hold? Reply with quote

if i record what i do, press record, click in the window i want focused
and press space for 1sec... it does do that for me when i run that script later..
it just press space 10 times or so...
i cant figure out how to make it press and hold space for 1 second instead of repeating itself for 1 sec..
or.. i cant even make it 1 sec, it repeates itself as many times as it did when i recorded it... but i hold it down then..

hope you understand what i mean.. my english isnt the best Smile

thanks
Back to top
toralf



Joined: 31 Jan 2005
Posts: 3841
Location: Bremen, Germany

PostPosted: Wed Apr 20, 2005 1:29 pm    Post subject: Reply with quote

you have to edit your script.
I'm as well not very good in this feild.
But You might want to try to "send" a "space down" and "sleep" for a while and then send a "space up"
_________________
Ciao
toralf
Back to top
View user's profile Send private message Send e-mail Visit poster's website
ZARDOZ
Guest





PostPosted: Wed Apr 20, 2005 2:12 pm    Post subject: Reply with quote

like this, or am i doing it wrong? cant make it work..

#space::
Send, {SpaceDown}
Sleep, 1000
Send, {SpaceUp}
return

thanks Very Happy
Back to top
ZARDOZ
Guest





PostPosted: Wed Apr 20, 2005 7:09 pm    Post subject: Reply with quote

no one knows?

want to make windowskey+space to press and hold space for a specific time
Back to top
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10480

PostPosted: Wed Apr 20, 2005 7:41 pm    Post subject: Reply with quote

That's almost correct, you just need a space in between "space" and "down/up":

#space::
Send, {Space Down}
Sleep, 1000
Send, {Space Up}
return
Back to top
View user's profile Send private message Send e-mail
ZARDOZ
Guest





PostPosted: Wed Apr 20, 2005 8:22 pm    Post subject: Reply with quote

niiice Very Happy thank you
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