Quote:
Originally Posted by daiquiri
anyone has tried modding the soundfiles of ongame? I tried replacing them but the client keeps overwriting them. Ongame sounds are way too sharp for my taste, especially the sound of raising, it's tilting me.
I made sound pack for myself too and I have not much clue about AHK but for some time now I use this modstarter-script :
Keep in mind that this is for Hollywood! Modify accordingly!
; OngameMod Starter v0.50
; Autor: Chris
; contributions by Roland ('s Functions)
; Contact: Chris228 @ 2+2 forum
#NoEnv
#SingleInstance force
SendMode Input
;------------- Settings -----------------------------------------------------------------------------
; Set the path to your OngameClient.exe
path=C:\Program Files\HollywoodPoker\StartHollywoodPoker.exe
; If the table mod is copied you will get a message ( 1 = enabled, 0 = disabled )
CopyMsg=0
; Automatic closing of the Welcome/News window from the Ongame client ( 1 = enabled, 0 = disabled )
CloseWelcomeMsg=0
; Using the login window for detection if the client has started ( 1 = enabled, 0 = disabled )
UseLogin=0
;------------- Program ------------------------------------------------------------------------------
wdir:=""
StringGetPos, pos, path, \, r1
if (pos > 0)
StringLeft, wdir, path, pos+1
FileCopy, %wdir%\resources\graphics\originals\*.*, %wdir%\resources\graphics\, 1
FileCopy, %wdir%\resources\sounds\originals\*.*, %wdir%\resources\sounds\, 1
sleep, 1000
Run, %path%, %wdir%
FileList =
Loop %wdir%resources\graphics\mod\*.*
FileList = %FileList%%A_LoopFileName%`n
sleep, 3000
stopTimer := CreateStopTimer(60)
Loop, parse, FileList, `n
{
if ( A_LoopField = "" )
break
FileCopy, %wdir%resources\graphics\%A_LoopField%, %wdir%\resources\graphics\originals\, 1
}
Loop {
sleep, 500
if ( UseLogin = 1)
id:=LoginIDPokerRoom()
else
id:=LobbyIDPokerRoom()
if ! ( id = "" ) {
FileCopy, %wdir%\resources\graphics\mod\*.*, %wdir%\resources\graphics\, 1
FileCopy, %wdir%\resources\sounds\mod\*.*, %wdir%\resources\sounds\, 1
if ( CopyMsg = 1)
msgbox, 0, OngameMod Starter, Tablemod copied., 5
break
}
if (A_Now > stopTimer) {
msgbox, 4, Ongame Mod Starter, Tablemod not copied. Copy now?, 120
IfMsgBox Yes
{
FileCopy, %wdir%\resources\graphics\mod\*.*, %wdir%\resources\graphics\, 1
FileCopy, %wdir%\resources\sounds\mod\*.*, %wdir%\resources\sounds\, 1
}
break
}
}
if ( CloseWelcomeMsg = 1) {
stopTimer := CreateStopTimer(60)
Loop {
msgid:=MsgIDPokerRoom()
if ! ( msgid = "" ) {
WinClose, ahk_id %msgid%
break
}
if (A_Now > stopTimer)
break
sleep, 100
}
}
;------------- Functions -------------------------------------------------------------------------
LobbyIDPokerRoom() {
SetTitleMatchMode 1
WinGet, id, id, HollywoodPoker.com - Welcome
If ! id
WinGet, id, id, HollywoodPoker.com - Welcome
If ! id
WinGet, id, id, EurobetPoker - Welcome
If ! id
WinGet, id, id, Betsson - Welcome
return id
}
LoginIDPokerRoom() {
SetTitleMatchMode 1
WinGet, id, id, PokerRoom.com Login
If ! id
WinGet, id, id, HollywoodPoker.com Login
If ! id
WinGet, id, id, EurobetPoker Login
If ! id
WinGet, id, id, Betsson Login
return id
}
MsgIDPokerRoom() {
SetTitleMatchMode 3
WinGet, id, id, News
return id
}
CreateStopTimer(seconds)
{
stopTime := A_Now
EnvAdd, stopTime, %seconds%, seconds
return (stopTime)
}