Sorry for the late reply....yesterday was a very busy day.
Phazor wrote: ↑Fri Jun 18, 2021 6:34 pm
It's a good tool. I apologize if I didn't communicate that as thoroughly as I should.
Thanks, and no worries. As Wes mentioned, I created MQC for me and my co-workers to make Moho easier to work with. But I understand that other users can have different needs so I included the uncompiled version, which can be easily modified and recompiled.
If it helps, I’m happy to explain why MQC works the way it does...
The tool kinda adds clutter because it is designed horizontally and so it will always be in the way of something because one wouldn't want to put it at the top because it is the furthest reach away and the tool is designed for quick access, meaning it should be nearby.
The window layout and my preferred position is by design. I don’t feel this adds clutter because when the window is placed in that location, all it covers is a big empty space in Moho’s UI. For example…
When I use a Wacom stylus, it’s really not a big to deal to point to the buttons in the corner. But sometimes I use a mouse to work in Moho, so I understand that distance can be a big deal. When I’m using a mouse, I will move the MQC window closer to the area of the screen I’m working in.
BTW, after installing it, I believe MQC's default position is the center of the screen, but when it's moved to a different position, MQC remembers the new position when you close the window, and will open there the next time you launch it.
Regarding ‘quicker access’, the big one for me is Copy Layer and Paste Layer. These two commands are only ever used in the Layers Window and, when I'm using a mouse, it’s tedious to keep moving between the Layer Window and the Edit menu. By keeping MQC in the upper right side over the Layers Window, the distance I have to travel with the mouse to use these commands is much shorter. (I'm still hoping right-click commands for Copy Layer/Paste Layer will be added to the Layers Window so I can remove these buttons from MQC.)
The horizontal layout is my personal preference. MQC was inspired by Wacom’s OSC window, which is what I used with Moho until I ran out of programmable buttons (OSC allows only 8 buttons.) Also, when I’m using another Windows program, I’d probably be clicking on buttons in a horizontal tool bar under the program menus anyway, so the horizontal layout seems natural to me.
As mentioned earlier, the source code is included in the download package. Please feel free to modify the window shape and button layout to suite your needs. The coordinate system is easy to figure out, and you can change the values to resize the window and move the buttons around.
As a script, what MQC does is pretty basic...half the script creates the button panel, and the other half assigns Moho’s hotkeys to each button. I think only one or two buttons do anything unique, and that’s mainly for compatibility.
BTW, creating MQC was a good way for me to start learning AutoHotkey scripting. If you’re new to scripting, tinkering with AHK is a good way to start.
Moho doesn't remember where I last placed the windows. Each time I open Moho it isn't where I left them.
That’s very strange. Which version of Moho are you running? FWIW, this is how it works in Moho 12.5 and 13.5 on my computers at home and the one I use at work. Sorry, I don’t remember if it worked in ASP 11 and older, and I no longer have those versions installed to check.
If you are using Moho 12.5 or 13.5, something must be wrong with your installation. It sounds like Moho is unable to update its configuration file; could this be a permissions issue? Try running Moho from a shortcut using the Right-Click 'Run As Administrator' option. I’m curious to hear if that makes a difference.
Anyway, even without doing that, Moho should remember its window positions. If this doesn’t work on your computer, I would consider performing a clean re-install.
Good luck, and I hope this is helpful.