1
Vote

bring chat window into forground on new message

description

if poshchat could bring chat window into foreground on new message, it would be very valuable. it would form part of the answer towards indicating presence.

I hacked at also getting poshchat to disconnect when it detected that the screen was locked (the other part of indicating presence) , but did not manage.

see code below:
           if ((get-process logonUI -ea 0)) {
                                #screen is locked
                               $frequency = 5000
                                $duration = 2000
                                [console]::beep($frequency, $duration)
                                $Messagequeue.Enqueue("~S")
                                Break
                            }
                            ### end begin screen locked
                            If ($return -gt 0) {
                                $Messagequeue.Enqueue([System.Text.Encoding]::ASCII.GetString($inStream[0..($return - 1)]))
                            }

comments