Author Topic: Long Keypress How to?  (Read 998 times)

BennyS

  • Guest
Long Keypress How to?
« on: November 26, 2018, 04:07:16 PM »
Hi,

I was trying to set up a command which produces a long key press (2s) of the number 0, such that for example in the editor it would start to write many 0's such like 000000000000000000. However I was not able to set this up. What I have tried is:

Code: [Select]
Press 0 key and hold for 2 seconds and release
and

Code: [Select]
Press down 0 key
Pause 2 seconds
Release 0 key

But both methods only write a single "0" into the editor instead of something like "00000000000000000".
Of course, I dont really want this command for the editor but for a chess game.

Info: I am using Aindows 10 and VA v1.7.3.

Any help would be much appreciated!

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4782
  • RTFM
Re: Long Keypress How to?
« Reply #1 on: November 26, 2018, 05:27:00 PM »
Virtual keypresses don't produce multiple characters, this is not specific to VoiceAttack.

If you want multiple presses, a loop is the best way to achieve it:
Code: [Select]
Start Loop : Repeat 10 Times
Press 0 key and hold for 0,01 seconds and release
End Loop