TaskSettings settings = new TaskSettings(); settings.OutputFileFormat = OutputFileFormats.PNG;
TaskSettings settings = new TaskSettings(); settings.ImageCompressionLevel = 80;
TaskSettings settings = new TaskSettings(); settings.Hotkey = new Hotkey(ModifierKeys.Control, Keys.PrintScreen);In this example, we create a new instance of TaskSettings and set the Hotkey property to a new instance of the Hotkey class with the Ctrl+Print Screen combination. This sets the keyboard shortcut to trigger the task with these settings. Overall, the ShareX TaskSettings package library is a useful tool for customizing settings in ShareX tasks, allowing users to tailor their workflows to their specific needs.