# Tying autohotkey script output variables into BMTP

**URL:** <https://forum.bome.com/t/tying-autohotkey-script-output-variables-into-bmtp/4514>\
**Category:** Bome Products\
**Created:** [September 2, 2022, 8:48am UTC](https://forum.bome.com/t/tying-autohotkey-script-output-variables-into-bmtp/4514 "2022-09-02T08:48:48Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![str8.7enz](https://forum.bome.com/letter_avatar_proxy/v4/letter/s/e99b99/32.png) [@str8.7enz](https://forum.bome.com/u/str8.7enz)\
**Post date:** [September 2, 2022, 8:48am UTC](https://forum.bome.com/t/tying-autohotkey-script-output-variables-into-bmtp/4514/1 "2022-09-02T08:48:48Z")

</div>

i came across a useful script which allows me to capture a portion of the screen… and then monitor for a bitmap image upon a keypress.  
If the captured bitmap exists on the monitor it outputs the mouse coordinates

i would like to implement the outputted coordinates from the autohotkey script into BMTP

Is there a method to get the output of the AHK into BMTP?

my use case is dealing with FXplugin presets in a DAW scenario, where the FXplugins show up in varying positions on the monitor… and with some FXplugins presets are not directly accessible via midi… and require a mouse press to access preset menu… hence this roundabout method of accessing FXpreset’s

---

<div class="post-metadata">

**Author:** ![str8.7enz](https://forum.bome.com/letter_avatar_proxy/v4/letter/s/e99b99/32.png) [@str8.7enz](https://forum.bome.com/u/str8.7enz)\
**Post date:** [September 2, 2022, 9:06am UTC](https://forum.bome.com/t/tying-autohotkey-script-output-variables-into-bmtp/4514/2 "2022-09-02T09:06:51Z")

</div>

i just realised the answer was staring right in front of me!!  
the Autohotkey script is the answer… dont know why i asked such a silly question lol

---

<div class="post-metadata">

**Author:** ![str8.7enz](https://forum.bome.com/letter_avatar_proxy/v4/letter/s/e99b99/32.png) [@str8.7enz](https://forum.bome.com/u/str8.7enz)\
**Post date:** [September 2, 2022, 9:10am UTC](https://forum.bome.com/t/tying-autohotkey-script-output-variables-into-bmtp/4514/3 "2022-09-02T09:10:35Z")

</div>

should anyone be interested in the AHKscript…  
it can be found here [FindText - Capture screen image into text and then find it - AutoHotkey Community](https://www.autohotkey.com/boards/viewtopic.php?f=6&t=17834)

---

<div class="post-metadata">

**Author:** ![SteveC](https://forum.bome.com/user_avatar/forum.bome.com/stevec/32/8250_2.png) [@SteveC](https://forum.bome.com/u/SteveC)\
**Post date:** [September 2, 2022, 3:11pm UTC](https://forum.bome.com/t/tying-autohotkey-script-output-variables-into-bmtp/4514/4 "2022-09-02T15:11:36Z")

</div>

Interesting. A couple of questions

1. How do you call your script with MT Pro?
2. How are the coordinates returned to MT Pro?

Steve Caldwell  
Bome Customer Care

* * *
_Also available for paid consulting services: bome@sniz.biz_

---

<div class="post-metadata">

**Author:** ![str8.7enz](https://forum.bome.com/letter_avatar_proxy/v4/letter/s/e99b99/32.png) [@str8.7enz](https://forum.bome.com/u/str8.7enz)\
**Post date:** [September 2, 2022, 7:25pm UTC](https://forum.bome.com/t/tying-autohotkey-script-output-variables-into-bmtp/4514/5 "2022-09-02T19:25:24Z")

</div>

I have yet to implement that script into BMTP and im only guessing here but  
question 1  
i believe a script can be converted into a exe(using compile)… which allows you to tie BMTP using a exe  
question 2  
the coordinates and mouse movements and mouse clicks are all done via the script itself(meaning that peice of code needs to be implemented into the working script itself )

thus only the midi in is required by the user to execute the script via the executable file \*shrugs  
Edit: also im guessing that the script.exe would need to be removed after the execution is carried out  
to prevent multiple scripts being called multiple time \*shrugs

\*\*please know im a complete noob in this AHK… i had a need, i searched for it… and found these useful scripts… to bring everything together im still trying to work this out LOL… but i believe the necessary information to implement this is there.

---

<div class="post-metadata">

**Author:** ![str8.7enz](https://forum.bome.com/letter_avatar_proxy/v4/letter/s/e99b99/32.png) [@str8.7enz](https://forum.bome.com/u/str8.7enz)\
**Post date:** [September 2, 2022, 7:34pm UTC](https://forum.bome.com/t/tying-autohotkey-script-output-variables-into-bmtp/4514/6 "2022-09-02T19:34:34Z")

</div>

here are 2 examples i found on that AHK forum  
of how this script works and how to implement necessary clicks and mouse positions etc

[![](https://forum.bome.com/uploads/default/original/2X/8/8d330499e8e4f16310bf17b80111672e4eec7fcc.jpeg "🔥🔍Discover the coolest way to find and click images and text with this amazing tool!🔥") ](https://www.youtube.com/watch?v=aWRAtvJq9ZE)

[![](https://forum.bome.com/uploads/default/original/2X/6/6ab962ea0f9d9115d12a0e5fbba610f443187e14.jpeg "How to Automate Clicking an image with AutoHotkey") ](https://www.youtube.com/watch?v=k8D95Wb5Cl4)

---

<div class="post-metadata">

**Author:** ![SteveC](https://forum.bome.com/user_avatar/forum.bome.com/stevec/32/8250_2.png) [@SteveC](https://forum.bome.com/u/SteveC)\
**Post date:** [September 2, 2022, 8:59pm UTC](https://forum.bome.com/t/tying-autohotkey-script-output-variables-into-bmtp/4514/7 "2022-09-02T20:59:29Z")

</div>

OK, however you will need to send the mouse coordinates to MT Pro using MIDI messages so you will need to add MIDI OUT capabilities to your script.

Steve Caldwell  
Bome Customer Care

* * *
_Also available for paid consulting services: bome@sniz.biz_

---

<div class="post-metadata">

**Author:** ![str8.7enz](https://forum.bome.com/letter_avatar_proxy/v4/letter/s/e99b99/32.png) [@str8.7enz](https://forum.bome.com/u/str8.7enz)\
**Post date:** [September 2, 2022, 9:38pm UTC](https://forum.bome.com/t/tying-autohotkey-script-output-variables-into-bmtp/4514/8 "2022-09-02T21:38:06Z")

</div>

i believe the script itself handles all mouse movements and mouse clicks etc…  
it only requires a user to press a midi button to execute the script… & by using the outgoing/executable file… it would call the script into action  
the script itself does all the finding image/coordinates/mouse clicks etc based on your premade script

i dug a little deeper and found another video by the same user who expanded on the script and providing a GUI to create the preset… and then export it to a .AHK (which needs to be compiled as a Exe)  
The automate my task GUI script can be found in the description of this video

[![](https://forum.bome.com/uploads/default/original/2X/7/75327c1787be8e7248b07191bb2f7e09ffd2e78a.jpeg "Intro to: Automate my Task") ](https://www.youtube.com/watch?v=0TkuIiUd6t0)

---

<div class="post-metadata">

**Author:** ![SteveC](https://forum.bome.com/user_avatar/forum.bome.com/stevec/32/8250_2.png) [@SteveC](https://forum.bome.com/u/SteveC)\
**Post date:** [September 2, 2022, 9:47pm UTC](https://forum.bome.com/t/tying-autohotkey-script-output-variables-into-bmtp/4514/9 "2022-09-02T21:47:09Z")

</div>

Very nice, I hope you caught the caveats about issues if you change screen resolution, scaling etc. Very nice but not 100 percent reliable. I may give it a try someday.

Steve Caldwell  
Bome Customer Care

* * *
_Also available for paid consulting services: bome@sniz.biz_
