So recently I decided to make a AHK script for Premiere Pro, but for some reason, the simplest code is giving me trouble. So at first, ImageSearch was working fine, doing it's job and then after a few runs of the script, it just breaks. All of the sudden it doesn't find the image anymore, and at some points AHK wouldn't even send out inputs. Like CTRL+D. I got no idea why it's doing this, but AHK has been overall a pretty bad experience so far. Extremely unstable and keeps breaking. If anyone could help me out that'd be great. I haven't lost all hope yet.
Code: Select all
#SingleInstance ;only one instance of this script may run at a time! #IfWinActive ahk_exe Adobe Premiere Pro.exe F1:: send, +7 sleep 5 send, +f sleep 5 SendRaw, Cross Dissolve sleep 5 ImageSearch, OutputX, OutputY, 0, 0, 1919, 1079, C:\AHK\images\cross_dissolve_icon.PNG sleep 5 MouseMove, OutputX, OutputY, 50