 counter_successfully := ""
 logfile_counter := 1
 GuiControl, Disable, Start
-GuiControl, Disable, RenamingMask
-GuiControlGet, RenamingMask
+GuiControl, Disable, RenamingMaskNumber
+GuiControlGet, RenamingMaskNumber
 FileSelectFolder, folder_demofiles,, 0, Please select your folder where your demofiles are. `nAll files with the ending *.dem will be renamed.
 if ErrorLevel=0
 {

	{
		MsgBox % "No files found!"
		GuiControl,, ProgressBar, 0
		GuiControl, Enable, RenamingMask
		GuiControl, Enable, Cancel
		GuiControl, Enable, Start
		return

﻿; ===================================================================================
; AHK Version .........: 1.1.24.01
; Version .............: 1.04 (AHK)
; Release Date ........: 2016-09-23
; GitHub ..............: https://github.com/chao-samu/demo-file-renamer
; Author ..............: chao-samu
;------------------------------------------------------------------------------------
