My Tweak is running inside SpringBoard, I want it be able to input text to first responder of the frontmost application.I tried the code below, but it only works for the subviews of SpringBoard, such as the search bar on of home screen, but not any other apps, does anyone know how to do it?
@interface UIKeyboardImpl : NSObject
+(UIKeyboardImpl*)sharedInstance;
-(void)addInputString:(NSString*)string;
@end
void input(const char * text)
{
UIKeyboardImpl * keyboardImpl = [UIKeyboardImpl sharedInstance];
[keyboardImpl addInputString:[NSString stringWithUTF8String:text]];
}