+ 5

Blue light filter using Python or C++

Hola Solo'ers. I wanted to make an open source project where I would be making a simple blue light filter with brightness and color adjustments. Its planned to be cross platform, i.e, Windows as well as Linux. I've figured the way, which is to overlay a transparent layer over the screen, and adjusting its properties would make screen look bright or dull or yellowish, i.e, its gamma n all. But the problem is, I cannot get a way to do that. I thought of PyQt in which there would be a window with transparency and always on top property, but I want to read the keyboard and mouse for the active window, and not the overlay window. So, can anybody suggest a way I can overlay the screen without affecting the active window or desktop behind it? Any programming language is okay. I just want the way I can do that. [EDIT] I have found "xrandr" in Linux which changes the way OS interacts with the screen. It's accomplishing my task, but its only for specific linuxes and also I want something for Windows.

29th Dec 2020, 10:49 AM
Charitra
Charitra - avatar
19 ответов
+ 4
Thank you Aradhay Mathur Alphin K Sajan for your helps. I have found a solution that works only for Linux systems and that too specific ones. It uses the built in "xrandr" tool that can change the way the OS interacts with the screen. I have been able to do what I wanted but only in Linux. If you get the solution for Windows, your suggestions are always welcomed. By the way, thank you so much
29th Dec 2020, 12:23 PM
Charitra
Charitra - avatar
+ 3
Chiku I think you should use winreg module to edit registry and change HKEY_CURRENT_USER\Control Panel\Desktop
29th Dec 2020, 12:44 PM
Aradhay Mathur
Aradhay Mathur - avatar
29th Dec 2020, 10:57 AM
Alphin K Sajan
Alphin K Sajan - avatar
29th Dec 2020, 11:03 AM
Alphin K Sajan
Alphin K Sajan - avatar
+ 2
Chiku I have shared your Question in a Group for Underdog Questions .Iam no python expert so I'm mentioning Jan Markus , he is a python demon ...lol
29th Dec 2020, 11:11 AM
Alphin K Sajan
Alphin K Sajan - avatar
+ 2
Alphin K Sajan Thanks brother. Actually I just want the way I can do that, and any language is welcomed
29th Dec 2020, 11:13 AM
Charitra
Charitra - avatar
+ 2
Chiku What you language have you used for it?
29th Dec 2020, 12:30 PM
Aradhay Mathur
Aradhay Mathur - avatar
29th Dec 2020, 12:33 PM
Charitra
Charitra - avatar
+ 2
Aradhay Mathur I understand what you're saying, but I want an overlay type of thing that covers my whole screen, and doesnt compromise my interaction with other apps I'm clicking on or keyboard inputs. I'm trying to make a blue light filter sort of thing. I think you can guess what type of functionality I want. Tkinter is used for GUI making, and will therefore not be suitable for my work.
29th Dec 2020, 12:40 PM
Charitra
Charitra - avatar
+ 2
Aradhay Mathur Thanks for this. I'll try to see whats that.
29th Dec 2020, 12:45 PM
Charitra
Charitra - avatar
+ 2
Chiku Make sure to do it in an virtual machine otherwise your system can fail
29th Dec 2020, 12:46 PM
Aradhay Mathur
Aradhay Mathur - avatar
+ 2
Aradhay Mathur Oh yeah.. I know that😂😂
29th Dec 2020, 12:47 PM
Charitra
Charitra - avatar
+ 1
Alphin K Sajan I've seen blugon, but these all are very much advanced and works only on Linux. I just want the way I can apply a gamma layer over the screen. Its just that I want. Other requirements like background running as a daemon, its GUI, all these I can do, but the main thing is that gamma layer
29th Dec 2020, 11:00 AM
Charitra
Charitra - avatar
+ 1
Alphin K Sajan The one you told now shows how to do that in an image. I want that as a screen overlay. 😅
29th Dec 2020, 11:05 AM
Charitra
Charitra - avatar
+ 1
I am spark ar creator...I work for facebook...I have made a lot of filters for instagram and facebook...you can use spark ar studio to make blue filter
30th Dec 2020, 6:12 PM
Pro Coder
Pro Coder - avatar
+ 1
Mr. BAV Why did you just copy what he said?
31st Dec 2020, 5:12 AM
Aria
Aria - avatar
- 1
udit nayyar Thanks, but I want to implement my own.
31st Dec 2020, 4:08 AM
Charitra
Charitra - avatar
- 4
Daniil Biletskyi [thebloodcoders] Please do not copy paste existing answers. Its considered spam, thank you!
30th Dec 2020, 6:36 PM
Avg29 [August Studios]
Avg29 [August Studios] - avatar