| View previous topic :: View next topic |
| Author |
Message |
rousni
Joined: 23 Mar 2006 Posts: 41
|
Posted: Fri Nov 02, 2007 7:36 pm Post subject: "Input" - unexpected behavior |
|
|
| Code: | Loop
Input, var, L1 |
| Quote: | | Normally, the user's input is blocked. |
However, when holding down a key long enough, the keystroke is sent (repeatedly) to the active window. |
|
| Back to top |
|
 |
engunneer
Joined: 30 Aug 2005 Posts: 6772 Location: Pacific Northwest, US
|
Posted: Fri Nov 02, 2007 7:41 pm Post subject: |
|
|
this is a duplicate of http://www.autohotkey.com/forum/viewtopic.php?t=25157 (which is in Ask for help)
it is a side effect of the repeat rate hitting keys before the loop loops again to start catching input. if you intend to block typing, this is not an efficient way of doing it.
What is your goal? _________________
Unless otherwise noted, all code is untested.
Common Answers: 1.(Loops, Viruses, etc.) 2. Search 3.RTFM |
|
| Back to top |
|
 |
rousni
Joined: 23 Mar 2006 Posts: 41
|
Posted: Fri Nov 02, 2007 8:00 pm Post subject: |
|
|
| my goal is to create a keyboard launcher like the Windows Run edit box, but using aliases and a tooltip displaying pressed keys |
|
| Back to top |
|
 |
Superfraggle
Joined: 02 Nov 2004 Posts: 848 Location: London, UK
|
|
| Back to top |
|
 |
rousni
Joined: 23 Mar 2006 Posts: 41
|
Posted: Mon Nov 05, 2007 9:53 am Post subject: |
|
|
doesn't help
| Quote: | | it is a side effect of the repeat rate hitting keys |
Is it possible to change this rate temporarily (DllCall, SendMessage,...)? |
|
| Back to top |
|
 |
engunneer
Joined: 30 Aug 2005 Posts: 6772 Location: Pacific Northwest, US
|
Posted: Mon Nov 05, 2007 5:27 pm Post subject: |
|
|
it is a keyboard setting on control panel _________________
Unless otherwise noted, all code is untested.
Common Answers: 1.(Loops, Viruses, etc.) 2. Search 3.RTFM |
|
| Back to top |
|
 |
Ian
Joined: 15 Jul 2007 Posts: 1157 Location: Enterprise, Alabama
|
Posted: Tue Nov 06, 2007 1:22 am Post subject: |
|
|
| Code: | | Input, var, L1 ; Same as the loop, always waits 1 char. |
|
|
| Back to top |
|
 |
engunneer
Joined: 30 Aug 2005 Posts: 6772 Location: Pacific Northwest, US
|
Posted: Tue Nov 06, 2007 7:00 pm Post subject: |
|
|
dieom, he is not just waiting for one char. he is trying to blockinput without the blockinput command _________________
Unless otherwise noted, all code is untested.
Common Answers: 1.(Loops, Viruses, etc.) 2. Search 3.RTFM |
|
| Back to top |
|
 |
Laszlo
Joined: 14 Feb 2005 Posts: 4016 Location: Pittsburgh
|
Posted: Wed Nov 07, 2007 7:35 pm Post subject: |
|
|
| Input in a Loop will often fail at fast typing, too. It was discussed a few times in the Forum. Input was not designed to be called rapidly. Consider using EndKeys in a single Input command, or access directly the keyboard buffer. Defining all the keyboard keys as HotKeys works, too. Sometimes HotStrings provide an even better solution. |
|
| Back to top |
|
 |
|