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

Colon results in Semicolon #48

Open
TomKilt opened this issue Sep 6, 2023 · 4 comments
Open

Colon results in Semicolon #48

TomKilt opened this issue Sep 6, 2023 · 4 comments
Assignees

Comments

@TomKilt
Copy link

TomKilt commented Sep 6, 2023

Hi there,

I've noticed that : ends up as ; on the UI. As I've seen, Colon has the same Keycode as Semicolon in the code. Could this be fix by any chance as I'd like to use this on an 'Open File' dialog with a file path, which needs the : .

Many thanks!

@lucassklp lucassklp self-assigned this Sep 6, 2023
@lucassklp
Copy link
Owner

Can you please indicate where did you find it? Or even, you can fix it and create a PR and we can fix it

@TomKilt
Copy link
Author

TomKilt commented Sep 6, 2023

Hi there,

Thanks for getting back to me with this.
In the code, it can be seen in 'Desktop.Robot/Key.cs' line 207-215. Seems like the Colon and the Semicolon has the same values.

I've found this while running and trying to type a path, like C:\temp\sample.csv and every time the ':' becomes ';'.
It was checked with

robot.Type(":")
robot.Type(':')
robot.Type(Key.Colon)
and
robot.SendKey(":")
robot.SendKey(Key.Colon)

(SendKey might not be the other method, but I have my solution on another laptop and it's already closed, but I think you know what I mean)

Also, I've seen that in one case, the result is not even ';' but letter 'z'. I believe it has the same key in the file.

I believe it could be a fairly easy fix if you know the proper Key values for ':' which I don't.

Note: I was looking for a cross platform solution and this is the only one measured up. If this : => ; case could be fixed, that'd save my day, literally as I'm desperate need for this. Your help is much appreciated and the fix would save from tons of headache.

Many thanks!

@olivercoad
Copy link
Contributor

olivercoad commented Sep 11, 2023 via email

@Idmon
Copy link

Idmon commented Jul 4, 2024

I've got same issue here.

Also tried this but this did not work and gave me a "z"

robot.KeyDown(Key.Shift);
robot.KeyPress(Key.Colon);
robot.KeyUp(Key.Shift);

A fix would be greatly appreciated as I'm also sending keys to a filedirectory where it keeps giving me "C;/User/..."

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

4 participants