The Query Start event is called before Scorpion is set in Running mode. Example 1:
User to Confirm Start
# Use the
MessageDlg method to display message dialogs with a confirmation icon
and 'Yes' and 'No' buttons
def Handle_System_QueryStart(): # # Return 1 to refuse START command # Return 0 for default handling # if MessageDlg('Do you want to start',2,3)==7: return 1 return 0 |