Quote:
I have this set up to switch to Chrome browser if it's not focused or if it's minimized. All you have to do here is to place the ".exe" file of the game where "C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe" is and replace it with yours.
var appID = BFS.Application.GetAppIDByFile("C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe");
var appWindow = BFS.Application.GetMainWindowByAppID(appID);
BFS.Window.Focus(appWindow);