If you never used TikFinity before you will need to install it with the link tikfinity give you or directly here : https://www.autoitscript.com/site/autoit/downloads/
To get the window game in focus mode it's very easy, you juste have to go on the game window and click on it with your mouse !
Be sure to stay on the game window to get your interaction working correctly