Home/ Reference/ Events

doc.GetUserArea(Message)

Has the user drag out a rectangle and returns it. The right primitive for "only process what's inside the box".

Signature

doc.GetUserArea(Message)

Notes

Has the user drag out a rectangle and returns it. The right primitive for "only process what's inside the box".

Python example (runnable)

Requires pywin32. The example assumes app / doc / page / layer are already connected. See Connection & Init
Python
rect = doc.GetUserArea("Marquee the area you want to process")

if rect is None:
    print("Cancelled by the user")
else:
    print("Marquee area: ", rect)

About this section: Events

Events — waiting for user interaction.

Other entries in this section