Utiliser un script AHk
gamePath=.\fix_it_felix_jr\FixitFelixJr.exe ; the full path and exe of FixitFelixJr.exe
BezelPath=F:\MUGEN\fix_it_felix_jr\Bezel.jpg ; the full path and extension to bezel file
zoom=200 ; Frame Resolution-Only 33,50,100,200 are supported
YAdjust=-5 ; adjusts vertically how far off center from the middle of the screen, 0=center, negative value moves up, positive value moves down
XAdjust=0 ; adjusts horizontally how far off center from the middle of the screen, 0=center, negative value moves to left, positive value moves to right
title=ahk_class FOCAL Test Shell
exitkey=Esc
ShowBezel=true
BackgroundColor=black ; changes background color, see here for available colors:
http://www.autohotkey.com/docs/commands ... htm#colors
rotation=90 ; still need to rotate monitor, no point in having enabled
;----------------------------------------------------------------------------------------------------
Hotkey, ~%exitkey%, Close
WinHide ahk_class Shell_TrayWnd
WinHide, ahk_class Button
SplitPath,gamePath,fileName,fileDir
Gui, GUI1: New, -Caption +ToolWindow +OwnDialogs
Gui, GUI1: Color, %BackgroundColor%
If ShowBezel = true
Gui, GUI1: Add, Picture, W%A_ScreenWidth% H%A_ScreenHeight%, %BezelPath%
Gui, GUI1: Show, x0 y0 h%A_ScreenHeight% w%A_ScreenWidth%
; rotation := If (rotation=90 || rotation=180 || rotation=270) ? " -rotate=" . rotation . " fullscreen" : ""
zoom := If (zoom=33 || zoom=50 || zoom=100 || zoom=200) ? " -zoom=" . zoom : ""
Run, %fileName% %zoom% %rotation%, %fileDir%
WinWait, %title%
WinActivate, %title%
winHwnd:=WinActive(title)
WinSet,AlwaysOnTop, On, %title%
WinSet, Style, -0xC00000, %title% ; Remove border and titlebar
DllCall("SetMenu", uint, winHwnd, uint, 0) ; Remove the MenuBar
CenterWindow(title)
Process, WaitClose, %fileName%
ExitApp
;-----Control Remaps-----
;BackSpace::c ;Insert Coin
;Enter::1 ;Start Player 1
;~?::2 ;Start Player 2
;q::Left ;Move Left
;d::Right ;Move Right
;z::Up ;Jump Up a Level
;s::Down ;Jump Down a Level
;?::{LButton} ;Jump
;Numpad1::Shift ;Fix-It
;?::{F5} ;save
;?::{F6} ;FrameSkip
;?::{F7} ;ScreenShot
;?::{scrlk} ;lock mouse crosshairs to center of screen
;------------------------
CenterWindow(class) {
Global YAdjust
Global XAdjust
WinGetPos, appX, appY, appWidth, appHeight, %class%
appXPos := ( A_ScreenWidth / 2 ) - ( appWidth / 2 )
appYPos := ( A_ScreenHeight / 2 ) - ( appHeight / 2 )
WinMove, %class%,, % (appXPos+XAdjust), % (appYPos+YAdjust), appWidthNew, appHeightNew
}
Close:
WinClose, ahk_class FOCAL Test Shell
WinShow, ahk_class Shell_TrayWnd
WinShow, ahk_class Button
Return