문제

So I should send a barcode, which include the sign +. The problem is that this sign don't appear on the application and delete the next number with.

I should send this for example:

DB2+555000-04+329000-01+378000+0000000000000000000000000000000000000000000000000000T2L0RE9WM0K6FJM0Q1X5DFRA

And I become this:

DB255000-0429000-0178000000000000000000000000000000000000000000000000000000T2L0RE9WM0K6FJM0Q1X5DFRA

As you can see the + sign disappear between the application and Visual Studio, because the + sign is take as SHIFT. How can I write the '+' sign in Code, so that it is taken as + and not as SHIFT

도움이 되었습니까?

해결책

From the documentation:

The plus sign (+), caret (^), percent sign (%), tilde (~), and parentheses () have special meanings to SendKeys. To specify one of these characters, enclose it within braces ({}).

So you should send "01{+}378000{+}..."

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top