How can I put a Console Write Command to String [closed]
Maybe this question is silly, but I hope someone can help me out. I'm trying to get the output of this command to a string.
for (int i = 48; i < 123; i++)
{
int keyState = GetAsyncKeyState(i);
if (keyState == 32769)
{
Console.Write((char)i);
}
}
The plan behind this is to get the string and do a regex. The regex should check the string and if the regex matches with the string it should execute a command.
from Recent Questions - Stack Overflow https://ift.tt/3EHxqe2
https://ift.tt/eA8V8J
Comments
Post a Comment