Page 1 of 1
Play Beep when process completes
Posted: Mon Mar 24, 2014 12:16 am
by Christopher Kernahan
[Admins - probably belongs in "potentially, maybe, sort of" useful code forum]
I've been developing with a lot of long running TIs and trying to multitask in between, so in order to alert me when a process has finished with a sound, I put this in the Epilog.
Code: Select all
#===================================================================#
# Play sound to alert when process is completed
#===================================================================#
ExecuteCommand( 'D:\TM1\_Scripts\beep.bat', 0 );
The .bat file is;
You can create the beep.bat file by opening Command Prompt and typing the following in;
copy con beep.bat [return]
[ctrl-G][ctrl-Z][return]
See
http://www.wikihow.com/Make-CMD-Beep for full walkthrough.
Re: Play Beep when process completes
Posted: Mon Mar 24, 2014 9:57 am
by David Usherwood
Errr....
TIs run on the server. I'm thinking in many situations that the beep will be triggered in a server room where no-one can hear it. What about email (using sendemail), sms, or instant messaging?
Re: Play Beep when process completes
Posted: Mon Mar 24, 2014 10:44 am
by EvgenyT
Re: Play Beep when process completes
Posted: Mon Mar 24, 2014 11:22 am
by rmackenzie
EvgenyT wrote:Good idea, thanks for sharing. How about a txt message alert to your smartphone
This is much easier than some people might think - but very hard to find it
for free. You need to engage the services of an SMS gateway and then you can just send e-mails from a TI (check numerous forum posts on this topic) that will result in a text message via the gateway.
Here is an Aussie one that is 7c a pop. NB I've nothing to do with them but it seems relatively inexpensive. Forum members who are part of organisations with corporate accounts might want to check if they have a gateway already as part of their corporate account.
Re: Play Beep when process completes
Posted: Mon Mar 24, 2014 9:11 pm
by Christopher Kernahan
Errr....
TIs run on the server.
Developing on my local machine, I should have said.
Re: Play Beep when process completes
Posted: Tue Mar 25, 2014 8:55 am
by Andy Key
Ctrl-G eh? Takes me back to my teletype days when you used to get a picture of a bell on the G key, and pressing Ctrl-G actually rang a real mechanical bell inside the machine. None of your pale imitation electronic beeps. After all, if Ctrl-G was supposed to beep the ASCII description for Code 7 would have been BEP rather than BEL.
Now where's that bag of Werther's Originals?
Re: Play Beep when process completes
Posted: Tue Mar 25, 2014 9:30 pm
by Christopher Kernahan
Takes me back to my teletype days
Come along Sir, the nice men here are going to take you home. There there, don't forget your slippers.
Re: Play Beep when process completes
Posted: Thu Dec 25, 2014 9:15 am
by USA11SF
...now now youngster....I was working teletypes in the early 60's in Taiwan and Viet Nam...and could type 80WPM in the blind....error free...including bell ringing for critsit messages....and then to IBM in 1969...and TM1 in 1991....no slippers yet....
Maligayang Pasko! 새해 복 많이 받으세요
新年好!