Unable to use Keyboard.Press for typing HTML
Posted: Wed May 26, 2010 10:44 pm
Hi,
I have a variable that starts out:
string email = "<p>" +
"<ul>" +
"<li>POSTrxDiscAmt (The Products setting for the discount per POS swipe) = {[@POSTrxDiscAmt]}</li>" +
when attempting to execute:
Keyboard.Press(email);
I receive the error:
Unexpected exception occured: System.ArgumentException: '[@postrxdiscamt]' is not a valid member of the System.Windows.Forms.Keys enumeration.
How would I go about ensuring this just prints the string as I have it?
Thanks,
Jason
I have a variable that starts out:
string email = "<p>" +
"<ul>" +
"<li>POSTrxDiscAmt (The Products setting for the discount per POS swipe) = {[@POSTrxDiscAmt]}</li>" +
when attempting to execute:
Keyboard.Press(email);
I receive the error:
Unexpected exception occured: System.ArgumentException: '[@postrxdiscamt]' is not a valid member of the System.Windows.Forms.Keys enumeration.
How would I go about ensuring this just prints the string as I have it?
Thanks,
Jason