Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Saderius committed Oct 5, 2019
0 parents commit 9d81304
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Auto detect text files and perform LF normalization
* text=auto
16 changes: 16 additions & 0 deletions Dark window.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import tkinter as tkr

#root
app = tkr.Tk()

#window look
app.title('Overlay')
app.geometry("1000x1000")
app.wm_attributes('-alpha',0.5,'-topmost',1)
app.configure(background='black')

#icon
app.iconbitmap(r'C:\Users\porto\Desktop\icons8-window-shade-96.ico')

app.mainloop()

Binary file added Icon/icons8-window-shade-96.ico
Binary file not shown.
Binary file added Icon/icons8-window-shade-96.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Dark-Window
#darken #anything
14 changes: 14 additions & 0 deletions Window lock.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import win32gui
import win32con
import win32api

hwnd = win32gui.FindWindow(None, "Overlay")
posX, posY, width, height = win32gui.GetWindowPlacement(hwnd)[4]

windowStyles = win32con.WS_EX_LAYERED | win32con.WS_EX_TRANSPARENT
win32gui.SetWindowLong(hwnd, win32con.GWL_EXSTYLE, windowStyles)
win32gui.SetWindowPos(hwnd, win32con.HWND_TOPMOST, posX,posY, 0,0, win32con.SWP_NOSIZE)

windowAlpha = 180
win32gui.SetLayeredWindowAttributes(hwnd, win32api.RGB(0,0,0),
windowAlpha, win32con.LWA_ALPHA)

0 comments on commit 9d81304

Please sign in to comment.