Code: Select all
^!+.::
Array := Object()
Array[j] := A_LoopField
Array[j, k] := A_LoopReadLine
ArrayCount := 0
Loop, Read, path\file ;this is the line I'd like to change to access an unsaved notepad rather than read from a saved file.
{
ArrayCount += 1
Array[ArrayCount] := A_LoopReadLine
}
Loop %ArrayCount%
{
MsgBox % Array[A_Index]
}
Return