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

Keyboard input simulation is not working properly #658

Open
1 of 3 tasks
antonydevadoss opened this issue Jun 5, 2024 · 0 comments
Open
1 of 3 tasks

Keyboard input simulation is not working properly #658

antonydevadoss opened this issue Jun 5, 2024 · 0 comments

Comments

@antonydevadoss
Copy link

antonydevadoss commented Jun 5, 2024

  • Robotgo version (or commit ref): v0.110.1 (latest)
  • Go version: go1.22.3 darwin/arm64
  • Gcc version: Apple clang version 15.0.0 (clang-1500.3.9.4)
  • Operating system and bit: Apple M2 Pro (MacOs 14.5 (23F79) arm64
  • Resolution: 1920 x 1080
  • Can you reproduce the bug at Examples:
    • Yes (provide example code)
    • No
    • Not relevant
  • Provide example code:
...
	text := "helloworld12345"
	for i, letter := range text {
		if (i+1)%2 != 0 {
			robotgo.KeyDown("shift")
			robotgo.KeyPress(string(letter))
			robotgo.KeyUp("shift")
		} else {
			robotgo.KeyPress(string(letter))
		}

		time.Sleep(100 * time.Millisecond)
	}
...
  • Log gist:

Description

Expected Output: HeLlOwOrLd!2#4%
Actual output: Helloworld1234%

Could you please help me to resolve this issue?
...

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

1 participant