I would like to know if it is possible to make a kind of FlashCards game with AHK.
For example, from the following list, for English-Spanish words:
House - Casa
Tree - Árbol
Sun - Sol
I would like random words to appear (example, Tree), and by pressing a hotkey (ex. F1), you can see the back of the card (árbol). By pressing the hotkey again (eg F1), or perhaps another, it propose a new word, and so on.
Someone asked a few days ago for something similar, but only for random words to appear. I guess it would be modify a little, to obtain my goal.
Thanks in advance.
Code: Select all
#SingleInstance force
#NoEnv
WordList := [ "mi", "mimi", "mami", "merendero", "moligerar", "mariachi" ]
RepeatCheck = 0
WordGui:
{
;Generate random word
Random, WordNum, 1, WordList.MaxIndex()
;Avoid repeating a word 2 times in a row
if (RepeatCheck = WordNum)
Goto, WordGui
RepeatCheck = %WordNum%
;Create GUI
Gui, -MinimizeBox -MaximizeBox
Gui, Color, 995b0dq
Gui, Font, s46, Times New Roman
Gui, -MinimizeBox -MaximizeBox
Gui, Add, Text, cF7F305, % WordList[WordNum]
Gui, Add, Button, W100 cCFF305 Default gButtonOK32, OK
Gui, Show,, Speech Test
return
}
ButtonOK32:
{
Gui, Destroy
Goto, WordGui
}
Return