iolate / SimulateKeyboard

27 stars 10 forks source link

How to simulate the "@" #4

Open dhekrazaied opened 9 years ago

dhekrazaied commented 9 years ago

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.

smartphoneworld commented 9 years ago

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);