Skip to content

Instantly share code, notes, and snippets.

@ozon
Created June 22, 2014 04:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ozon/2c3b98161329b583b4a5 to your computer and use it in GitHub Desktop.
Save ozon/2c3b98161329b583b4a5 to your computer and use it in GitHub Desktop.
Borderless DMD for Pinball FX2
#Persistent
SetBatchLines, -1
Process, Priority,, High
Gui +LastFound
hWnd := WinExist()
DllCall( "RegisterShellHookWindow", UInt,hWnd )
MsgNum := DllCall( "RegisterWindowMessage", Str,"SHELLHOOK" )
OnMessage( MsgNum, "ShellMessage" )
Return
ShellMessage( wParam,lParam )
{
If ( wParam = 1)
{
IfWinExist Pinball FX2 DotMatrix
{
WinSet, Style, -0xC00000 ; hide title bar
WinSet, Style, -0x800000 ; hide thin-line border
WinSet, Style, -0x400000 ; hide dialog frame
WinSet, Style, -0x40000 ; hide thickframe/sizebox
;WinMove, , , 0, 0, 1920, 1080
}
}
}
Return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment