# Move Mouse Position vertically (Y) to a fixed point, for any (X)

**URL:** <https://community.folivora.ai/t/move-mouse-position-vertically-y-to-a-fixed-point-for-any-x/24317>\
**Category:** Feature Requests\
**Created:** [October 15, 2021, 9:22pm UTC](https://community.folivora.ai/t/move-mouse-position-vertically-y-to-a-fixed-point-for-any-x/24317 "2021-10-15T21:22:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Trick](https://community.folivora.ai/letter_avatar_proxy/v4/letter/t/5fc32e/32.png) [@Trick](https://community.folivora.ai/u/Trick)\
**Post date:** [October 15, 2021, 9:22pm UTC](https://community.folivora.ai/t/move-mouse-position-vertically-y-to-a-fixed-point-for-any-x/24317/1 "2021-10-15T21:22:50Z")

</div>

When working on my Audio workstation, I would like to have my Mouse [MOVE] to the TIME ruler when I invoke my trigger this is always at (412.000 Y co-ordinate) on my monitor.

It doesn't matter what the X value is, I basically want the mouse to go STRAIGHT UP ! from where it is, to X = unchanged, Y = 412.000

---

<div class="post-metadata">

**Author:** ![Dirk](https://community.folivora.ai/letter_avatar_proxy/v4/letter/d/87869e/32.png) [@Dirk](https://community.folivora.ai/u/Dirk)\
**Post date:** [October 17, 2021, 5:05am UTC](https://community.folivora.ai/t/move-mouse-position-vertically-y-to-a-fixed-point-for-any-x/24317/2 "2021-10-17T05:05:37Z")

</div>

Try this with „Run Apple Script…":

```auto
use framework "Foundation"

set pt to current application's NSEvent's mouseLocation()
set y of pt to 412.0
current application's CGWarpMouseCursorPosition(pt)
```

---

<div class="post-metadata">

**Author:** ![Trick](https://community.folivora.ai/letter_avatar_proxy/v4/letter/t/5fc32e/32.png) [@Trick](https://community.folivora.ai/u/Trick)\
**Post date:** [October 19, 2021, 9:17pm UTC](https://community.folivora.ai/t/move-mouse-position-vertically-y-to-a-fixed-point-for-any-x/24317/3 "2021-10-19T21:17:57Z")

</div>

Hi Dirk,

Thanks for responding, but I’m not sure I’m clever enough to know how to use the information you gave me!

Is there a mod to BTT that would do what I would like to achieve?

Trick

---

<div class="post-metadata">

**Author:** ![Dirk](https://community.folivora.ai/letter_avatar_proxy/v4/letter/d/87869e/32.png) [@Dirk](https://community.folivora.ai/u/Dirk)\
**Post date:** [October 19, 2021, 9:40pm UTC](https://community.folivora.ai/t/move-mouse-position-vertically-y-to-a-fixed-point-for-any-x/24317/4 "2021-10-19T21:40:22Z")

</div>

BTT has "Run Apple Script…" Actions (asynchronous or blocking) for these individual requirements. Take one of them and copy the code into it. That is all you need to do.

---

<div class="post-metadata">

**Author:** ![Trick](https://community.folivora.ai/letter_avatar_proxy/v4/letter/t/5fc32e/32.png) [@Trick](https://community.folivora.ai/u/Trick)\
**Post date:** [October 19, 2021, 9:43pm UTC](https://community.folivora.ai/t/move-mouse-position-vertically-y-to-a-fixed-point-for-any-x/24317/5 "2021-10-19T21:43:49Z")

</div>

> [@Dirk](#):
>
> ```auto
> use framework "Foundation"
> 
> set pt to current application's NSEvent's mouseLocation()
> set y of pt to 412.0
> current application's CGWarpMouseCursorPosition(pt)
> 
> ```

Hi Dirk,  
Yes I've just been playing and found the RUN AppleScript bit....

It works, I've added in a LEFT Click (down) then I can drag left or right easily ! Thanks
