function start()
input.setFocus()
getKeyStroke()
end
function getKeyStroke()
str = input.Text
if str == "" then return nil end
str = string.upper(str)
if string.match(keys,str) then
if display.Caption == "" then
display.Caption = str
input.Text = ''
else
display.Caption = display.Caption..str
input.Text = ''
end
else
input.Text = ''
end
end
f.show()
start()
input.onChange = getKeyStroke
Note: except for escape character '%'
EDIT: solve for escape character.
Change this line
Code:
if string.match(keys,str)
To:
Code:
if string.find(keys, str, 1, true)
_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum