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 

hold 1 key = holding multiple keys

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





PostPosted: Wed Jun 10, 2009 5:56 pm    Post subject: hold 1 key = holding multiple keys Reply with quote

im trying to make a script where when I hold down right its like im holding down right and s untill I release it.

eg.
right pressed down=right pressed down + "S" pressed down
right released=right released + "S" released

ive been trying to wright this script for hours but it just not working Confused
Back to top
d-man



Joined: 08 Jun 2006
Posts: 285

PostPosted: Wed Jun 10, 2009 6:47 pm    Post subject: Reply with quote

Maybe something like this could work for you:

Code:
right::
loop
{
send, {right}s
sleep 10
if (stop=1)
{
stop=0
break
}
}
return

right up::
stop=1
return
Back to top
View user's profile Send private message
pzyro
Guest





PostPosted: Thu Jun 11, 2009 6:46 am    Post subject: Reply with quote

doesnt work :S
Back to top
d-man



Joined: 08 Jun 2006
Posts: 285

PostPosted: Thu Jun 11, 2009 8:31 am    Post subject: Reply with quote

works for me... you could try increasing the sleep time
Back to top
View user's profile Send private message
pzyro
Guest





PostPosted: Thu Jun 11, 2009 10:03 am    Post subject: Reply with quote

doesnt matter ive got it working now
Back to top
Display posts from previous:   
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