Commit Graph

1044 Commits

Author SHA1 Message Date
Terry MacDonald
412ac2c855 Attempt to open the singleInstance if passed no command parameters
Also attempted to set the system tray notification popup correctly after a shortcut has been run.
2022-04-06 23:07:06 +12:00
Terry MacDonald
17a23009ff Working RunShortcut and improved process error logging 2022-04-03 16:33:09 +12:00
Terry MacDonald
5a9dbed680 Fixed command line errorlevels
The errorlevels are now reported properly across the application
2022-04-03 09:37:13 +12:00
Terry MacDonald
9a9db8373a Tweaked bypassing single instance mode
Made CurrentProfile work even if there was already another instance of DisplayMagician working. Added another the ability to have command line commands that will bypass the SingleInstance mode. Used only for commands that are useful for powershell, and that don't change anything.
2022-04-02 08:35:05 +13:00
Terry MacDonald
ee8d855d23 Made CurrentProfile work across instances
There is a caveat with that, that the one that is running first is the one that will generate the console output. This isn't what everyone would want unfortunately, as it may not be caught from a catch/powershell file. The 'DisplayMagician CurrentProfile' command will work perfectly if there are no other DisplayMagician's running, but because we have moved to a SIngleInstance model if there is already another DisplayMagician instance running, the instance started by the batch file will close and the batch file/powershell file won't get an answer :(.

