Don't think that's possible in osbot at this point, only thing you can do is move mouse or rotate camera sometimes...
or @Patrickdo you have a solution for this? ^^
I don't think you got his question, this has nothing to do with a script
OPRS has this in built function (which you can't do in a script) to make sure you don't logout bcs inactivaty. It pretends the client to log you out ^^