c# program for caps lock status
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace ConsoleApplication5
{
class Program
{
static void Main()
{
while (true)
{
Thread.Sleep(1000);
bool capsLock = Console.CapsLock;
Console.WriteLine(capsLock);
}
}
}
}
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace ConsoleApplication5
{
class Program
{
static void Main()
{
while (true)
{
Thread.Sleep(1000);
bool capsLock = Console.CapsLock;
Console.WriteLine(capsLock);
}
}
}
}
result:
No comments