Auto start plx client and open playlist

i want to create a digital photo frame using a raspberry pi and plex, i need to be able to start the client and open a photo playlist when device boots at start, any suggestions?

used xdotools to simulate mouse clicks