#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:1 follow-up: ↓ 5 Changed 11 years ago by Melba23
comment:2 Changed 11 years ago by Mat
- Summary changed from Send Key Count to Send Key Count 0 not to send any keys
- Type changed from Bug to Feature Request
- Version 3.3.9.24 deleted
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 Changed 11 years ago by Jon
- Milestone set to 3.3.11.0
- Owner set to Jon
- Resolution set to Completed
- Status changed from new to closed
Added by revision [9427] in version: 3.3.11.0
comment:4 Changed 9 years ago by 123123000
mmjan1378@…
comment:5 in reply to: ↑ 1 Changed 9 years ago by anonymous
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"
comment:6 Changed 9 years ago by anonymous
send('{x 2} ')
send('{y 1} ')
send('{z 0} ')
Guidelines for posting comments:
- You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
- In-depth discussions should take place on the forum.
For more information see the full version of the ticket guidelines here.
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