#2557 closed Feature Request (Completed)
Send Key Count 0 not to send any keys
| Reported by: | RandomClown | Owned by: | Jon |
|---|---|---|---|
| Milestone: | 3.3.11.0 | Component: | AutoIt |
| Version: | Severity: | None | |
| Keywords: | Send | Cc: |
Description
In the Send function, if you specify a count in a key as 0, the count is treated as 1.
Example:
send('{x 2} ')
send('{y 1} ')
send('{z 0} ')
Output:
xx y z
Makes it more cumbersome to substitute the value with a variable, since the variable is likely to be 0
Attachments (0)
Change History (6)
comment:2 by , 12 years ago
| Summary: | Send Key Count → Send Key Count 0 not to send any keys |
|---|---|
| Type: | Bug → Feature Request |
| Version: | 3.3.9.24 |
Changed this from a bug report to a feature request. Although the current behavior is documented, the OP makes a reasonable case for this behavior to be changed.
comment:3 by , 12 years ago
| Milestone: | → 3.3.11.0 |
|---|---|
| Owner: | set to |
| Resolution: | → Completed |
| Status: | new → closed |
Added by revision [9427] in version: 3.3.11.0
comment:5 by , 10 years ago
Replying to Melba23:
It clearly states in the Help file that:
The key will be send at least once even if the count is zero
I suggest that you do some errorchecking on the variables before creating the string to send.
M23
Edit: Fixed the typo - now reads "will be sent"

It clearly states in the Help file that:
The key will be send at least once even if the count is zero
I suggest that you do some errorchecking on the variables before creating the string to send.
M23