Topic was automatically imported from the old Question2Answer platform.
Asked By
rogeriodec
Every time I press F5 to play a scene and I close it, the focus is not automatically returned to the editor.
So I have to manually click on the editor.
I’d like to get the cursor in the exact position it was in the editor before pressing F5.
How to do that?
Download this image and save it on any folder in your disk
Download this script save it on any folder in your disk
Edit the downloaded script (Godot.ahk) and replace the string C:\Users\Rogerio\Desktop\AHK\AHK_Imagens\Godot\F3.png by the exact
path where you downloaded the image F3.png
Save the edited Godot.ahk
Double click Godot.ahk. It will run Autohotkey and remain active on Windows TaskBar.
Open Godot Test F5, F6 and after ESC.
F5 and F6 will close the game window and reopen it (good when testing the game);
ESC will close the game window. Additionally, if the focus was previously on the Editor (F3), this will return the focus to the exact point of the cursor was before playing the scene.