You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to send the keypresses for the string "This is a test!" but it turns into "this is a test1". I'm assuming the letters are reduced to their respective key and the modifiers aren't kept. So "T" becomes "t" and "!" becomes "1" because the "!" characters is a modifier of the "1" button on my keyboard. (Norwegian)
I tried to use robot.CombineKeys(Key.Shift, Key.T); to get the upper case T, which worked, but it would be nice if the Type() function handled that for me.
The exclamation point didn't work with robot.CombineKeys(Key.Shift, Key.One); tho. For some reason it printed "Z" to me..
The text was updated successfully, but these errors were encountered:
Sorry for delaying on reply.
What SO are you using?
By the way, I think you're using the wrong function. CombineKeys may works, but this method is not supposed to do what you want. Try using this overload of Type funcion:
I want to send the keypresses for the string "This is a test!" but it turns into "this is a test1". I'm assuming the letters are reduced to their respective key and the modifiers aren't kept. So "T" becomes "t" and "!" becomes "1" because the "!" characters is a modifier of the "1" button on my keyboard. (Norwegian)
I tried to use
robot.CombineKeys(Key.Shift, Key.T);
to get the upper case T, which worked, but it would be nice if theType()
function handled that for me.The exclamation point didn't work with
robot.CombineKeys(Key.Shift, Key.One);
tho. For some reason it printed "Z" to me..The text was updated successfully, but these errors were encountered: