# RightClicking to Force Quit an Application in iPhone

**URL:** <https://forums.eggplantsoftware.com/t/rightclicking-to-force-quit-an-application-in-iphone/3053>\
**Category:** Eggplant Functional\
**Created:** [February 17, 2012, 5:03pm UTC](https://forums.eggplantsoftware.com/t/rightclicking-to-force-quit-an-application-in-iphone/3053 "2012-02-17T17:03:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kathryn](https://forums.eggplantsoftware.com/letter_avatar_proxy/v4/letter/k/ed8c4c/32.png) [@kathryn](https://forums.eggplantsoftware.com/u/kathryn)\
**Post date:** [February 17, 2012, 5:03pm UTC](https://forums.eggplantsoftware.com/t/rightclicking-to-force-quit-an-application-in-iphone/3053/1 "2012-02-17T17:03:37Z")

</div>

How do I RightClick twice very quickly that I am able to Force Quit an application?

The codes below did not work:

```auto
Set the MouseClickDelay to .0000001
Set the MouseDoubleClickDelay to .0000001
SetOption MouseMoveSpeed, .0000001
Set the MouseMoveDelay to .0000001

```

In iPhone, an application gives a Technical Difficulties message and the only way for it to continue working properly is to force the application to quit. Manually you would tap the Menu control twice very quickly and it pops up another screen with application icons that you can force quit.

---

<div class="post-metadata">

**Author:** ![anon56468038](https://forums.eggplantsoftware.com/letter_avatar_proxy/v4/letter/a/7ba0ec/32.png) [@anon56468038](https://forums.eggplantsoftware.com/u/anon56468038)\
**Post date:** [February 20, 2012, 7:07am UTC](https://forums.eggplantsoftware.com/t/rightclicking-to-force-quit-an-application-in-iphone/3053/2 "2012-02-20T07:07:24Z")

</div>

Hi Kathryn.

If you want to double right click on iPhone to get the menu up, then the code below will work:

```auto
put the remoteworkinterval into mouse
put mouse
Set the RemoteWorkInterval to 0 
rightclick
rightclick
set the RemoteWorkInterval to mouse

```

The RemoteWorkInterval determines the minimum time eggPlant allows for the SUT to perform a task before sending the next event from a script. Setting the RemoteWorkInterval to 0 means the clicks occur almost instantly. Putting the current RemoteWorkInterval into a variable allows you to reset it to the previous setting later on in your script if you need to.

Information on the MouseClickDelay, MouseDoubleClickDelay, MouseMoveSpeed and MouseMoveDelay can be found on page 97 of the eggPlant Reference manual link below:

[http://www.testplant.com/documentation/MacDocumentation/Eggplant%20Reference.pdf](http://www.testplant.com/documentation/MacDocumentation/Eggplant%20Reference.pdf)

I hope this helps and thanks for using eggPlant.

---

<div class="post-metadata">

**Author:** ![kathryn](https://forums.eggplantsoftware.com/letter_avatar_proxy/v4/letter/k/ed8c4c/32.png) [@kathryn](https://forums.eggplantsoftware.com/u/kathryn)\
**Post date:** [February 22, 2012, 1:39pm UTC](https://forums.eggplantsoftware.com/t/rightclicking-to-force-quit-an-application-in-iphone/3053/3 "2012-02-22T13:39:57Z")

</div>

Thanks it worked 🙂
