Z
Z
Zo1oom2022-01-23 18:19:02
autohotkey
Zo1oom, 2022-01-23 18:19:02

Autohotkey - How to make a script that enters a double random (two words)?

On the Internet, I found such a script, for a simple, the same type of random house:

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

I need the opportunity to make a double random (two words)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
Tokumechimo, 2022-04-01
@Tokumechimo

something like this

;генерирует два пароля через пробел при нажатии `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

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question