Systemparseinfow makes my wallpaper black instead

Viewed 25
import os 
import ctypes 
path =r"C:\pathtoimage"
ctypes.windll.user32.SystemParametersInfoW(20,0,path",0)

if i run this code everthing runs smoothly the wallpaper changes, but if i do this

import os 
import ctypes 

path = os.path.abspath("image")
ctypes.windll.user32.SystemParametersInfoW(20,0,path,0)

the screen becomes black . Why does it happen if in bot examples i am giving a string as an argument.

0 Answers
Related