Just yesterday I installed AHK.
Although I have programmed in BASIC, that was way back in around 1980 for the Vic 20.
So, I hope some kind soul can assist. Thank you.
I want to print a random word or sentence to the screen when the user enters the 1 key.
Ultimately there could be thousands of words/sentences that will be printed to the screen.
Here is a screen dump of what I have coded, but I have no idea how to create a random number generator, so that the number generated will send a random word/sentence to the screen.
Please assist and describe the process in very simple language.
Thank you, and hooroo for now.
Paul.
Code: Select all
one() {
Send, Happy
Send, {enter}
}
two() {
Send, Disparaged
Send, {enter}
}
three() {
Send, You
Send, {enter}
}
four() {
Send, heaviness
Send, {enter}
}
five() {
Send, sour
Send, {enter}
}
1::one()
2::two()
3::three()
4::four()
5::five()
6::exitapp]