Owlboy
Not enough ratings
Cannon Challenge %100 AutoHotkey Script
By offfffffff
An AutoHotkey script that attempts the Cannon Challenge and usually gets all the coins and completes it.
   
Award
Favorite
Favorited
Unfavorite
Intro
This is a script that completes the cannon challenge. I used apocalyptechs python code which uses xdotool from here[apocalyptech.com] as a base. If you are running Linux you can use that. If you are on Windows read on.
AutoHotkey
You need to install autohotkey if you don't have it. You can get it here[www.autohotkey.com] It lets you create keyboard macros and complicated input sequences.
Disclaimer
Some people, frustrated with the scripts success ratio, edited the script a bit. I've tested these and found them to be not better then mine on my PC BUT lots of people commented that they worked better then mine. This leads me to believe that script and/or the game behaves differently on different systems. I'm including links to other scripts here. Use them if mine is not working for you. As these codes and mine are really old it is possible that the game updates broke them. But they can still be used as a base. You have the tools to create a working script for your pc, game resolution and version. Just tweak the values for button presses and have fun trying to figure it out.
The code
Here is the code. Copy and paste it on an empty text document and save it as an .ahk file.

^r:: Reload Sleep 1000 ^j:: Click down right Sleep 100 Click up right Sleep, 300 Click down Sleep 50 Click up Sleep, 5750 Send, {d Down} Sleep, 1300 Send, {d Up} Sleep, 500 Send, {a Down} Sleep, 300 Send {a Up} Sleep, 500 Send, {a Down} Sleep, 1500 Send, {a Up} Sleep, 3750 Send, {a Down} Sleep, 1100 Send, {a Up} Sleep, 200 Send, {a Down} Sleep, 400 Send, {a Up} Sleep 100 Send, {a Down} Sleep, 400 Send, {a Up} Sleep, 100 Send, {a Down} Sleep, 400 Send, {a Up} Sleep, 1700 Send, {a Down} Sleep, 1000 Send, {a Up} Sleep, 400 Send, {a Down} Sleep, 300 Send, {a Up} Sleep, 1000 Send, {d Down} Sleep, 1200 Send, {d Up} Sleep, 1100 Send, {d Down} Sleep, 700 Send, {d Up} Sleep, 1000 Send, {d Down} Sleep, 900 Send, {d Up} Sleep, 500 Send, {d Down} Sleep, 300 Send, {d Up} Sleep, 1700 Send, {d Down} Sleep, 800 Send, {d Up} Sleep, 500 Send, {d Down} Sleep, 400 Send, {d Up} Sleep, 200 Send, {d Down} Sleep, 400 Send, {d Up} Sleep, 1900 Send, {a Down} Sleep, 600 Send, {a Up} Sleep, 400 Send, {a Down} Sleep, 400 Send, {a Up} Sleep, 400 Send, {a Down} Sleep, 400 Send, {a Up}
Running the script
Double click the .ahk file you created to open it. You should see the AutoHotkey logo on your windows notification area. Then switch back to the game. Make sure that keyboard and mouse controls are enabled and approach the cannon. Once you see the "press right click to enter" icon use "Ctrl+j" to start the script. If the script fails for some reason press "Ctrl+r" to reload it, get in front of the cannon and run it again. For some reason (poor accuracy of sleep commands, autohotkey, the game) the script is not %100 accurate but it should not take more then 5 tries to get it right. Repeat until it's succesfull.
32 Comments
JoeMD 2 Oct, 2024 @ 8:51am 
I just can't get this to work. Tried all three and nothing.
Black Sheep 20 Jul, 2023 @ 4:55pm 
Ok, this might just support the 'Every copy of Owlboy is personalised' theory, but I just beat the game and after reopening the save and going through the Eternal Sanctuary , keyboard mode just forced itself on after leaving. I can now jump and enter the cannon with my keyboard, meaning the auto-scripts work.

I have no idea what's going on.
Black Sheep 20 Jul, 2023 @ 9:18am 
Having a real hard time getting this to work. Can't /not/ use a controller as there's no Jump on keyboard apparently, and running these scripts just causes Otus to spin instead of enter the cannon - and as I can't enter manually and spin at the same time, nothing seems to work. How do I remove the automatic launch from the script, or fix keyboard controls?
e_rhymes_d 23 Jan, 2022 @ 5:09am 
thanks for this - what a ridiculously unfun minigame.
Cley Faye 3 Oct, 2021 @ 11:01am 
This is great. I'm usually all in favor of challenging stuff, but this minigame is only challenging because it's "fast paced tight tank control flying with poor camera that requires dying and retrying".

If at some point they change it to be skill-based, I'll come back to it. In the meantime, thanks for the tas.
Thing 4 Sep, 2021 @ 9:20am 
so whens the "Every copy of Owlboy is Personalized" creepypasta lol
thank u for the script
zimzat 18 Aug, 2020 @ 1:08pm 
One thing that throws off the script timing is screen resolution. I have a 2K monitor and none of the scripts were working reliably. After changing my desktop resolution to 1920x1080 there were much more accurate and consistent results, at which point it really was closer to half a dozen to a dozen tries to get all of the rings.

A lot of the variance for timing is due to AutoHotkey's Sleep being based on system resource availability. If it takes 20 units longer for the game to say "Okay OS, you can let another program do something" then that `Sleep 300` time could become `320-340` which then throws off all of the subsequent timings as well.
j0hnnyclaymore 18 Jul, 2020 @ 11:47am 
For all those players that still try all three scripts and fail:

- script 2 worked well for me, but it stops short before the end. you need to press left key to get to the end (only one time)

Dont know why script author did this ;-) if you press right shorty before you get the last coins as well.https://pastebin.com/SsSG3nCn
offfffffff  [author] 7 Jul, 2020 @ 8:52am 
Yo MobiusPizza. Unless the developer added some randomness on each try to spite us you can use these scripts as a base. Launch otis and watch where he crashes, then tweak the script until he manages to do it. This is required as I said the game seems to behave differently on different computers. But I guarantee the process of tweaking the script is much more fun than actually trying to do it legit, albeit a bit less rewarding.
MobiusPizza 7 Jul, 2020 @ 8:45am 
I can't get it no matter how much I try it. Otus keeps crcashing against everything. I only managed to get to the end once but I missed the last 3 rings. Damn I hate this part of the game.