sub mn
...
repeat
wait(100)
until uo.getglobal('qwerty1') or uo.getglobal('qwerty2') or ... etc ...
if uo.getglobal('qwerty1') then
...
if uo.getglobal('qwerty2') then
...
if uo.getglobal('qwerty3') then
...
...
end sub
sub m1
uo.setglobal('qwerty1','true')
wait(500)
uo.setglobal('qwerty1','false')
end sub
sub m2
uo.setglobal('qwerty2','true')
wait(500)
uo.setglobal('qwerty2','false')
end sub
...
Add m1, m2, m3 , ... etc ... to hotkeys as you see below and enjoy yourself.
sub main
while true
repeat
wait(100)
until uo.getglobal('qwerty1') or uo.getglobal('qwerty2')
if uo.getglobal('qwerty1') then
uo.say('Hello')
if uo.getglobal('qwerty2') then
uo.say('Good bye')
wend
end sub
sub m1
uo.setglobal('qwerty1','true')
wait(250)
uo.setglobal('qwerty1','false')
end sub
sub m2
uo.setglobal('qwerty2','true')
wait(250)
uo.setglobal('qwerty2','false')
end sub
1) Bind 1 with "m1" sub and 2 with "m2" sub (exec m1) and (exec m2)
2) Launch "main"
3) press 1 or 2 on your keyboard.