Closed sytone closed 4 years ago
This could very well be a bug. Could you please get me the contents of %AppData%\MaxTo\config.json
as well?
Yep.
{
"$schema": "https://maxto.net/config.schema.json",
"language": null,
"startup": {
"startOnLogon": true,
"runElevated": false
},
"updates": {
"enabled": true,
"channel": "Beta"
},
"behavior": {
"snap": {
"to": [
"Window",
"Region",
"Screen"
],
"distance": 10
},
"transparentWindowsWhenMoving": true
},
"shims": {
"toggled": {}
},
"license": {
"firstStart": "2018-12-05T18:35:39.3635097Z"
},
"recipes": [
{
"name": "Move window left",
"hotkey": "Windows+NumPad4",
"ingredients": [
{
"command": "window:move",
"parameters": {
"direction": "Left"
}
}
]
},
{
"name": "Move window up",
"hotkey": "Windows+NumPad8",
"ingredients": [
{
"command": "window:move",
"parameters": {
"direction": "Up"
}
}
]
},
{
"name": "Move window right",
"hotkey": "Windows+NumPad6",
"ingredients": [
{
"command": "window:move",
"parameters": {
"direction": "Right"
}
}
]
},
{
"name": "Move window down",
"hotkey": "Windows+NumPad2",
"ingredients": [
{
"command": "window:move",
"parameters": {
"direction": "Down"
}
}
]
},
{
"name": "Swap window left",
"hotkey": "Windows+Control+NumPad4",
"ingredients": [
{
"command": "window:move",
"parameters": {
"direction": "Left",
"swap": true
}
}
]
},
{
"name": "Swap window up",
"hotkey": "Windows+Control+NumPad8",
"ingredients": [
{
"command": "window:move",
"parameters": {
"direction": "Up",
"swap": true
}
}
]
},
{
"name": "Swap window right",
"hotkey": "Windows+Control+NumPad6",
"ingredients": [
{
"command": "window:move",
"parameters": {
"direction": "Right",
"swap": true
}
}
]
},
{
"name": "Swap window down",
"hotkey": "Windows+Control+NumPad2",
"ingredients": [
{
"command": "window:move",
"parameters": {
"direction": "Down",
"swap": true
}
}
]
},
{
"name": "Center window",
"hotkey": "Windows+NumPad5",
"ingredients": [
{
"command": "window:center",
"parameters": {}
}
]
},
{
"name": "VDMove",
"hotkey": "Windows+Divide",
"ingredients": [
{
"command": "window:move",
"parameters": {
"window": "",
"monitor": "",
"virtualDesktop": 0
}
}
]
},
{
"name": "VDMoveOne",
"hotkey": "Windows+Multiply",
"ingredients": [
{
"command": "window:move",
"parameters": {
"window": "",
"monitor": "",
"virtualDesktop": 1
}
}
]
},
{
"name": "ResetWindowScript",
"hotkey": "Windows+NumPad0",
"ingredients": [
{
"command": "uncategorized:launch",
"parameters": {
"executable": "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",
"arguments": "-NoProfile -File C:\\Users\\REDACTED\\OneDrive\\scripts\\powershell\\CoreFunctions\\setupmaxto.ps1"
}
}
]
}
],
"monitor": {
"idSelection": "SerialNumber",
"virtualDesktop": true
},
"errorReporting": {
"anonymityLevel": "MachineIdentifier",
"enabled": true
},
"presets": [
{
"type": "split",
"splits": {
"orientation": "Vertical",
"distance": 0.5,
"child1": null,
"child2": null
},
"name": "Two-way vertical"
},
{
"type": "split",
"splits": {
"orientation": "Horizontal",
"distance": 0.5,
"child1": null,
"child2": null
},
"name": "Two-way horizontal"
},
{
"type": "split",
"splits": {
"orientation": "Horizontal",
"distance": 0.25014543339150669,
"child1": null,
"child2": {
"orientation": "Horizontal",
"distance": 0.75005498786869174,
"child1": null,
"child2": null
}
},
"name": "VD0-Default"
},
{
"type": "split",
"splits": {
"orientation": "Horizontal",
"distance": 0.33304246655031983,
"child1": null,
"child2": null
},
"name": "VD1-Default"
}
]
}
If you delete the lines saying "window": "",
and "monitor": ""
(I saw two instances of each), does it work then?
No, still throws COM exception
@sytone I cannot see a COM Exception in the logs above. Can you be a bit more specific? Is this still an issue in beta 7?
Updated to 7 and most command seem to be working. Still get a error on the command to move active window between desktops. I just want a keyboard combo to send the active window to a specific desktop so noting set but the desktop number.
It keeps on injecting the empty values back into the config.
2019-01-18 08:20:54 [MaxTo.Core@2.0.0.392] [Information] Executing recipe '"VDMoveOne"' with 1 ingredients
2019-01-18 08:20:54 [MaxTo.Core@2.0.0.392] [Warning] Received exception from command request 1 while executing '"VDMoveOne"'. Aborting.
System.NullReferenceException: Object reference not set to an instance of an object.
at WindowsDesktop.VirtualDesktopHelper.MoveToDesktop(IntPtr hWnd, VirtualDesktop virtualDesktop)
at MaxTo.Core.Commands.Window.MoveCommand.<Execute>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at MaxTo.Core.Commands.CommandExecutor.<Execute>d__3`2.MoveNext()
Recipie
{
"name": "VDMoveOne",
"hotkey": "Windows+Multiply",
"ingredients": [
{
"command": "window:move",
"parameters": {
"virtualDesktop": 1,
"window": "",
"monitor": ""
}
}
]
},
{
"name": "VDMove",
"hotkey": "Windows+Divide",
"ingredients": [
{
"command": "window:move",
"parameters": {
"virtualDesktop": 0,
"window": "",
"monitor": ""
}
}
]
}
@sytone If you manually delete the window
and monitor
lines, does it start to work then?
I have made a fix that stops the changes made in the user interface from outputting these empty string lines. Instead the value will be set to null
, which MaxTo interprets correctly.
I'm experiencing this issue as well. New user as of today. Running Windows 8.1 - when I type CMD + Alt + C (to center window) I get the popup in the bottom right with no explanation as to how to resolve. I am using a Samsung external TV as a monitor through full size HDMI port on a Razer Blade 2014
@s3w47m88 Does this also happen after editing the config.json
file and changing window
and monitor
to null
instead of ""
?
Closing due to lack of feedback.
Describe the bug After unlocking my machine I get the error below, restarting MaxTo enables the recipe to work again. This has only recently started happening. Happens for all apps.
To Reproduce Steps to reproduce the behavior:
Expected behavior App to move between windows
Screenshots
System information:
Additional context Please collect and attach log files that may be relevant, but cut them down for brevity. For MaxTo crashes, please see
%AppData%\MaxTo\maxto.log
. For installer issues, please see%LocalAppData%\SquirrelTemp\SquirrelSetup.log