[Mod edit: Added translation of the text above:]
DeepL wrote:I'm having problems now, I want to write using loop or for to shorten the code size.
Code: Select all
MsgBox Self_array1[A_Index] . Self_array2[A_Index] . Self_array1[A_Index] . "_de"
Code: Select all
Global delay1 := ""
Global delay2 := ""
Global delay3 := ""
Global delay4 := ""
Global delay5 := ""
Global delay6 := ""
Global delay7 := ""
Global delay8 := ""
Global colour1 := ""
Global colour2 := ""
Global colour3 := ""
Global colour4 := ""
Global colour5 := ""
Global colour6 := ""
Global colour7 := ""
Global colour8 := ""
Self_array1 := ["Q", "W", "E", "R", "A", "S", "D", "F"]
Self_array2 := ["1", "2", "3", "4", "5", "6", "7", "8"]
Self_array3 := ["delay1","delay2","delay3","delay4","delay5","delay6","delay7","delay8"]
Self_array4 := ["colour1","colour2","colour3","colour4","colour5","colour6","colour7","colour8"]
delay%[A_Index]% := IniRead(FileName, Self_array1[A_Index] . "_dd", "de")
colour%[A_Index]% := IniRead(FileName, Self_array1[A_Index] . "_cc", "cr")
Thank you everyone