Script Collection
Other
Change Desktop color with ctypes | Change Desktop color with ctypes |
|
|
|
from ctypes.wintypes import windll, c_int, byref, RGB COLOR_BACKGROUND = 1 # from winuser.h or win32con SetSysColors = windll.user32.SetSysColors which_color = RGB(255,0,0) # red SetSysColors(1, byref(c_int(COLOR_BACKGROUND)), byref(c_int(which_color))) |
|
| Last Updated ( Tuesday, 11 August 2009 ) |
| < Prev |
|---|
Hint: For syntax highlighting and correct Python intendation place your code between html tags <pre> and </pre>.