Type into is not working with Underscore (_) produces (-)

Guys i am passing some commands with Underscore (_) in type into . which is printed in cmd.exe .

The result looks like (-) instead (_)
For example: test_123 , result : test-123
Any solutions to fix this issues?

1 Like

Hi,
Make sure SendWindowMessage property of TypeInto unchecked.

Hi Again,

thanks for reply.

i would like to say what i need.

i want to invoke a command prompt and want to perform some action using command line.

  1. Started the process(cmd.exe)
  2. using type into i was trying to print in cmnd line and performing some execution. during this i have some command containing (_) …
  3. if i uncheck the sendWindowmessages it wont print in command prompt.(Am i right)

It should type .
Did you try ?:thinking:

Underscores are getting populated correctly in command prompt. I tried with basic default method (SendWindow and Simulate being unchecked)

Hi,

i tried it . in my office machine it is not working. in my personal laptop i can able to see _ with unchecking sendWindowmessages and simulate type.

i am using studio 2017.1.6498 Community edition in both machines.

@Pradeepkumar you have to use 3 send keys to achieve this.

I tried these with out Shift key and it is working perfectly fine on a notepad. So, i changed new screenshot.
hope my inputs are useful.

wow quite strange isn’t it :grinning:
what to do now? :thinking:
This might sound silly but try these:
try running workflow designed in personal laptop in office laptop.(vice versa)
same issue then something wrong with CMD itself :stuck_out_tongue:
try running CMD as Admin and give a try (don’t think so that’s the problem here)

Can i now why this thing happens… because i am facing the same issue

why this is happening?? what could be the problem??

Hi @Pradeepkumar, @Anil_Julakal

Maybe you can try this.
It is used to paste into command line code like “_” with SendWindowMessage.
This sample is maked by Windows 7.
I think other version Windows can use similar method to implement.
Step1:Set To Clipborad “test_123”.
Step2:Right Click command line window with SendWindowMessage.
Step3:Send Hotkey “p” to command line window with SendWindowMessage.
PasteIntoCommandLine