Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate

Record key press duration?


  • Please log in to reply
4 replies to this topic
Ariel
  • Guests
  • Last active:
  • Joined: --
Anyway to record the duration of a key press automatically without needing to add the time in manually? By "automatically" I mean with "AutoScriptWriter (recorder)"?

Chris
  • Administrators
  • 10727 posts
  • Last active:
  • Joined: 02 Mar 2004
I don't think so. But depending the reason you need a delay, manually inserting one of the Wait commands, such as WinWait or ClipWait, might make the script faster and more reliable.

Ariel
  • Guests
  • Last active:
  • Joined: --
So the only way to program a key down for a specific duration is to use the down command and then a wait function with a (manually entered time) and then the up command?

Chris
  • Administrators
  • 10727 posts
  • Last active:
  • Joined: 02 Mar 2004
That's right. This is because the down/up method did not exist at the time AutoScriptWriter was conceived. And for 99% of purposes, there is no need to hold a key down when simulating keystrokes (some games might be exceptions).

The remapping section might be of interest to you, since it describes how to make keys or mouse buttons hold down other keys or buttons:
http://www.autohotke.../misc/Remap.htm

Ariel
  • Guests
  • Last active:
  • Joined: --
Yeah, you hit the nail on the head... I'm trying to cheat at a game. :)