Auto start addon then return to home screen

Hi there. I have looked and can’t find the answer so i thought it would be best to ask iin here.

I was wandering wether there was a way to auto start an addon then return to the home screen once its launched.

I have sucessfully got the first part to work using the:

xbmc.executebutin(‘XBMC.RunAddon(plugin.video.pluginname)’) script in autoexec.py but cant get it to return to the home screen.

Can the activatewindow(home) be used as a second command in autoexc.py as im getting a erro when trying this?

or

Can i run/activate the plugin in the background without a gui?

Thanks in advance.

Maddis