Commit Graph

883 Commits

Author SHA1 Message Date
Terry MacDonald
b34cdcce6c Updated to latest WinLibrary version
This version of WinLibrary improves handling of multiple display adapters to cope with multiple displays across multiple display adapters. Hopefully fixes #60 (but no guarantees yet)
2021-12-07 18:33:16 +13:00
Terry MacDonald
a4bfc62c92 Deregister app shortcut if temporary
This code will only register and deregister the app if this isn't an installed version of displaymagician. It won't do this if this is run for the installed version of DisplayMagician.
2021-12-03 12:23:35 +13:00
Terry MacDonald
4c6891ad2a Added cancel button to shortcut library form
Added Cancel button to shortcut library form to allow people to cancel the monitoring from either a Windows Toast or from the shortcut library form itself. All works now!
2021-12-03 11:19:02 +13:00
Terry MacDonald
e3d85f9e96 Working waiting cancellation by toast 2021-12-03 10:59:52 +13:00
Terry MacDonald
20a7c85279 Updated toast notification to work from zip install
Used some amazing code from David Air at https://gist.github.com/davidair/c4ea207bf6eece4ef08b97ab29a3036f to enable toasts without install from a setup program. This allows me to debug toasts within VS2019.
2021-12-03 10:38:29 +13:00
Terry MacDonald
b200c2bd01 [WIP] Adding cancelling monitoring to the Windows Toast
Added the button. Now need to figure out the logic.
2021-12-03 09:11:45 +13:00
Terry MacDonald
37788855b7 Disabled Process Impersonation and added Profile Name to Tray Icon
Disabled the Process Impersonation logic as it was causing issues with an mscorlib.dll CTD. Have disabled as it's not strictily necessary, and it means that the games all work!

The DisplayMagician profile name is now shown when the user hovers over the system tray icon. Implements #61 for @whitestar127.

