Utilizing Command Prompt for Time Display, QR Code Generation, and Mouse Interaction on a Black Screen

Omkar Patil
3 min readJul 16, 2023

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.

Installing qrenco

Step 2 : To create QR code write the following cmd “curl qrenco <url>”

To generates QR code

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.

Installing gpm software

starting the gpm services

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.

Time of date cmd
time to pull docker image

--

--