alert when CPU at 100% loading

Discussion in 'Trading Software' started by richardyu301, May 11, 2006.

  1. I hv put a sound file "buzzer.wav" in this directory.

    Also, actually my parameters are "/play /close xxx.wav" so it is supposed to play the file and then close it. But unfortunately the program is run but there is NO sound and the program is NOT closed afterward....

     
    #11     May 11, 2006
  2. Yea, I think you would need to change the "Run-As" option on the first page to allow the program to interact with your I/O (screen and sound devices) - probably not something you want to mess around with.

    Messenger is a default Windows service - its probably running already on your system. I happen to have mine shut-off but if you havent tweaked your system then its probably still running. Just try selecting the option to send a notification and give your computer name is the target - then you should receive a pop-up everytime the alert fires.

    You can test if messenger is running by this command:

    "net send X1 test" , replace X1 with your machine's name - you should see a pop-up with the word "test" in it.
     
    #12     May 11, 2006
  3. montysky

    montysky


    you can put the line

    C:\windows\system32\sndrec32.exe "c:\program files\esignal\sounds\buzzer.wav"
    (you need the quotation marks)

    in a batch file called "alert.bat"

    and put in "alert.bat" at the Run this program box.

    pls let us know if it works.

    ps thanks winter for alerting us about this feature (pun intended)
     
    #13     May 11, 2006
  4. I dont think that is the issue since the OP said that he saw instances of sndrec32 in the background - the program is being run but its being run as a background process without any way to interact with the GUI or sound devices. I don't think changing to a .bat file will affect that as I've had the same problem when I've run .bat files as a service under windows.
     
    #14     May 11, 2006
  5. montysky

    montysky

    yep, you're right. I just tested it. with sndrec32 you need to click on "play" to play the file. may work with another prog that plays wav file automatically as a parameter
     
    #15     May 11, 2006
  6. I hv disabled my messenger before. I can enable it again but what I want is audio alert which messenger doesn't do (it only shows a pop-up msg).

    I am thinking of finding a small program in the web to play the sound but the problem is it may end up having the same problem as sndrec32.exe has.

    I will try to google to see whether there is a solution out there...
     
    #16     May 12, 2006
  7. Ah I see, I didnt realize that getting an audio notification was what you were after. I'm a little pressed right now but if I have a chance I'll try to play around with it more and see if I can get it working.
     
    #17     May 12, 2006
  8. I found this and it worked

    http://www.jsifaq.com/subG/TIP3000/rh3047.htm

    3047 » How can I get a performance alert to run a program interactively? 17-Nov-00



    To have a program run ineractively, when it is triggered by a performance alert:

    1. Control Panel / Administrative Tools / Services.

    2. Double-click Performance Logs and Alerts.

    3. Select the Log On tab.

    4. Check the Local System Account and Allow service to interact with Desktop boxes.

    5. Press Apply.

    6. Select the General tab.

    7. Stop the service.

    8. Start the service.
     
    #18     May 12, 2006