Yes you can, you must use ActiveX.
Its operation is described in the RPA Developer help, in the topic “Programming with Cartes, ActiveX”.
Here is a Python code example:
class Bloc de notas:
def init (self):
self.cartes = win32com.client.Dispatch (“Cartes.CartesObj”)
self.cartes.execute (‘Balloon (“Loading notepad.rpa”);’)
self.cartes.execute ( ‘abierto (“notepad.rpa”);’)