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.
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:
Comments
Post a Comment