Also added some try/catch statements in the SteamLibrary IsRunning functions just-in-case :).
2021-12-02 22:00:33 +13:00
Terry MacDonald
03d15fb8e9 Updated ValveKeyValue to latest version
Have had problems in the past uprading to the latest version but this one worked fine!
2021-11-27 14:07:00 +13:00
terrymacdonald
20c04a1f00
Create codeql-analysis.yml 2021-11-26 15:19:31 +13:00
terrymacdonald
958b7b9f55
Update dependabot.yml 2021-11-26 15:18:39 +13:00
terrymacdonald
9c28d4dd20
Update dependabot.yml 2021-11-26 15:11:52 +13:00
terrymacdonald
03f9709e3d
Create Dependabot.yml 2021-11-26 15:10:00 +13:00
Terry MacDonald
24d5014441 Updated to v2.1.1.1 2021-11-23 21:34:15 +13:00
Terry MacDonald
f6be9e04b2 Trying to get process to launch with UAC
Not really much luck at present, so have decided to add this functionality later.
2021-11-23 21:25:58 +13:00
Terry MacDonald
6a9f3abc6d Centered the shortcutform loading window
This was WAY harder than it needed to be, as the loading window runs in a separate thread. It does a bit of trickery to get it to work reliably, but now it works ok. I really should be factoring the work into a background thread rather than running it in the UI thread, but that's something I'll revisit when I rebuild it under .net 6.0 and MAUI.
2021-11-23 21:04:28 +13:00
Terry MacDonald
971a45b2e8 [WIP] Trying to get ShortcutLoadingForm to show centerparent
Still haven't been able to get the loading form to show center parent. Need to try again tomorrow.
2021-11-22 23:13:49 +13:00
Terry MacDonald
f8f2dc89d9 Tweaks to the lessen ShortcutRepository logging
At the moment the logs are just getting too large, so trying to remove some of the less important and repetitive log entries.
2021-11-22 22:53:31 +13:00
Terry MacDonald
67729942a1 Working ProcessUtils
Finally tested the process launching, and finally managed to get it working! THis has been quite a lot of problems to get right, so pretty happy it's all working.
2021-11-22 22:51:07 +13:00
Terry MacDonald
fdb4fce977 [WIP] ProcessUtils refactor and trim
Tried to remove the unneeded bits of the ProcessUtils module, and to streamline the process monitoring process to make it sane, and have code only live in one place. I also wanted to make use of the TryExecute_Impersonated if possible. I hope I've done that all today!
2021-11-22 21:53:14 +13:00
Terry MacDonald
0d96a9287d [WIP] Partially working process launching
Still need to iron out all the bugs and get it working with launchers etc.
2021-11-21 22:35:14 +13:00
Terry MacDonald
852d42ed6f [WIP] First working process start
Need to add process returning and monitoring so that we're able to handle launcher processes.
2021-11-21 13:25:23 +13:00
Terry MacDonald
cca916c515 [WIP] Adding some exectuable awareness 2021-11-21 13:21:47 +13:00
Terry MacDonald
e4add2570f RunShortcut reliability changes 2021-11-21 13:08:11 +13:00
Terry MacDonald
c9c9fcc8b4 [WIP] Nearly ready to test the new process utils 2021-11-21 10:29:06 +13:00
Terry MacDonald
ba2e0afb71 [WIP] Process launching refactor
The previous launching process just didn't work! It's the last outstanding thing I've got to sort out, so trying a new process launching method as used within MediaPortal project.
2021-11-21 10:17:15 +13:00
Terry MacDonald
10d387d53b Fixed bug with startprograms UI not clearing 2021-11-20 21:38:26 +13:00
Terry MacDonald
5b15dd367e Make available updates hide the loading page 2021-11-20 11:56:25 +13:00
Terry MacDonald
5bb29bc8e2 Slight tweak to README. 2021-11-20 10:41:09 +13:00
Terry MacDonald
d106c32361 Updated README 2021-11-20 10:38:42 +13:00
Terry MacDonald
9ca52d96d2 Updated screenshots to v2.1.0 2021-11-20 10:34:27 +13:00
Terry MacDonald
d7db9d6007 Fixed small bug with game imagelistview selection.
The game imagelistview wasn't showing the correct selected item when loading an existing shortcut into the shortcutform after creating a new shortcut. This is now fixed and displays correctly.
2021-11-20 09:33:25 +13:00
Terry MacDonald
9c82352411 Updated AssemblyInfo template again 2021-11-20 09:01:31 +13:00
Terry MacDonald
2a8e069b85 Merge branch 'main' into develop 2021-11-20 08:49:18 +13:00
Terry MacDonald
a1bd3cc17d Update the AssemblyInfo template 2021-11-20 08:48:37 +13:00
Terry MacDonald
7feef1c50c Merge branch 'develop' 2021-11-20 08:47:55 +13:00
Terry MacDonald
7e8ec4b1aa Update to v2.1.0.254 2021-11-20 08:24:08 +13:00
Terry MacDonald
63fdf646c7 Assembly version updates to align version numbers 2021-11-19 22:34:48 +13:00
Terry MacDonald
b8c71191bb Update all builds to x64
No 32bit builds as no OS we can support is 32bit any more.
2021-11-19 22:26:03 +13:00
Terry MacDonald
77ab0f20f1 Updated NVIDIA Library and WinLibrary based on testing
Did a HUGE amount of testing with the amazing help of @domenic as part of #41, and we finally got the right configuration sorted out! This update is a reflection of the changes required.
2021-11-19 22:20:43 +13:00
Terry MacDonald
db0bfbecbe Fixed bug preventing autonaing from working
With the recent changes to the way that ShortcutForm worked, I had left a logic check that was no longer needed, an in fact actually caused an Autoname bug. Now fixed.
2021-11-19 21:08:38 +13:00
Terry MacDonald
714cb910ec Fixed profile selection in new shortcuts
The shortcut selection logic was wrong. Now fixed.
2021-11-19 09:27:56 +13:00
Terry MacDonald
ea38f25e28 Major improvement for ShortcutForm loading speed
Also fixes the most recent bug highlighted by erbkaiser in #49.
2021-11-15 21:45:43 +13:00
Terry MacDonald
058060ed60 Added ability to copy Shortcut and all settings
This should help if a user has a really complicated shortcut and they want to make a copy to have two of them with slightly different tweaks.
2021-11-14 13:48:01 +13:00
Terry MacDonald
9083ec7b34 Created new build 2.1.0.215 2021-11-14 09:55:40 +13:00
Terry MacDonald
24efd1a8d8 Changes required by recent NVIDIALibrary changes 2021-11-13 21:32:13 +13:00
Terry MacDonald
21d173b6ca Fixed mistake 2021-11-13 21:30:21 +13:00
Terry MacDonald
6f1721342f Updated NVIDIALibrary with the latest version
This version hopefully fixes the issues when returning from surround profiles to non-surround profiles.
2021-11-13 21:28:25 +13:00
Terry MacDonald
d4494aa699 Updated NVIDIA, AMD and Windows Video libraries
Updated with enhancements to make application of colour more robust, and to avoid a Windows CCD display validation issue.
2021-11-13 15:06:54 +13:00
Terry MacDonald
2b653999dd Fixed game refresh 2021-11-09 09:26:04 +13:00
Terry MacDonald
6724a4d2ae Attempt to hide shortcut splashscreen sooner 2021-11-09 08:34:40 +13:00