Nothing I can do about that I'm afraid.
2022-03-30 21:52:57 +13:00
Terry MacDonald
28f7543fc3 Added CurrentProfile commandline option
The CurrentProfile will just output the name of the current profile and will return an errorlevel of  0 if it matched a known profile.
2022-03-30 18:59:12 +13:00
Terry MacDonald
2d554d217a Updated NVIDIALIbrary to latest version 2022-03-30 18:37:24 +13:00
Terry MacDonald
3cadb9a0fe Fixed SetDisplayConfig memory management 2022-03-30 12:05:53 +13:00
Terry MacDonald
53375df302 Fix memory deallocation
There were some issues with memory deallocation where AllocateHGlobal memory was being freed incorrectly with FreeCoTaskMem. This was causing issues with subsequent memory allocations.
2022-03-30 11:50:43 +13:00
Terry MacDonald
7bb96956f1 Fixed merge errors 2022-03-30 10:56:24 +13:00
Terry MacDonald
168fab9fc2 Merge from feature branch 2022-03-30 10:49:10 +13:00
Terry MacDonald
b4f9f32e1d Fully working DisplayConfig
NVIDIALibrary updated to properly support DisplayConfig functionality. Even works with Cloned mode now!
2022-03-30 10:43:47 +13:00
Terry MacDonald
e12cd19d14 [WIP] Error with Timing
The Advanced Target Info object returned by the NVIDIA driver points to memory outside the allocated memory. I need to figure out how the NVIDIA code allocates the memory, so I can account for it on return.
2022-03-30 09:01:15 +13:00
terrymacdonald
d826b0f975
Merge pull request #94 from terrymacdonald/dependabot/nuget/develop/NLog-4.7.15
Bump NLog from 4.7.14 to 4.7.15
2022-03-30 08:08:08 +13:00
Terry MacDonald
490a5f135f [WIP] Partially fixed GetDisplayConfig
The returned structure doesn't match the structure put in
2022-03-29 10:09:29 +13:00
dependabot[bot]
8643ae5300
Bump NLog from 4.7.14 to 4.7.15
Bumps [NLog](https://github.com/NLog/NLog) from 4.7.14 to 4.7.15.
- [Release notes](https://github.com/NLog/NLog/releases)
- [Changelog](https://github.com/NLog/NLog/blob/v4.7.15/CHANGELOG.md)
- [Commits](https://github.com/NLog/NLog/compare/v4.7.14...v4.7.15)

---
updated-dependencies:
- dependency-name: NLog
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-28 08:36:01 +00:00
Terry MacDonald
cd9765e765 [WIP] Partially working GetDisplayConfig third pass
Need to get the timing stuff working as it isn't populated properly.
2022-03-26 21:29:53 +13:00
Terry MacDonald
3b4a5ac29d [WIP] Trying a different memeory structure for GetDisplayConfig 2022-03-26 20:11:52 +13:00
Terry MacDonald
faaa61586c [WIP] Understanding memory leak in GetDisplayConfig 2022-03-25 22:57:32 +13:00
Terry MacDonald
37e336cb95 Updated nuget packages 2022-03-25 22:44:46 +13:00
Terry MacDonald
37b9a79ff2 [WIP] Partial integration of new libraries.
Still some bits broken.
2022-03-25 21:51:38 +13:00
Terry MacDonald
842854e957 Merged from feature-update-libraries 2022-03-24 22:41:16 +13:00
Terry MacDonald
67c1015730 Updated the NVIDIALibrary and WinLibrary to v1.7.0
This is the version used within NVIDIAInfo v1.7.0
2022-03-24 22:36:42 +13:00
terrymacdonald
b82ba2320c
Merge pull request #92 from terrymacdonald/dependabot/nuget/develop/nunit-3.13.3
Bump nunit from 3.13.2 to 3.13.3
2022-03-24 22:23:53 +13:00
dependabot[bot]
6682a926f8
Bump nunit from 3.13.2 to 3.13.3
Bumps [nunit](https://github.com/nunit/nunit) from 3.13.2 to 3.13.3.
- [Release notes](https://github.com/nunit/nunit/releases)
- [Changelog](https://github.com/nunit/nunit/blob/v3.13.3/CHANGES.md)
- [Commits](https://github.com/nunit/nunit/compare/v3.13.2...v3.13.3)

---
updated-dependencies:
- dependency-name: nunit
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-21 08:34:09 +00:00
terrymacdonald
17694cb0a1
Merge pull request #89 from terrymacdonald/dependabot/nuget/develop/Microsoft.NET.Test.Sdk-17.1.0
Bump Microsoft.NET.Test.Sdk from 17.0.0 to 17.1.0
2022-03-07 07:54:43 +13:00
terrymacdonald
473d69058e
Merge pull request #90 from terrymacdonald/dependabot/nuget/develop/NLog-4.7.14
Bump NLog from 4.7.13 to 4.7.14
2022-03-07 07:54:32 +13:00
Terry MacDonald
72b1acfe46 [WIP] Attempt to get TaskBar changing to work 2022-03-05 18:46:47 +13:00
dependabot[bot]
2472ea5c39
Bump NLog from 4.7.13 to 4.7.14
Bumps [NLog](https://github.com/NLog/NLog) from 4.7.13 to 4.7.14.
- [Release notes](https://github.com/NLog/NLog/releases)
- [Changelog](https://github.com/NLog/NLog/blob/dev/CHANGELOG.md)
- [Commits](https://github.com/NLog/NLog/commits)

---
updated-dependencies:
- dependency-name: NLog
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-23 08:24:04 +00:00
dependabot[bot]
23e73440f5
Bump Microsoft.NET.Test.Sdk from 17.0.0 to 17.1.0
Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 17.0.0 to 17.1.0.
- [Release notes](https://github.com/microsoft/vstest/releases)
- [Commits](https://github.com/microsoft/vstest/compare/v17.0.0...v17.1.0)

---
updated-dependencies:
- dependency-name: Microsoft.NET.Test.Sdk
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-17 08:26:24 +00:00
Terry MacDonald
87f62aa322 Made display changes reliable 2022-02-12 09:18:03 +13:00
Terry MacDonald
963b267158 Move SkippedConnectionTypes earlier to stop error 2022-02-10 09:02:17 +13:00
Terry MacDonald
1f6af1f0c7 Working taskbar refresh after stopping programs
Moved the refreshnotificationarea logic to only be used when needed.
2022-02-07 15:18:30 +13:00
Terry MacDonald
b65d42e3ea Working taskbar notification tray refresh 2022-02-07 15:01:59 +13:00
Terry MacDonald
093663bb1c Reverted attempts to get notification tray refresh
I have been attempting to force Windows to refresh the notification tray using various Win32 API methods by sending messages to those notification tray windows to get them to refresh, but I haven't been able to get the right combination of setings. I am now leaving it for the next littlw while to concentrate on other issues.
2022-02-07 14:43:20 +13:00
Terry MacDonald
2e52e3ceb1 [WIP] Attempt to refresh Taskbar SystemTary and Overflow Notification Window
Trying to get rid of any left over applications that DIsplayMagician had to kill the process of, so that the system tray is nice and tidy. Having some issues doing so.
2022-02-06 21:54:00 +13:00
Terry MacDonald
4f64537d89 Update AMDLibrary and WinLibrary to skip HDR if connector doesn't support it
This works for WinLibrary and *should* work for AMDLibrary, but I don't have an AMD video card to test it with :(.
2022-02-06 15:33:15 +13:00
Terry MacDonald
f4adf8a4f2 New build 2022-02-06 13:57:28 +13:00
Terry MacDonald
68e1f1626f Preventing taskbar moves in NVIDIA Surround and AMD Eyefinity
These are invalid configurations and won't work!
2022-02-06 13:56:57 +13:00
Terry MacDonald
2d31efd4d2 Working NVIDIA screen displayview for non-mosaic screens
Had to make a few changes to how it showed non-mosaic screens to make it more reliable
2022-02-06 13:47:30 +13:00
Terry MacDonald
f7a3c221a0 Fixed bug with displaying NVIDIA screens in UI
There was a bug in the way that NVIDIA screen layouts were calculated. This error was due to a misunderstanding from me on how additional screens were listed within a mosaic config. Turns out additional screens are still recorded in the mosaic config, only just as 1x1 display grids. The screen finding logic now takes this into account.
2022-02-06 11:52:47 +13:00
Terry MacDonald
ed13875b91 Latest build 2022-02-05 21:32:16 +13:00
Terry MacDonald
d836ed7dd9 Final displayform changes 2022-02-05 21:30:40 +13:00
Terry MacDonald
81b565dfa6 Fixed taskbar move in profiletools 2022-02-05 21:28:51 +13:00
Terry MacDonald
9ff418fe07 [WIP] Populate the screens with the TaskBar edge
Need to do this so that we can draw the taskbar edge for the user in the views we show them.
2022-02-05 11:15:54 +13:00
Terry MacDonald
c910222dfa Shortened Desktop Backgroun context menu name
Fixes #77.
2022-02-04 22:04:49 +13:00
terrymacdonald
46cba6cf32
Merge pull request #85 from terrymacdonald/dependabot/nuget/develop/McMaster.Extensions.CommandLineUtils-4.0.1
Bump McMaster.Extensions.CommandLineUtils from 4.0.0 to 4.0.1
2022-02-04 21:54:20 +13:00
Terry MacDonald
488ea803fc First attempt at skipping the HDR and colour settings on unsupported connection types
Let's see if this works. It will skip grabbing the color data and the HDR data on monitors that don't support it. That includes the following connections types: VGA, COMPONENT, SVIDEO, DVI, COMPOSITE. Any other connection types will attempt to get HDR and Colour settings, so that we'll automatically support whatever new technology arrives in the future.  Should help fix the last part of #76.
2022-02-04 21:53:17 +13:00
Terry MacDonald
b03106f40b New Build 2022-02-04 21:35:59 +13:00
Terry MacDonald
3aa07257b8 Working Taskbar positioning
Finally managed to get taskbar positioning working perfectly. Also managed to add a 'Profile Tools' button which will allow the user to easily move the windows taskbar around the screen to different places. Please note that Windwows 11 taskbar only works at the top of the screen, or at the bottom. The taskbar will move to the left or right, but only the start button is shown :(. So I've disabled selecting left or right in Windows 11.
2022-02-04 21:30:52 +13:00