djvj, hold on on adding sleeps to this module.
I found out why the problem is is happening.
Newer dolphin versions create two windows.
The main one with the title: Dolphin 4.0-6217 ahk_class wxWindowNR, and the game one with the title: Dolphin 4.0-6217 | JIT64 DC | OpenGL | HLE | FPS: 60 - VPS: 60 - 100% ahk_class wxWindowNR
I changed the module code to wait for the game window and that should solve the issue.
Guys, please test this module and let us know what happens.
https://www.dropbox.com/s/0ltax5ygffkpvma/Dolphin.ahk?dl=0
Maybe this is the same that is happening with the other modules with similar issues. We need to check it out.
I don't know if older versions also have the two windows, or if this was introduced in the newer ones. If they have, we will need to add my code changes as a option to be selected in the module options.