Automatically generate new wallpaper

It sure can! I’ll make presets. Thank you for the idea :slight_smile:

1 Like

that looks awesome, can’t wait for the result :slight_smile:

1 Like

Here I am refreshing… :stuck_out_tongue:

1 Like

I can’t get it to work. Ive tried both versions of php, and double checked for typos. When i run the cmd prompt tp test i it works, it just prints out everything after the $canvas into my cmd window. What should I do?

2 Likes

Lol, you guys :slight_smile:
This is motivating.

@Wyatth913, I’m sorry for the troubles. I’ve actually never heard of an issue like this before. Can you please run it again, and then scroll up to where you typed the command, and send me a screenshot of what your Command Prompt looks like please (with the command showing – I want to see the top of the output)?

1 Like

Sure. I don’t know what the problem could be, unless I’ve somehow made a mistake copying the code which is causing it to not be read properly. It continues like this to the end of the txt file.

2 Likes

Thank you so much for this, great work! But as others have mentioned I have the issue that it prints out the file for some weird reason

1 Like

@Wyatth913, thank you for the screenshot. I was able to produce a similar error. With Notepad, when you save the file, make sure it says “Unicode” and not “Unicode big endian”. When I saved it as Unicode big endian, then my Command Prompt printed out the code file just like in your screenshot. So, delete your code file and try saving the code file again, and make sure it says Unicode, and let me know if it works please.

@NirDafnai, thank you for the kind words! :slight_smile: See what I said to Wyatt above, regarding setting the encoding to Unicode and not Unicode big endian. Please let me know if it works for you.

1 Like

@Masayoshiro It was on Unicode, maybe I should change to UTF-8?
EDIT: changed to UTF-8 and it worked!

1 Like

As @NirDafnai said, I wasn’t able to get it to work on Unicode, but was able to run it and my background updated when set to UTF-8. Perhaps its particular to a certain version of something. I am running Win10 and php 7.3 VC15 x86 Thread Safe

2 Likes

Awesome! I’m glad you guys were able to get it to work with UTF-8. I’ll update the first post.

1 Like

Hey @emucat, wait no longer!

Here is the online version. It has instructions for making this automatic on Mac. Can you test the Mac instructions and let me know how it works for you please? If everything works well on Mac, then I’ll create a new topic and release it for everyone else.

http://wkw.natural20design.com/

(Actually, I just created the subdomain, so it may take 24-48 hours to propogate, but hopefully it is ready by the time you see this.)

I have just tested in an iPhone 7 and the Enlightenment kanjis don’t show at all:

EDIT: The same happens for the Mac. I have tried to change the color and still the same

1 Like

Testing with the Mac now.

First, I had to create the TexEdit in Plain text as I did the other days… but the new instructions don’t say anything about it.

Second, I get this: Wallpaper.command ; exit;
33:48: execution error: Finder got an error: AppleEvent handler failed. (-10000)
logout

1 Like

Ah, so the Enlightened Kanji weren’t showing up, because the API references them as “enlighten” for some reason, and I actually don’t have any enlightened kanji yet, so I never caught the error. Thanks! It should be fixed now.

Yes!! I was freaking out as it was working!! hahah Great!

But Mac script still no bueno

1 Like

One more thing, and this is about design, maybe just for the iMac/Macbookpro presets, but there is a big black margin at the bottom. Is it supposed to be for the Dock?

1 Like

I appreciate your thoroughness! :slight_smile: I added the plain text instructions back in.

I updated the code file instructions. Apparently you can’t send relative links to osascript (like “wallpaper.png”). I have two command file blocks in the page temporarily. Can you test the first one, and if it doesn’t work, test the second one, and let me know how they work?

About the large black margin at the bottom, Yes, that’s for the dock. Do you think I remove it / lessen it?

Both scripts failed with the same error… :frowning: Also, I never see a wallpaper.png created in that folder.

Regarding the Dock… it can be tricky. I’d assume most people has it there… but he size might be different. Other people hide it…

In my case I have 2 displays, but there is only one Dock, so it looks weird. But I can play with the setting in the webpage for customization

EDIT: If I manually run the commands, it creates the wallpaper.png, and it doesn’t give me an error.

Let me change to wallpaper to something different so see if it actually changes it

1 Like

Ah, multiple displays are great! I didn’t know the dock only appeared on the main monitor. On my computer, I’ve got three monitors going across, but the Windows 10 start bar is on all of them. I just added a note to the page that says “Adjust the margins for your taskbar/dock location/size!”.

Can you add this line to the bottom of your code file, and then run it again, and send me a screenshot of the Terminal after you’ve run the code file please? Though it’s nice to know that running the commands manually works!

read -rsp $'Press any key to continue...\n' -n1 key