GSX or EZDOK doesn't use F12 key. I've assigned GSX to W key for the show/hide window.
You cannot assign a key already used by FSX, this will create issues with Simconnect too. Try a combination with TAB, which are never used by FSX.
Its only restarting GSX that corrupts ezdok or makes it stop working
GSX doesn't "corrupt" anything. and doesn't have the slightest knowledge about other modules, and surely not Ezdok.
As I've said: is GSX still working normally after a restart ? If yes, then the problem doesn't have anything to do with GSX. Also, do you have other 3rd programs running ? Do they all work after restarting GSX ?
If it's just Ezdok, it's clear the problem is happening inside it, and I suspect it has something to do with the way it handles the keyboard, because ALL users that reported problems with Ezdok so far, they ALL fixed it by being sure there were no key conflict.
But again, since the program that has stopped to work is NOT GSX, you should really ask the question to Ezdok support too, and see if they have some ideas about it.