Utilizing Command Prompt for Time Display, QR Code Generation, and Mouse Interaction on a Black Screen
Command Prompt (CMD) is a powerful tool that allows users to interact with their computer’s operating system through a command-line interface. While CMD is primarily known for executing commands and performing administrative tasks, it can also be used for various other purposes. In this article, we will explore three interesting tasks using CMD: displaying the system time, generating QR codes, and interacting with the mouse on a black screen
1.Generating QR Codes:
QR codes are two-dimensional barcodes that can store information such as URLs, text, or contact details.
step1: install the qrenco to create QR code of any url in the above picture i shown how to install this and use.
Step 2 : To create QR code write the following cmd “curl qrenco <url>”
2.Interacting with the Mouse on a Black Screen:
Interacting with the mouse on a black screen can be useful in scenarios where the graphical interface is unavailable or when you want to perform specific tasks without visual distractions. “gpm” refers to the General Purpose Mouse server, which is a software package in Linux that allows users to use their mouse in a text-based environment. It enables mouse support on the console.
starting the gpm services
after starting the services we can use mouse on black screen
3. Show the time of the cmd process :
To see the time of command process we just need to write “time” at the starting of every command.