SimulateKeyboard icon indicating copy to clipboard operation
SimulateKeyboard copied to clipboard

How to simulate the "@"

Open dhekrazaied opened this issue 10 years ago • 1 comments

Hi I didn't found the character "@" in this .h http://api.iolate.kr/beekeyboard/headers/BeeKeycode.h and I search to combine 2 or 3 character to get it with any luck, how can I get it PlZ? Best regards.

dhekrazaied avatar Dec 08 '14 13:12 dhekrazaied

Hello.. I am not the maintainer.. but my case may help you.. for any key or even text you don't know how to type you can put on the clipboard and then paste it.. it will save you much effort translating text to keys.. especially for none latin languages. That works perfect for me on iOS 7.0.4.. the following code writes the word "Besmella" to the active editor:

UIPasteboard *pb = [UIPasteboard generalPasteboard]; [pb setString:@"Besmella"];

simulateKeyboardEvent(7, 231, 1); simulateKeyboardEvent(7, 25, 1); simulateKeyboardEvent(7, 25, 0); simulateKeyboardEvent(7, 231, 0);

smartphoneworld avatar Feb 15 '15 13:02 smartphoneworld