Jump to content

focus on 2nd monitor after MAME64 exit


bachatafrank

Recommended Posts

I use Hyperspin  with EDS and Hypermarquee. After I exit MAME64 (0.183) the focus is on the second monitor (marquee), I need to alt+ tab to get the focus back on the main monitor because it is frozen.

Everything worked perfectly until I added the second monitor (Hypermarquee/EDS) 

  • I use a totally stripped Windows 10, no internet, most services turned off, no notifications etc etc
  • Hyperspin 1.5.1.0
  • MAME64 0.183
  • I don't use Rocketlauncher

*I only have 1 wheel for arcade games. Emulators I use are MAME64 and Demul, exiting Demul does not seem to have this problem

Link to comment
Share on other sites

This is my AHK file:

 

GUI_ID := FadeInStart()

Run, %executable% %romName%, %emuPath%, Hide, exePID

WinWait, Ahk_pid %exePID%
WinGetClass,exeWinClass, ahk_pid %exePID%
WinWaitActive, Ahk_class %exeWinClass%

if(ErrorLevel != 0){
  if (ErrorLevel = 1){
    Error = Failed Validity
  }else if(ErrorLevel = 2){
    Error = Missing Files
  }else if(ErrorLevel = 3){
    Error = Fatal Error
  }else if(ErrorLevel = 4){
    Error = Device Error
  }else if(ErrorLevel = 5){
    Error = Game Does Not Exist
  }else if(ErrorLevel = 6){
    Error = Invalid Config
  }else if(ErrorLevel = 7 || ErrorLevel = 8 || ErrorLevel = 9){
    Error = Identification Error
  }else{
    Error = Mame Error
  }
  MsgBox Mame Error - %Error%
}

GUI_ID2 := FadeInExit()

Process, WaitClose, %executable%

GUI_ID4 := FadeOutExit()

WinActivate, Hyperspin

ExitApp

CloseProcess:

GUI_ID3 := FadeOutStart()
    WinClose, Ahk_class %exeWinClass%
return

Link to comment
Share on other sites

  • 1 month later...

Hello! Congrats for your solution... I wonder if you can share it because im having the same issue. 

Is not the same, but is very similiar, I lose the focus when Hyperspin starts (Im using JoyToKey) and i need to press alt + tab in order to get focus.

 

Thanks a lot in advance.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...