Skip to content

Commit

Permalink
- Stop video snap on game launch
Browse files Browse the repository at this point in the history
  • Loading branch information
Speedvicio committed May 6, 2024
1 parent 959599c commit 0770d44
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion MetroMed/MetroMed.vb
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ Public Class MetroMed
Private Sub PlayMedia(ByRef FileName As String, ByVal Window As Control)

FileName = Chr(34) & FileName & Chr(34)
mciSendString("open " & FileName & " type MPEGVideo alias 0 wait parent " & Window.Handle.ToInt32 & " style " & CStr(WS_CHILD), Nothing, 0, 0)
mciSendString("open " & FileName & " type MPEGVideo alias 0 parent " & Window.Handle.ToInt32 & " style " & CStr(WS_CHILD), Nothing, 0, 0)
'mciSendString("put 0 window at 0 0 " & CStr(PixelToTwip(Window.ClientRectangle.Width) / 15) & " " & CStr(PixelToTwip(Window.ClientRectangle.Height) / 15), Nothing, 0, 0)
SizeVideoWindow(Window.Size)
mciSendString("play 0 repeat", Nothing, 0, 0)
Expand Down Expand Up @@ -696,6 +696,7 @@ Public Class MetroMed
End Sub

Public Sub StartProcess()
mciSendString("Close 0", Nothing, 0, 0)
Dim execute As New Process
Try
With execute.StartInfo
Expand Down

0 comments on commit 0770d44

Please sign in to comment.