Support Board
Date/Time: Tue, 25 Mar 2025 22:07:52 +0000
Run Program When This Alert Triggered: cmd.exe disrupts windows
View Count: 125
[2025-03-20 00:22:01] |
virtualcointrading - Posts: 43 |
Hello, whenever a program is run on an alert trigger, the cmd.exe prompt SC launches shifts the focus, i.e. if a full screen application is launched the command prompt will reduce it, if I'm typing something characters that I type when the alert was triggered will miss because cmd.exe was in focus, etc... Is there a way for "Run Program When This Alert Triggered" to quietly execute the specified program? Regards, |
[2025-03-20 01:52:53] |
user_xyz - Posts: 459 |
Interesting I briefly looked into solving this issue this past weekend and got side tracked. Often I'm typing on a screen overlay and when the alert gets triggered all my text / work disappears
|
[2025-03-20 06:54:59] |
Sierra_Chart Engineering - Posts: 18944 |
We see why this issue occurs. We will solve this. But this will still happen if you are running an operating system batch file. It cannot be avoided to open the command window when running a batch file.
Sierra Chart Support - Engineering Level Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy: https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2025-03-20 08:26:22] |
virtualcointrading - Posts: 43 |
In my case I'm running a Python script.
|
[2025-03-22 15:38:14] |
user_xyz - Posts: 459 |
SC could you make a note here when / what version you solve this so we can test out. Thanks
|
[2025-03-22 16:29:35] |
Sierra_Chart Engineering - Posts: 18944 |
Update to version 2748. The issue should be resolved as long as you are not running an operating system batch file.
Sierra Chart Support - Engineering Level Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy: https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2025-03-23 15:22:09] |
user_xyz - Posts: 459 |
I just ran through a few tests in replay mode. Prior I would see the cmd.exe flash and then my python script would launch. Alert is triggering as expected but external program doesn't appear to get called. "C:/.../python.exe" "C:/.../alerts.py" |
[2025-03-24 08:21:59] |
Sierra_Chart Engineering - Posts: 18944 |
Check the Message Log for errors: Message Log Sierra Chart Support - Engineering Level Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy: https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2025-03-24 10:00:32] |
user_xyz - Posts: 459 |
Sorry missed error code earlier in log. Error creating process "C:/.../python.exe" "C:/...alerts.py" Windows error code 87: The parameter is incorrect. Also in case it wasn't clear in SC in Run Program when this Alert Triggered field I have "C:/.../python.exe" "C:/...alerts.py" Would think other user similar since both of us running python scripts. Date Time Of Last Edit: 2025-03-24 12:54:44
|
[2025-03-25 17:20:38] |
Sierra_Chart Engineering - Posts: 18944 |
With the changes which support a direct call to CreateProcess, do not use any quote marks. And for now parameters are not supported. You can only specify the executable path and filename. Sierra Chart Support - Engineering Level Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy: https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
To post a message in this thread, you need to log in with your Sierra Chart account: