How do I type/send keyboard keys with AppRobotic?

How do I type/send keyboard keys with AppRobotic?

QA 0

The Type() method in AppRobotic can be used to send keyboard strokes to the active element on the screen.

Python Code:

import win32com.client
x = win32com.client.Dispatch("AppRobotic.API")

x.Type("This is a test.")
x.Type("{TAB}")
x.Type("This is another test.")
x.Type("{ENTER}")