SendKeys (Sending Origional String)

  • Thread starter Thread starter NvrBst
  • Start date Start date
N

NvrBst

I have a string that I want to send with SendKeys.Send(...) exactly as
the string is (It may or may not contains special characters like
"+").

Is there something already built to auto parse the string or tell the
method to not parse anything? I already created have my own function
that converts (+ ^ % ~ { [ ] }), I'm just wondering if I can get ride
of it for a built in version.

NB
 
I have a string that I want to send with SendKeys.Send(...) exactly as
the string is (It may or may not contains special characters like
"+").

Is there something already built to auto parse the string or tell the
method to not parse anything?  I already created have my own function
that converts (+ ^ % ~ { [ ] }), I'm just wondering if I can get ride
of it for a built in version.

NB

Instead of the function you can do it with 1 line (with the
System.Text.RegularExpression). Regex.Replace(myString, @"([\+\^\%\~\
{\}\[\]\(\)])", "{$1}"). But still a little curious on if there is
built in functionality for this.

NB
 
Back
Top