Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TextEntry(".....") doesn't work with dots #114

Open
IvanMurzak opened this issue Oct 20, 2021 · 2 comments
Open

TextEntry(".....") doesn't work with dots #114

IvanMurzak opened this issue Oct 20, 2021 · 2 comments

Comments

@IvanMurzak
Copy link

IvanMurzak commented Oct 20, 2021

TextEntry method just ignores dots.
Input: "11.22" Result: "1122"
Input: ".." Result: ""

@Gh0stWalk3r
Copy link
Member

Hello @IvanMurzak
thanks for raising this issue. I think it is caused by a wrong key mapping.
For the '.' could you try out following code and let me know if it gives you the expected result?

var sim = new InputSimulator();
sim.Keyboard.KeyPress(VirtualKeyCode.OEM_PERIOD);

Also, what OS are you using?
I wish you a nice day 😄 ,
Gregor

@IvanMurzak
Copy link
Author

IvanMurzak commented Oct 25, 2021

@Gh0stWalk3r hey, thanks for the reply! :)
I temporarily solved it using some extra work. I split the text by the dot character and print these strings separately, for printing the dot character works this constant VirtualKeyCode.DECIMAL.

My solution is just a hotfix, I hope you may fix the issue in the TextEntry method directly. Thanks!

OS: Windows 10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants