General Discussions
How to exit project program by button

How to exit project program by button,Which script is associated under the button? Can you give me a sample,thanks.

How to exit project program by button,Which script is associated under the button? Can you give me a sample,thanks.

Don't think this is possible.

Will need to be stopped from the VAM or the Windows Titlebar if running as an application.

Other question is why would you want a user to be able to stop the application.

Don't think this is possible. Will need to be stopped from the VAM or the Windows Titlebar if running as an application. Other question is why would you want a user to be able to stop the application.
edited Nov 8 '21 at 6:28 pm

There is the Stop() function, but as noted in the help for the function and as suggested by @Michael this probably isn't a good idea.

There is the [Stop()](https://www.vtscada.com/help/Content/Pro_Functions/Stop.htm) function, but as noted in the help for the function and as suggested by @Michael this probably isn't a good idea.

Software Developer with Trihedral

You could check into AutoHotKey, it might be a viable solution to what you're asking. AutoHotKey allows you to write script that can assign keyboard combo presses to do all kinds of tasks - to include what you're asking..

You could write a script to task kill the PID number of the VTScada application then assign that script a keyboard shortcut using the autohotkey program..

However, AHK has been targeted by malware. As stated by those above, it might not be a good idea.

You could check into AutoHotKey, it might be a viable solution to what you're asking. AutoHotKey allows you to write script that can assign keyboard combo presses to do all kinds of tasks - to include what you're asking.. You could write a script to task kill the PID number of the VTScada application then assign that script a keyboard shortcut using the autohotkey program.. However, AHK has been targeted by malware. As stated by those above, it might not be a good idea.

Electronic Technician for the City of Tuscaloosa working in Wastewater. Shelton State - Industrial Electronics and Electrical Technology AAS, Military Veteran - Infantry, CBRN(e) Technician: Airborne, Tech Escort, etc...., NERD of all things SCIENCE

Abruptly killing VTScada will cause the next startup to take (possibly much) longer as recovery actions are performed on all the files that didn't get closed out properly (mainly history).

Not recommended if at all possible.

Abruptly killing VTScada will cause the next startup to take (possibly much) longer as recovery actions are performed on all the files that didn't get closed out properly (mainly history). Not recommended if at all possible.

Software Developer with Trihedral

92
4
4
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft