Skip to content

Exit Codes

When swiftDialog closes it will return an exit code which can be used to determine what, if any, action was taken

Exit CodeCause
0User clicked the default button (button 1)
2User clicked Button 2
3User clicked the Info button
5exited via the command file quit: command
10exited because the user used cmd+q (or cmd+quitkey)
20quit because --timer reached 0
201an image resource was not found
202a file resource was not found
203an invalid colour value was used

More details on this page: Capturing Dialog output for further processing