thx, i wll read this. 
 
	but i try it with AHK and my script works. 
 
	 
 
	Joy7:: 
	if GetKeyState("Joy8") 
	Goto, kill_emu 
	return
 
	Joy8:: 
	if GetKeyState("Joy7") 
	Goto, kill_emu 
	return
 
	 
	kill_emu: 
	{ 
	Process, Exist, Dolphin.exe 
	If ErrorLevel <> 0 
	    Process, Close, Dolphin.exe
 
	Process, Exist, Project64.exe 
	If ErrorLevel <> 0 
	    Process, Close, Project64.exe
 
	return 
	}