F1::
Send, % GenerateRandomString()
GenerateRandomString(length = 5)
{
characters := "QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnm1234567890"
StringSplit, chars, characters
Loop, %length%
{
Random, rand, 1, 36
password .= chars%rand%
}
return password
}
Send {ENTER}
return
;генерирует два пароля через пробел при нажатии `F1`
F1::
Send, % GenerateRandomString()
GenerateRandomString(length = 12)
{
characters := "QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnm1234567890"
StringSplit, chars, characters
Loop, %length%
{
Random, rand, 1, 63
Random, rand1, 1, 63
password .= chars%rand%
password1 .= chars%rand1%
}
return password A_Space password1
}
Send {ENTER}
return