Modify

Opened 12 years ago

Closed 12 years ago

Last modified 10 years ago

#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, 12 years ago

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 12 years ago by Melba23 (next)

comment:2 by Matt Diesel, 12 years ago

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, 12 years ago

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, 10 years ago

mmjan1378@…

in reply to:  1 comment:5 by anonymous, 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"

comment:6 by anonymous, 10 years ago

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.