Code: Select all
list1= e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, :D
listA:=strSplit(list1, ",") ; A = Array
~e::
random, choice, 1, % listA.maxIndex()
response:=trim(listA[choice])
sendRaw, %response%
return
A) There's a better option than sendRaw which would input the keystroke without triggering the hotkey again.
B) There's a way to have it produce a random number between 1 and 100, and if it's 1 then it sends a smiley. Else it does nothing.
I'm more a fan of the second option, but I bet the first one will be way faster and easier (if it's possible). What do you think?