D
D
Denius (genius)2018-10-07 17:53:12
Java
Denius (genius), 2018-10-07 17:53:12

Java will not swear on the path to a photo from the Internet?

I use JNA to replace the desktop wallpaper, this is the way I prescribed, but the photo is not replaced.
I'm wondering if I'm on the right path....

User32.INSTANCE.SystemParametersInfo(0x0014, 0, "https://images.wallpaperscraft.ru/image/neboskreb_arhitektura_zakat_128449_1920x1080.jpg" , 1);

"https://images.wallpaperscraft.ru/image/neboskreb_arhitektura_zakat_128449_1920x1080.jpg"

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
APXEOLOG, 2018-10-07
@Conan_Doyle_SBINH

SystemParametersInfo will return false if an error occurs. And the local path must be used (their internet will not work)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question