Some help with an Openelec script please


Recommended Posts

I have asked this question on the Openelec forum and I have had one suggestion but unfortunately that hasn't worked so I thought as there are some very clever Linux people in here I thought that you guys might like to give it a shot for me.

 

I am using the Neon skin on my pc in the living room and always suspend it rather than turn it off. What I would like to do is when it wakes from suspend to default to the movies button on the home screen.

 

Currently it stays on the shutdown button when it wakes.

 

I have been searching around the various Wiki's and on the OE forum and I have cobbled together the script below - now I have never written a script in my life and its no surprise it doesnt work lol. I have created the folder sleep.d in the configfiles folder on my pc.

 

Would someone like to give me some pointers as to what I have done wrong please

 

 

#!/bin/sh
case "$1" in
   pre)
     ;;
   post)
     SetFocus(3,67)
     ;;
esac

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.