# How to reference the rectangle mentioned in the config script

**URL:** <https://forums.eggplantsoftware.com/t/how-to-reference-the-rectangle-mentioned-in-the-config-script/8791>\
**Category:** Uncategorized\
**Created:** [April 1, 2024, 6:04am UTC](https://forums.eggplantsoftware.com/t/how-to-reference-the-rectangle-mentioned-in-the-config-script/8791 "2024-04-01T06:04:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thanagaraj](https://forums.eggplantsoftware.com/letter_avatar_proxy/v4/letter/t/e495f1/32.png) [@Thanagaraj](https://forums.eggplantsoftware.com/u/Thanagaraj)\
**Post date:** [April 1, 2024, 6:04am UTC](https://forums.eggplantsoftware.com/t/how-to-reference-the-rectangle-mentioned-in-the-config-script/8791/1 "2024-04-01T06:04:26Z")

</div>

Hello Team,

I have created config as below:

 ![image](https://forums.eggplantsoftware.com/uploads/default/original/1X/fe001751a9f91f476449aeb5c20be9bd3f9c7910.png)

Now I am refering the same in another script. But I am not getting whatever rectangle set in the config.

 ![image](https://forums.eggplantsoftware.com/uploads/default/original/1X/ff7b8ab53eb6f9aab54165d4d442daf293cf517a.png)

 ![image](https://forums.eggplantsoftware.com/uploads/default/original/1X/6288eb040cdf550539c8aaeed927fb46eb5ea5b7.png)

---

<div class="post-metadata">

**Author:** ![Thanagaraj](https://forums.eggplantsoftware.com/letter_avatar_proxy/v4/letter/t/e495f1/32.png) [@Thanagaraj](https://forums.eggplantsoftware.com/u/Thanagaraj)\
**Post date:** [April 1, 2024, 11:50am UTC](https://forums.eggplantsoftware.com/t/how-to-reference-the-rectangle-mentioned-in-the-config-script/8791/2 "2024-04-01T11:50:40Z")

</div>

I am not sure whether it’s optimal soultion:  
I have updated the code as below and working.  
 ![image](https://forums.eggplantsoftware.com/uploads/default/original/1X/fa6f263b397cbf4fe4e34c92824181dd6b821283.png)

![image](https://forums.eggplantsoftware.com/uploads/default/original/1X/eabc2d5f3fd65715d30f236a4de5e5204247916f.png)

---

<div class="post-metadata">

**Author:** ![shenpeng](https://forums.eggplantsoftware.com/letter_avatar_proxy/v4/letter/s/b77776/32.png) [@shenpeng](https://forums.eggplantsoftware.com/u/shenpeng)\
**Post date:** [April 7, 2024, 8:31am UTC](https://forums.eggplantsoftware.com/t/how-to-reference-the-rectangle-mentioned-in-the-config-script/8791/3 "2024-04-07T08:31:08Z")

</div>

You should use like this:  
log Project\_details\_screen().leftmenuSection

---

<div class="post-metadata">

**Author:** ![DaveHester](https://forums.eggplantsoftware.com/user_avatar/forums.eggplantsoftware.com/davehester/32/104_2.png) [@DaveHester](https://forums.eggplantsoftware.com/u/DaveHester)\
**Post date:** [April 10, 2024, 12:43pm UTC](https://forums.eggplantsoftware.com/t/how-to-reference-the-rectangle-mentioned-in-the-config-script/8791/4 "2024-04-10T12:43:53Z")

</div>

Here are a couple of links that I hope you will find useful:

> **[Parameters and Results | EPF Docs](https://docs.eggplantsoftware.com/studio/stk-parameters-and-results/#return-command)**
>
> Messages are identified by a single word — the message name — but they can also include additional information in the form of parameters. Parameters are values that are passed to commands or functions. These commands or functions may be custom...

> **[Using the ScreenPart Function Handler | EPF Docs](https://docs.eggplantsoftware.com/studio/epf-screenpart/)**
>
> Setting the searchRectangle global property or image search property in the Eggplant Functional test automation tool based on the dimensions of the screen of your system under test (SUT) can improve the performance and accuracy of optical character...
