First of all thanks a lot for taking the time to help me. Sorry for the confusion and since english isn't my first language it doesn't help.
Okay my emulator is demul and I use it to start naomi games. When I start the game (using P1B1) it boots, but as soon as I select a character (when I press P1B1 again) mala tries to boot the game again so auto hot key says that its trying to run another instance of the script (not exact wording) and asks me if I want to run this one instead. This behavior is normal because when I click on my ahk when the game is already started it does exactly the same thing.
Oh and the game only boots when it is in a separate list. I'm just it's my mame.cmd that is faulty but I don't understand much in these things, actually I'm quite impressed that my ahk is starting the game.
Thanks once again guys, without the help of this forum I wouldn't even have a cabinet