I just wanted to know if there were ways to simulate inputs (from keyboard) or maybe a way to insert any character a bit like with alt code but using luascript.
Edit: I found that there was a way with santa_ryan's control suit . But maybe you guys know other ways ?
function makeString(l)
if l < 1 then return nil end -- Check for l < 1
local s = "" -- Start string
for i = 1, l do
s = s .. string.char(math.random(32, 126)) -- Generate random number from 32 to 126, turn it into character and add to string
end
return s -- Return string
end
function Update()
SKIN:Bang('!SetVariable', 'Rand', makeString(1))
end
This code returns into the Rand variable of your skin, a randomly chosen char.
LGP123 wrote:I just wanted to know if there were ways to simulate inputs (from keyboard) or maybe a way to insert any character a bit like with alt code but using luascript.
Edit: I found that there was a way with santa_ryan's control suit . But maybe you guys know other ways ?
Can you indicate the skin you found, so as to allow others to have already a solution?