Modify

#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 by Melba23, on Dec 12, 2013 at 10:02:41 AM

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

Version 0, edited on Dec 12, 2013 at 10:02:41 AM by Melba23 (next)

comment:2 by Matt Diesel, on Dec 12, 2013 at 12:32:21 PM

Summary: Send Key CountSend Key Count 0 not to send any keys
Type: BugFeature 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 Jon, on Jan 1, 2014 at 5:22:15 PM

Milestone: 3.3.11.0
Owner: set to Jon
Resolution: Completed
Status: newclosed

Added by revision [9427] in version: 3.3.11.0

comment:4 by 123123000, on Dec 9, 2015 at 4:45:20 PM

mmjan1378@…

in reply to:  1 comment:5 by anonymous, on Dec 9, 2015 at 4:46:11 PM

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 by anonymous, on Mar 3, 2016 at 1:54:30 AM

send('{x 2} ')
send('{y 1} ')
send('{z 0} ')

Modify Ticket

Action
as closed The owner will remain Jon.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.