![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | Has anyone used the Beep or Alert console character `a I recently started exploring how to use jobs so that they can automate tasks. One of the things I want to be able to do is to have have the job signal me when its completed. While there no specific documenation on how to do this for those interested this is how in an elevated shell $job = Invoke-Command -ComputerName $computer -AsJob -Credential $cred {sleep 5} ## simulate a long running job Register-ObjectEvent $job -EventName "StateChanged" -SourceIdentifier JobState -Action {write-host `a} ## Bell should sound when event is fired The key is to subscribe to the event "StateChanged" which is part of the Job Class Trouble is I here no beep. Looking further I can't even get this to beep PS> echo `a I do hear Windows "Default Beep", Internet Radio, etc Does or has this work for anyone? Is this a known bug or am I doing something wrong? bob |
My System Specs![]() |
| | #2 (permalink) |
| | Re: Has anyone used the Beep or Alert console character `a [char]7 - default beep. -- WBR, Vadims Podans PowerShell blog - www.sysadmins.lv "Bob Landau" <BobLandau@xxxxxx> rakstīja ziņojumā "news:BB5AB6A7-EED7-463B-8AE5-A6A729BA537B@xxxxxx"... Quote: > I recently started exploring how to use jobs so that they can automate > tasks. > > One of the things I want to be able to do is to have have the job signal > me > when its completed. While there no specific documenation on how to do this > for those interested this is how in an elevated shell > > $job = Invoke-Command -ComputerName $computer -AsJob -Credential $cred > {sleep 5} ## simulate a long running job > Register-ObjectEvent $job -EventName "StateChanged" -SourceIdentifier > JobState -Action {write-host `a} ## Bell should sound when event is fired > > The key is to subscribe to the event "StateChanged" which is part of the > Job > Class > > Trouble is I here no beep. Looking further I can't even get this to beep > > > PS> echo `a > > > I do hear Windows "Default Beep", Internet Radio, etc > > > Does or has this work for anyone? Is this a known bug or am I doing > something wrong? > > > bob |
My System Specs![]() |
| | #3 (permalink) |
| | Re: Has anyone used the Beep or Alert console character `a sorry, a misunderstand you. I don't sure that it is possible. -- WBR, Vadims Podans PowerShell blog - www.sysadmins.lv "Vadims Podans" <vpodans> rakstīja ziņojumā "news:eKL0nevrJHA.4592@xxxxxx"... Quote: > [char]7 - default beep. > -- > WBR, Vadims Podans > PowerShell blog - www.sysadmins.lv > > "Bob Landau" <BobLandau@xxxxxx> rakstīja ziņojumā > "news:BB5AB6A7-EED7-463B-8AE5-A6A729BA537B@xxxxxx"... Quote: >> I recently started exploring how to use jobs so that they can automate >> tasks. >> >> One of the things I want to be able to do is to have have the job signal >> me >> when its completed. While there no specific documenation on how to do >> this >> for those interested this is how in an elevated shell >> >> $job = Invoke-Command -ComputerName $computer -AsJob -Credential $cred >> {sleep 5} ## simulate a long running job >> Register-ObjectEvent $job -EventName "StateChanged" -SourceIdentifier >> JobState -Action {write-host `a} ## Bell should sound when event is >> fired >> >> The key is to subscribe to the event "StateChanged" which is part of the >> Job >> Class >> >> Trouble is I here no beep. Looking further I can't even get this to beep >> >> >> PS> echo `a >> >> >> I do hear Windows "Default Beep", Internet Radio, etc >> >> >> Does or has this work for anyone? Is this a known bug or am I doing >> something wrong? >> >> >> bob |
My System Specs![]() |
| | #4 (permalink) |
| | Re: Has anyone used the Beep or Alert console character `a Bob Landau wrote: Quote: > I recently started exploring how to use jobs so that they can automate tasks. > > One of the things I want to be able to do is to have have the job signal me > when its completed. While there no specific documenation on how to do this > for those interested this is how in an elevated shell > > $job = Invoke-Command -ComputerName $computer -AsJob -Credential $cred > {sleep 5} ## simulate a long running job > Register-ObjectEvent $job -EventName "StateChanged" -SourceIdentifier > JobState -Action {write-host `a} ## Bell should sound when event is fired > > The key is to subscribe to the event "StateChanged" which is part of the Job > Class > > Trouble is I here no beep. Looking further I can't even get this to beep > > > PS> echo `a > > > I do hear Windows "Default Beep", Internet Radio, etc > > > Does or has this work for anyone? Is this a known bug or am I doing > something wrong? > > > bob confirm that it does work. The only thing that I can think of is that you don't have an internal PC speaker. The "Default Beep" and internet radio use your PC speakers. Take a look at your motherboard and see if there is anything connected to the PC speaker header. I've come across motherboards that have a built in (as in soldered to the PCB) speaker and you can disable/enable it in BIOS. HTH Matt |
My System Specs![]() |
| | #5 (permalink) |
| | Re: Has anyone used the Beep or Alert console character `a I suspect you're correct I did "update" my machine with an new motherboard. Perhaps I just didn't connect it up or like you said the speaker's disabled. Thanks for confirming it works. I thought this was just to basic not to work. "Matt Williamson" wrote: Quote: > Bob Landau wrote: Quote: > > I recently started exploring how to use jobs so that they can automate tasks. > > > > One of the things I want to be able to do is to have have the job signal me > > when its completed. While there no specific documenation on how to do this > > for those interested this is how in an elevated shell > > > > $job = Invoke-Command -ComputerName $computer -AsJob -Credential $cred > > {sleep 5} ## simulate a long running job > > Register-ObjectEvent $job -EventName "StateChanged" -SourceIdentifier > > JobState -Action {write-host `a} ## Bell should sound when event is fired > > > > The key is to subscribe to the event "StateChanged" which is part of the Job > > Class > > > > Trouble is I here no beep. Looking further I can't even get this to beep > > > > > > PS> echo `a > > > > > > I do hear Windows "Default Beep", Internet Radio, etc > > > > > > Does or has this work for anyone? Is this a known bug or am I doing > > something wrong? > > > > > > bob > echo `a from the PS prompt causes my internal speaker to beep. So I can > confirm that it does work. The only thing that I can think of is that > you don't have an internal PC speaker. The "Default Beep" and internet > radio use your PC speakers. Take a look at your motherboard and see if > there is anything connected to the PC speaker header. I've come across > motherboards that have a built in (as in soldered to the PCB) speaker > and you can disable/enable it in BIOS. > > HTH > > Matt > |
My System Specs![]() |
| | #6 (permalink) |
| | Re: Has anyone used the Beep or Alert console character `a If you're OS is Vista, check your Audio device levels, there is one dedicated to the Beep, could be too low or muted... # Properties > Levels > Beep C:\Windows\System32\mmsys.cpl -- Kiron |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Toggle keys beep alert | Tutorials | |||
| beep-beep | Vista performance & maintenance | |||
| Clicking in AOL Mail results in loud alert "beep"... help? | Vista General | |||
| Beep? | Vista General | |||
| Clicking in AOL Mail results in loud alert "beep"... help? | Vista performance & maintenance | |||