# \[eggPlant Functional\] Image Coordinates; Search Rectangle

**URL:** <https://forums.eggplantsoftware.com/t/eggplant-functional-image-coordinates-search-rectangle/1033>\
**Category:** Eggplant Examples\
**Created:** [February 5, 2004, 8:48am UTC](https://forums.eggplantsoftware.com/t/eggplant-functional-image-coordinates-search-rectangle/1033 "2004-02-05T08:48:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![JonathanOSX](https://forums.eggplantsoftware.com/user_avatar/forums.eggplantsoftware.com/jonathanosx/32/4_2.png) [@JonathanOSX](https://forums.eggplantsoftware.com/u/JonathanOSX)\
**Post date:** [February 5, 2004, 8:48am UTC](https://forums.eggplantsoftware.com/t/eggplant-functional-image-coordinates-search-rectangle/1033/1 "2004-02-05T08:48:35Z")

</div>

Here are two usefull little scripts. The first script is a function that will give you the full screen coordinates (not just the hot spot) for a given image.

The second script is a command that uses the first script to restrict the search region of your script based on an image name. It also takes an optional integer “fudge factor” by which to increase the search area by that amount in each direction. After calling this script be sure to return the search rectangle to full screen when you are finished by calling

```auto
setSearchRectangle

```
