R
R
razdorunet2019-01-13 17:07:09
Swift
razdorunet, 2019-01-13 17:07:09

How to insert text outside the application in swift?

I'm trying to emulate typing using NSResponder() rummaged through the entire Internet but could not find a ready-made solution for the task under AppKit, maybe I'm digging in the wrong direction (((
I call the .insertText method the code executes without errors or warnings but there is no result
let responder = NSResponder ()
let text : NSString = "test insert string"
responder.insertText (text) If
anyone who has worked on similar tasks can share their experience of what I'm doing wrong I would be incredibly grateful.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question