views:

85

answers:

2

i am creating a virtual for my application in IMK(input method kit) i failed to simulate keyboard event by pressing a button. is there any library i can used for the simulation? is there any materials/solutions i can reference to? thanks Reply With Quote

+1  A: 

See the IMKTextInput Protocol Reference, you need to call insertText:replacementRange:

[client insertText:text replacementRange:NSMakeRange(NSNotFound, NSNotFound)];

where text is an instance of NSString.

Gregory Pakosz
A: 

i will try thanks a lot

ltp00507