Thanks to your help I got it working
I checked the .toc, and the last files to load are: Code\GUI\KTM_OptionsGui.lua
Code\GUI\KTM_Frame.xml
Code\GUI\KTM_OptionsFrame.xml
So I changed the enableMouse in the three lines among the two xml files to false, but that didn't help. So I then went into OptionsGui, and at the top it said:
Controls a Gui for viewing and editing settings on the main window. See also
KTM_OptionsFrame.xml, KTM_Gui.lua.
So just in case, I scrolled down in OptionsGui and in the last function-end section, I added the /run command, but that also didn't help. So finally, I went into KTM_Gui.lua, went to the bottom, and added the /run command so it looks like this:
function KLHTM_Frame_OnDragStop()
gui.frame:StopMovingOrSizing();
KLHTM_Frame:EnableMouse(false)
end
Now it works! Thanks for all the help. I used the run command ingame to position the frame where I want, and then now I don't have to worry about it anymore. I'll keep this in mind if I ever need it for other addons