Ok a few things I did. I turned off smart screen for windows 10. I switched back to dx11 because on dx9 it would crash if I tried to go windowed mode. So switching back to dx11 allowed me to go windowed mode and the bot works again so far. Thanks for the helping me out.