Well you added in ur script:
code:
My.Status = My.Status
This keeps changing my status to 'away' after I come out of lock. During lock I have it set to go to 'away' but when I unlock it sets me as away and counts down from 15seconds...asking me if i'd like to personalise my status. Anyway I deleted this line in your code and all works well.
Guess it's no longer my script at all, you did it all.