Jump to content

BezelDraw MoveWindow - Failed


SneakingSpin

Recommended Posts

I have the newest Mednafen version setup with RocketLauncher and it launches correctly, the bezels are shown and all seems right. But it takes about 8 seconds from when the emulator is loaded to display it with the Bezels. So I can already hear the game sounds while the fade in screen is still showing. According to the RocketLauncher logs it tries to get the Window in the correct position multiple times and fails. But when I can finally see it, everything seems right. Attached is the log. Has anyone an idea how I could prevent this?

 

Quote

23:14:43:357 | MD | INFO | +0 | BezelDraw - Started
23:14:43:443 | MD | TRACE | +94 | ReadBezelIniFile - Bezel ini file found. Defined screen positions: X1=240 Y1=2 X2=1670 Y2=1078
23:14:43:455 | MD | INFO | +0 | BezelDraw - Bezel Screen Offset: left= top= right= bottom=
23:14:43:478 | MD | INFO | +31 | HideWindowDecorators - Started
23:14:43:507 | MD | INFO | +31 | HideWindowDecorators - disableHideBorder=, disableHideTitleBar=, disableHideToggleMenu=, hideBorderFirst=
23:14:43:546 | MD | INFO | +32 | ToggleMenu - Started
23:14:44:074 | MD | WARNING | +531 | ToggleMenu - Timed out trying to restore MenuBar for 0x1608fa
23:14:44:075 | MD | INFO | +0 | ToggleMenu - Ended
23:14:44:106 | MD | INFO | +31 | HideWindowDecorators - Ended
23:14:44:136 | MD | INFO | +31 | MoveWindow - Moving window ahk_id 0x1608fa to X=320, Y=3, W=1907 H=1435
23:14:44:238 | MD | TRACE | +110 | WinMove - Moved ahk_id 0x1608fa to x:320 y:3 w: 1907 h: 1435
23:14:44:239 | MD | TRACE | +0 | WinGetPos - Retrieved x:320 y:3 w: 1911 h: 1468 from ahk_id 0x1608fa
23:14:44:555 | MD | TRACE | +312 | WinMove - Moved ahk_id 0x1608fa to x:320 y:3 w: 1907 h: 1435
23:14:44:556 | MD | TRACE | +0 | WinGetPos - Retrieved x:320 y:3 w: 1911 h: 1468 from ahk_id 0x1608fa
23:14:44:864 | MD | TRACE | +313 | WinMove - Moved ahk_id 0x1608fa to x:320 y:3 w: 1907 h: 1435
23:14:44:865 | MD | TRACE | +0 | WinGetPos - Retrieved x:320 y:3 w: 1911 h: 1468 from ahk_id 0x1608fa
23:14:45:177 | MD | TRACE | +312 | WinMove - Moved ahk_id 0x1608fa to x:320 y:3 w: 1907 h: 1435
23:14:45:178 | MD | TRACE | +0 | WinGetPos - Retrieved x:320 y:3 w: 1911 h: 1468 from ahk_id 0x1608fa
23:14:45:492 | MD | TRACE | +313 | WinMove - Moved ahk_id 0x1608fa to x:320 y:3 w: 1907 h: 1435
23:14:45:493 | MD | TRACE | +0 | WinGetPos - Retrieved x:320 y:3 w: 1911 h: 1468 from ahk_id 0x1608fa
23:14:45:802 | MD | TRACE | +312 | WinMove - Moved ahk_id 0x1608fa to x:320 y:3 w: 1907 h: 1435
23:14:45:803 | MD | TRACE | +0 | WinGetPos - Retrieved x:320 y:3 w: 1911 h: 1468 from ahk_id 0x1608fa
23:14:46:121 | MD | TRACE | +313 | WinMove - Moved ahk_id 0x1608fa to x:320 y:3 w: 1907 h: 1435
23:14:46:122 | MD | TRACE | +0 | WinGetPos - Retrieved x:320 y:3 w: 1911 h: 1468 from ahk_id 0x1608fa
23:14:46:426 | MD | TRACE | +312 | WinMove - Moved ahk_id 0x1608fa to x:320 y:3 w: 1907 h: 1435
23:14:46:427 | MD | TRACE | +0 | WinGetPos - Retrieved x:320 y:3 w: 1911 h: 1468 from ahk_id 0x1608fa
23:14:46:743 | MD | TRACE | +313 | WinMove - Moved ahk_id 0x1608fa to x:320 y:3 w: 1907 h: 1435
23:14:46:744 | MD | TRACE | +0 | WinGetPos - Retrieved x:320 y:3 w: 1911 h: 1468 from ahk_id 0x1608fa
23:14:47:058 | MD | TRACE | +312 | WinMove - Moved ahk_id 0x1608fa to x:320 y:3 w: 1907 h: 1435
23:14:47:059 | MD | TRACE | +0 | WinGetPos - Retrieved x:320 y:3 w: 1911 h: 1468 from ahk_id 0x1608fa
23:14:47:371 | MD | TRACE | +313 | WinMove - Moved ahk_id 0x1608fa to x:320 y:3 w: 1907 h: 1435
23:14:47:372 | MD | TRACE | +0 | WinGetPos - Retrieved x:320 y:3 w: 1911 h: 1468 from ahk_id 0x1608fa
23:14:47:681 | MD | TRACE | +312 | WinMove - Moved ahk_id 0x1608fa to x:320 y:3 w: 1907 h: 1435
23:14:47:682 | MD | TRACE | +0 | WinGetPos - Retrieved x:320 y:3 w: 1911 h: 1468 from ahk_id 0x1608fa
23:14:47:996 | MD | TRACE | +313 | WinMove - Moved ahk_id 0x1608fa to x:320 y:3 w: 1907 h: 1435
23:14:47:997 | MD | TRACE | +0 | WinGetPos - Retrieved x:320 y:3 w: 1911 h: 1468 from ahk_id 0x1608fa
23:14:48:303 | MD | TRACE | +312 | WinMove - Moved ahk_id 0x1608fa to x:320 y:3 w: 1907 h: 1435
23:14:48:304 | MD | TRACE | +0 | WinGetPos - Retrieved x:320 y:3 w: 1911 h: 1468 from ahk_id 0x1608fa
23:14:48:614 | MD | TRACE | +313 | WinMove - Moved ahk_id 0x1608fa to x:320 y:3 w: 1907 h: 1435
23:14:48:615 | MD | TRACE | +0 | WinGetPos - Retrieved x:320 y:3 w: 1911 h: 1468 from ahk_id 0x1608fa
23:14:48:930 | MD | TRACE | +312 | WinMove - Moved ahk_id 0x1608fa to x:320 y:3 w: 1907 h: 1435
23:14:48:931 | MD | TRACE | +0 | WinGetPos - Retrieved x:320 y:3 w: 1911 h: 1468 from ahk_id 0x1608fa
23:14:49:245 | MD | TRACE | +313 | WinMove - Moved ahk_id 0x1608fa to x:320 y:3 w: 1907 h: 1435
23:14:49:246 | MD | TRACE | +0 | WinGetPos - Retrieved x:320 y:3 w: 1911 h: 1468 from ahk_id 0x1608fa
23:14:49:560 | MD | TRACE | +312 | WinMove - Moved ahk_id 0x1608fa to x:320 y:3 w: 1907 h: 1435
23:14:49:561 | MD | TRACE | +0 | WinGetPos - Retrieved x:320 y:3 w: 1911 h: 1468 from ahk_id 0x1608fa
23:14:49:562 | MD | WARNING | +0 | MoveWindow - Failed: Window ahk_id 0x1608fa at X=320, Y=3, W=1911 H=1468
23:14:49:636 | MD | TRACE | +78 | BezelDraw - Bezel Image Screen Position: BezelImage left=0 top=0 right=2560 bottom=1440
23:14:49:637 | MD | TRACE | +0 | BezelDraw - Game Screen Position: BezelImage left=320 top=3 right=2227 bottom=1438
23:14:49:637 | MD | TRACE | +0 | EnableBezelKeys - Bezel Keys Enabled
23:14:49:638 | MD | INFO | +0 | BezelDraw - Ended

 

Link to comment
Share on other sites

I found a workaround. I edited the Mednafen.ahk module and send a Pause command to the emulator before and after the Bezeldraw command. It still takes unnecessarily long to show the emulator but at least the game doesn't start before it shows and I don't hear the sound from the game already while it's still not showing.

Quote

KeyUtils.SetKeyDelay(50)
KeyUtils.Send("{Pause}")
BezelDraw()
KeyUtils.Send("{Pause}")

 

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...