# Problem entering character \*

**URL:** <https://community.smartbear.com/t/problem-entering-character/348>\
**Category:** TestComplete\
**Tags:** test, testcomplete, migrated, debugging\
**Created:** [January 20, 2025, 10:59am UTC](https://community.smartbear.com/t/problem-entering-character/348 "2025-01-20T10:59:47Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [January 20, 2025, 10:59am UTC](https://community.smartbear.com/t/problem-entering-character/348/1 "2025-01-20T10:59:47Z")

</div>

> Originally posted by **AlexiSage** on January 20, 2025

Problem appears in version 15.71.4.7. Before it worked.

In scripts, i use “.Keys” to enter data.

Since the latest version, the \* character is no longer entered.

Ex : Before when i wrote “2\*5”, i obtened 10, and now i have 25.

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [January 20, 2025, 11:35am UTC](https://community.smartbear.com/t/problem-entering-character/348/2 "2025-01-20T11:35:11Z")

</div>

> Originally posted by **rraghvani** on January 20, 2025

The correct way to use the asterisk symbol is,

```auto
obj.Keys("2 [NumAsterisk] 5");

```

as shown in [https://support.smartbear.com/testcomplete/docs/reference/test-objects/members/common-for-sys-desktop-pda/keys-method-sys-desktop-object.html](https://support.smartbear.com/testcomplete/docs/reference/test-objects/members/common-for-sys-desktop-pda/keys-method-sys-desktop-object.html)

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [January 20, 2025, 5:44pm UTC](https://community.smartbear.com/t/problem-entering-character/348/3 "2025-01-20T17:44:07Z")

</div>

> Originally posted by **Hassan\_Ballan** on January 20, 2025

Not sure why sending keystrokes “2\*5” to the application you should end up with 10.

As rraghvani provided the correct syntax for the Keys Method, such method does not perform calculations.

Perhaps your application receiving the keystrokes is performing the calculation, and also that for me would not be expected. If after updating the keys value to the correct syntax and still you do not get the expected results, perhaps you should investigate your application?

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [January 22, 2025, 8:34pm UTC](https://community.smartbear.com/t/problem-entering-character/348/4 "2025-01-22T20:34:28Z")

</div>

> Originally posted by **scot1967** on January 22, 2025

Yes, perhaps a bit more info about what you expect to happen when you run obj.Keys(“2 \* 5”);? Is your app taking this string and performing a calculation?

“Ex : Before when i wrote “2\*5”, i obtened 10, and now i have 25.”

What is giving you 10 or 25 ?

… Technically I think passing the string “2\*5” to an app should include the asterisk. What happens if you do this to a textbox in an app or can you visually verify the asterisk isn’t there?

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [January 22, 2025, 8:51pm UTC](https://community.smartbear.com/t/problem-entering-character/348/5 "2025-01-22T20:51:16Z")

</div>

> Originally posted by **scot1967** on January 22, 2025

Here I have added asterisks to a Keys call that enters the order entry elapsed time into a text box in my app. I didn’t need to use [NumAsterisk] to pass a \* into my app. So yeah, still maybe a little more background? Don’t rule out a 🪲 in your app.😉

```auto
orderEntryObjs.txtSpecialInstructions.Keys("***Total Order Time " + ((orderEntryTime + lineItemEntryTimeSum)/60).toFixed(3) + " minutes with " + intLineItems + " line item(s).***");

```

 ![](https://canada1.discourse-cdn.com/flex049/uploads/smartbear_prod/original/1X/4d1e5f989af251c1f6f619b0e11eacd2a2dced74.png)

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [January 22, 2025, 8:54pm UTC](https://community.smartbear.com/t/problem-entering-character/348/6 "2025-01-22T20:54:04Z")

</div>

> Originally posted by **scot1967** on January 22, 2025

This is to force ‘Keys’ to use/send the numpad asterisk I believe. Worth a shot to see what happens though!

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [January 23, 2025, 9:56am UTC](https://community.smartbear.com/t/problem-entering-character/348/7 "2025-01-23T09:56:20Z")

</div>

> Originally posted by **rraghvani** on January 23, 2025

One of my replies seems to be missing!

Was this working before upgrading TC? If yes, then it’s most likely a bug that’s introduced. I’ve upgraded to the latest version, and I’ve come across a number of issues.

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [January 23, 2025, 4:33pm UTC](https://community.smartbear.com/t/problem-entering-character/348/8 "2025-01-23T16:33:07Z")

</div>

> Originally posted by **scot1967** on January 23, 2025

Ah! yes, I am on Version: 15.68.8.7 x64. I haven’t upgraded yet.
