Closed zj360202 closed 3 years ago
Hi
kb.SetKeys remove old selection, use AddKey instead of SetKeys or SetKeys(keybd_event.VK_CAPSLOCK,keybd_event.VK_A)
.
But the best solutions for your example is :
// Set shift to be pressed
kb.HasSHIFT(true)
kb.SetKeys(keybd_event.VK_A)
that solution is it ok for you ?
Best reguard
thank you
CAPS in my Mac will change my input method,but I run it
kb.SetKeys(keybd_event.VK_CAPSLOCK)
err = kb.Launching()
if err != nil {
panic(err)
}
not change my input method is support CAPSLOCK?
kb.SetKeys(keybd_event.VK_CAPSLOCK) kb.SetKeys(keybd_event.VK_A) kb.Launching() kb.Clear() kb.SetKeys(keybd_event.VK_CAPSLOCK) kb.SetKeys(keybd_event.VK_A) kb.Launching()
output: aa