-
Notifications
You must be signed in to change notification settings - Fork 293
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Experimental support for Wacom driver devices
This allows that the Wacom drivers can be left installed on the system, but the Pen_Tablet/Wacom_Tablet.exe needs to be killed before starting the TabletDriverGUI Currently supported tablets: - CTL-470 - CTL-480 - CTH-480 - CTL-4100
- Loading branch information
Showing
7 changed files
with
185 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,6 +49,43 @@ public App() | |
} | ||
} | ||
|
||
// | ||
// Check Wacom processes | ||
// | ||
string[] wacomProcessNames = | ||
{ | ||
"Pen_Tablet", | ||
"Wacom_Tablet" | ||
}; | ||
|
||
processes = Process.GetProcesses(); | ||
foreach (Process process in processes) | ||
{ | ||
foreach (string wacomProcessName in wacomProcessNames) | ||
{ | ||
if (process.ProcessName.ToLower() == wacomProcessName.ToLower()) | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
hawku
Author
Owner
|
||
{ | ||
try | ||
{ | ||
process.Kill(); | ||
} | ||
catch (Exception) | ||
{ | ||
MessageBox.Show( | ||
"You have Wacom driver processes running in the background:\n " + | ||
string.Join("\n ", wacomProcessNames) + | ||
"\n\nPlease shutdown those before starting the GUI!", | ||
"Error!", MessageBoxButton.OK, MessageBoxImage.Error | ||
); | ||
instanceMutex.ReleaseMutex(); | ||
Shutdown(); | ||
return; | ||
} | ||
} | ||
} | ||
} | ||
|
||
|
||
MainWindow mainWindow = new MainWindow(); | ||
mainWindow.Show(); | ||
Exit += App_Exit; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
are there not any other criteria you can use to check that the process is indeed the wacom driver? Maybe the file location, which should have other files in that folder? Any process can have the name "Pen_Tablet.exe". Sorry if pain.