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 & InitPython
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.
- This section has 4 entries; this is one of them.
- See the full section index: Events