
Use PowerShell to prevent your IM presence becoming 'Inactive'
To fix this, the following simple PowerShell script can force your presence indication to remain active by sending two (simulated) pressed of your Scroll Lock key in quick succession every three minutes. The keyboard activity is detected by the IM client and your presence indication remains green and 'active'.
How to use
Open a PowerShell window. Cut and paste the following code into the window. The code will run until stopped, triggering every three minutes. There is no output to the screen.
#keep active
$wshell = new-object -com "wscript.shell"
while ($true)
{
$wshell.sendkeys("{SCROLLLOCK}")
start-sleep -milliseconds 100
$wshell.sendkeys("{SCROLLLOCK}")
start-sleep -seconds 180
}
How to stop the code from running
Either press ctrl-c
to stop the code running, or simply close the PowerShell window.