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

macos: alt-tab not ... alt tabbing? #51

Open
ldemailly opened this issue Dec 18, 2023 · 1 comment
Open

macos: alt-tab not ... alt tabbing? #51

ldemailly opened this issue Dec 18, 2023 · 1 comment

Comments

@ldemailly
Copy link

Is that a limitation of the OS or my mistake but alt-tab seems to do nothing:

		kb.Clear()
		kb.SetKeys(keybd_event.VK_TAB)
		kb.HasALT(true)
		err := kb.Launching()

Same with .Press() .Release()

@ldemailly
Copy link
Author

ldemailly commented Dec 18, 2023

meanwhile I found this workaround but it's... not great

cmd := exec.Command("osascript", "-e", `tell application "System Events" to keystroke tab using command down`)
err := cmd.Run()

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