Autohotkey 2: Save a screen rectangle to a file There is code by LinearSpoon to do this for Autohotkey 1.x here: