The program needs to be run as an administrator for it to work in WoWs. Right-click on AutoHotkey shortcut and follow the "Open file Location" option as long as it's there - until you get to AutoHotkey.exe - then right-click on it and select Properties, go to tab compatibility and check "Run this program as an administrator".
Next time you launch your script, you will get the UAC prompt and as long as you confirm, the binding will work inside the game.
Example script Wows.ahk:
#IfWinActive ahk_exe WorldOfWarships.exeSpace::LButton#IfWinActive
Thanks for this information. I can finally play this game.