Grüezi Fredi,
aha, I see.
Hm, in that case you could:
1. Create a resizable stack "tUserRect". I colored it lightly red, looks nice

2. Set its blendlevel to 50 or whatever so it is partly transparent.
3. Put a button on it "Drag and resize this window and then click me"
4. Put this into the script of this button:
Code: Select all
on mouseup
set the dialogdata to the rect of this stack
close this stack
end mouseup
5. Call this stack whenever you want the user to define a rect on screen
...
modal stack "tUserRect"
put the dialogdata into the_users_rect_4_screenshot
## do whatever you wnat with the_users_rect_4_screenshot
...
6. Store this value for later use in a custom property or global variable or field or wherever
Get the picture? I do this in some of my projects and the users love it
Best
Klaus