This script can be used when your game gets in background (when the game opens a window for example).
The key codes for ALT and TAB - and every other key codes btw - are taken from https://keycode.info/table-of-all-keycodes.
Here is the minifed script:
javascript:void%20function(){(async()=%3E{function%20a(a){return%20new%20Promise(b=%3E{setTimeout(b,a)})}async%20function%20b(){c({isPressed:!0,code:9}),await%20a(100),c({isPressed:!1,code:9}),await%20a(100)}const%20c=({isPressed:a,code:b})=%3ESessionHandler.sendEvents({type:%22keyboard%22,action:%22button%22,isPressed:a,code:b});c({isPressed:!0,code:18}),await%20a(100);const%20d=document.createElement(%22div%22),e=document.createElement(%22button%22);e.innerText=%22TAB%22,e.onclick=async()=%3E{await%20b()};const%20f=document.createElement(%22button%22);f.innerText=%22Confirm%20and%20close%22,f.onclick=async()=%3E{c({isPressed:!1,code:18}),await%20a(100),d.remove()},d.style.bottom=%2225px%22,d.style.width=%22100vw%22,d.style.left=%220%22,d.style.zIndex=%22999%22,d.style.position=%22fixed%22,d.style.display=%22flex%22,d.style.flexDirection=%22column%22,d.style.gap=%2224px%22,e.style.padding=%224px%208px%22,f.style.padding=%224px%208px%22,d.appendChild(e),d.appendChild(f),document.body.append(d)})()}();
If you don't trust it, minify the code below (in the other file) yourself by using this tool.
Two methods
- Slow method: Copy the minifed script and paste it the URL bar (don't forget the
javascript:
at the beginning). - Fast method: Copy the minifed script and create a bookmark with the URL in it (don't forget the
javascript:
at the beginning).- Using this method, you'll be able to run the script by clicking on the bookmark.
When you run the script, it will press ALT.
Now you'll have two buttons on the screen...
- "TAB": When you press it, it will send TAB.
- "Close and confirm": This will release the ALT key and remove the helper from Boosteroid.
Now you can go back on your game, even if the game have opened another window !
By the way !, you'll see a CMD running the ALT+TAB menu that's called boosteroid-experience
. DON'T CLOSE IT, or your session will be automatically stopped.