Press a key for x ms ?

Get help with using AutoHotkey and its commands and hotkeys
-FaLcOn-
Posts: 5
Joined: 26 Aug 2014, 10:42

Press a key for x ms ?

26 Aug 2014, 10:46

Hello everybody!

I made a script for a flash game, but i'm stuck for something!

I would like this:
When i press the "A" key, the script press the left key for x ms
I know how to invert the keys but how to put a delay?

Excuse my french, i am. :D

Cordially
User avatar
Nextron
Posts: 1368
Joined: 01 Oct 2013, 08:23
Location: Netherlands OS: Win7 x64 AHK: Unicode x32

Re: Press a key for x ms ?

26 Aug 2014, 11:31

Are you trying to remap the arrow keys to WASD?

Anyway, I'm not sure what you want, but here are some things you might want to read up on: SetKeyDelay, Sleep, KeyWait and HotKeys (the UP part).
-FaLcOn-
Posts: 5
Joined: 26 Aug 2014, 10:42

Re: Press a key for x ms ?

26 Aug 2014, 11:48

If i press "A", it does the left arrow for 100ms (for exemple)
-FaLcOn-
Posts: 5
Joined: 26 Aug 2014, 10:42

Re: Press a key for x ms ?

29 Aug 2014, 21:01

Could you guys help me for this? I'm a little bit lost
Zelio
Posts: 275
Joined: 30 Sep 2013, 00:45
Location: France

Re: Press a key for x ms ?

30 Aug 2014, 20:25

Many ways, maybe you want an autofire...
http://www.autohotkey.com/board/topic/6 ... re-thread/

Return to “Ask For Help”

Who is online

Users browsing this forum: inseption86, jc0r, Odlanir, robertoggs34 and 234 guests