Monitor says "no signal", when i click it comes back then 2nd click it goes blank again

rrahel

Commendable
Apr 9, 2016
57
0
1,640
i5 6500
8GB DDR4 Kingston
ASUS B150M
2TB Seagate HDD
Corsair VS650
Viewsonic VA1912w

My monitor randomly blinks and says Analog but yesterday it goes blank saying "no signal" while the pc is on and monitor orange light is on.
When I press any key on the keyboard monitor display comes back but when I click anything on desktop it again goes blank and says "No signal"

I again press anything on keyboard and it turns back on but when I click on anything it again goes blank and says "No signal". I changed the VGA cable but it continues.

This continues for about 15-20 times then finally it don't goes to blank when I click. At the moment it is working but I want to know what is the solution to this.