I may have used the wrong exe, but this didn't seem to work. I'll have to work on this some more to see if I can make it work. I suspect that the function I tried to use to determine if the UI is active may not be available to that section of code. Either that, or the UI takes longer to come up than it does for the bezel mod code to run meaning that it's basically a race to see whether you will have the CP display or not. Also, I was testing with only MAME and CPWizard running (no GameEx, scripts, XPadder, etc). When I exited the CP, it minimized MAME. It looks like there may need to be a tweak in the CPWizard code? If I can do anything to help diagnose the problem, let me know.