c# - SendKeys CaretSign not sendable -


anyone have experience sendkey methode?

my problem when want send ^ sign have read had send brackets this. {^}

but when & sign?

do know why? if make {^ 2} && wont ^ :)

edit: sorry misunderstanding! first comment way , wont work this.


enter image description here

from msdn:

the plus sign (+), caret (^), percent sign (%), tilde (~), , parentheses () have special meanings sendkeys. specify 1 of these characters, enclose within braces ({}). example, specify plus sign, use "{+}". specify brace characters, use "{{}" , "{}}". brackets ([ ]) have no special meaning sendkeys, must enclose them in braces.

so correct syntax caret is:

sendkeys.send("{^}"); 

evidence works: enter image description here


Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -