Follow us on Twitter!
Never in the field of human conflict was so much owed by so many to so few. - Winston Churchill
Monday, September 26, 2016
Navigation
Home
 Find:
 Information:
Learn
Communicate
Submit
Shop
Challenges
 Exploit:
 Programming:
 Think:
 Track:
 Patch:
 Other:
 Need Help?
Other
Members Online
Total Online: 22
Guests Online: 22
Members Online: 0

Registered Members: 95724
Newest Member: casperw87
Latest Articles
View Thread

HellBound Hackers | Computer General | Programming

Author

Making a Program in VB that changes your desktop on startup


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 19-03-05 22:32
how would i go about making a program that changed my desktop image automatically from a specific folder?


Author

RE: Making a Program in VB that changes your desktop on startup


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 20-03-05 21:27
Code
Declare Function SystemParametersInfo Lib "user32" Alias "SystemParametersInfoA" (ByVal uAction As Long, ByVal uParam As Long, ByVal lpvParam As Any, ByVal fuWinIni As Long) As Long
Const SPI_SETDESKWALLPAPER = 20

Private Sub Form_Load()
Dim lngDesktop As Long, strImage As String
strImage = "c:\blabla.jpg"
lngSuccess = SystemParametersInfo(SPI_SETDESKWALLPAPER, 0, strImage, 0)
End Sub




Then put this prog in taskmanager (startup)