AutoHotKey for auto-saving an untitled project

I have had many instances where I forgot that initial saving of a project after creating it. The problem is that the auto-save feature only works when you have saved the project manually once.

I created a simple little AutoHotKey script that will check for any window starting with “Cubase” and ending with “Untitled1” and pressed control + s to prompt you to save it :slight_smile:

Just copy it to a new .ahk file. You can move it to your start-up folder so it launches automatically on start-up.

Hope this is helpful for some of you!

#SingleInstance force
#Requires AutoHotkey v2

SetTimer CheckWindow, 10000  ; Check every 10 seconds

CheckWindow() {
    SetTitleMatchMode "RegEx"
    WinTitle := "^Cubase.*Untitled1$" 

    if (WinExist(WinTitle)) {
        WinActivate  ; Activate the window
        SendEvent("^s")   ; Press Ctrl+S
    }
}
1 Like