I'm new to AutoHotKey and not familiar with its grammar. I've searched on the web but can't find usefully example.
Take a look at the following diagram.
+---+---+---+---+-------------------
| a | b | c | d | (1)
+---+---+---+---+-------------------
^
|
+---+---+---+---+-------------------
| a | b | c | d | (2)
+---+---+---+---+-------------------
^
|
+---+---+---+---+-------------------
| a | b | c | d | (3)
+---+---+---+---+-------------------
^
|
+---+---+---+---+-------------------
| a | b | c | d | (4)
+---+---+---+---+-------------------
^
|
I want to record some strings and navigate in them. For example, an array my_array was created when the program starts. If the user pressed ctrl+c, then the selected text (let's say it's string a) was copied into clipboard and also it was appended to my_array. If the user pressed another ctrl+c, then b was copied into clipboard and also it was appended to my_array. See (1), now a, b, c, d was appended to my_array and d is in clipboard. Now if the user press alt+left_arrow, then c was copied to clipboard, see (2). Now if the user pressed alt+left_arrow 2 times, a is in clipboard, see (3). The user can press alt+right_arrow 3 times to get back d in its clipboard, see (4). At this time, the user can still press ctrl+c to appended data to my_array and press alt+left_arrow or alt+right_arrow to move around in the array to get data back.
Actually to me this is easy to implement in some other familiar languages, but I have difficult to implement it in AutoHotKey. Anyone can help?
Thanks in advance.