EOSERV Forum > Client Editing > Caption Changer release
Topic is locked.
Page: << 1 >>
Caption Changer release
Author Message
Post #44015 Caption Changer release

some kid posted a little code about editing the titlebar text of endless..

this will launch eo, change the titlebar and taskbar and then close the caption changer

run from within the endless folder.. change config\caption.ini to what you want


http://www.mediafire.com/?89wk48831zll91z

15 years, 49 weeks ago
Post #44029 Re: Caption Changer release

This can be done just as easily by hex editing the .exe.

Other things you can hex edit:

Password Recovery Link in Help Menu

Client Version #

# of Selectable Races at Character Creation

Default Game Credits

.exe Properties Tags

...and many more things. You should be able to virtually customize the EO client to no ends. Next thing to look for in hex is effect association (Oooohhh, Ahhhhh) :P

15 years, 49 weeks ago
Post #44053 Re: Caption Changer release

Doesnt work, it just says cannot find target

15 years, 49 weeks ago
Post #44054 Re: Caption Changer release

That's what it says for me.

15 years, 49 weeks ago
Post #44057 Re: Caption Changer release

Works! Need:

1- Open EO

2- Open the Caption Changer

15 years, 49 weeks ago
Post #44063 Re: Caption Changer release

you shouldnt have to open endless first.. you just need to have it correctly setup

15 years, 49 weeks ago
Post #44070 Re: Caption Changer release

okay a few things i forgot to mention


if you have eoaddons.. this will not work, because the code has it launch endless, then does the process of changing it very fast. eoaddons causes it not to be launched fast enough, causing it to not beable to find the target.


if it becomes a big enough problem i'll add a timer..


form1:

Option Explicit
'two textboxes required
'original code
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, _
ByVal lpWindowName As String) As Long
Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, _
ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
Private Const WM_SETTEXT = &HC
'/original code

Private Sub Form_Load()
On Error GoTo Shit

Me.Visible = False
App.TaskVisible = False

Shell (App.Path & ReadIniValue(App.Path & "\config\caption.ini", "Path", "ProgramName")), vbNormalFocus

'read from INI
Text1.Text = ReadIniValue(App.Path & "\config\caption.ini", "Caption", "Old")
Text2.Text = ReadIniValue(App.Path & "\config\caption.ini", "Caption", "New")

'original code
Dim target_hwnd As Long
Dim target_name As String
Dim new_caption As String
target_name = Text1.Text
target_hwnd = FindWindow(vbNullString, target_name)
If target_hwnd = 0 Then
MsgBox "Cannot find target"
'small edit
Unload Me
Exit Sub
End If
new_caption = Text2.Text
SendMessage target_hwnd, WM_SETTEXT, 0, ByVal new_caption
'/original code
Call Load(Form2)
Form2.Show
Form2.Visible = False
Unload Me

Shit:
Unload Me
End Sub

form2 is the same thing, but minus the loading of the form2 and loading endless


module:

Option Explicit

Public Function ReadIniValue(INIpath As String, KEY As String, Variable As String) As String
Dim NF As Integer
Dim Temp As String
Dim LcaseTemp As String
Dim ReadyToRead As Boolean
   
AssignVariables:
        NF = FreeFile
        ReadIniValue = ""
        KEY = "[" & LCase$(KEY) & "]"
        Variable = LCase$(Variable)
   
EnsureFileExists:
    Open INIpath For Binary As NF
    Close NF
    SetAttr INIpath, vbArchive
   
LoadFile:
    Open INIpath For Input As NF
    While Not EOF(NF)
    Line Input #NF, Temp
    LcaseTemp = LCase$(Temp)
    If InStr(LcaseTemp, "[") <> 0 Then ReadyToRead = False
    If LcaseTemp = KEY Then ReadyToRead = True
    If InStr(LcaseTemp, "[") = 0 And ReadyToRead = True Then
        If InStr(LcaseTemp, Variable & "=") = 1 Then
            ReadIniValue = Mid$(Temp, 1 + Len(Variable & "="))
            Close NF: Exit Function
            End If
        End If
    Wend
    Close NF
End Function

15 years, 49 weeks ago
Post #44071 Re: Caption Changer release

If EOAddons is really a problem I could make you a EOCaption.eaf that sets the caption to whatever you want =P Seems a little pointless to me.

Hell, if you really wanted I could make an addon that replaces the entire titlebar with a graphic for your server =P

EO.Addons is so cool. hehe.



---
http://sordie.co.uk
http://twitter.com/@SordieEO
15 years, 49 weeks ago
Post #44083 Re: Caption Changer release

Just "0.0" At your DP Lol, Yea you should do that with EO Addons.

15 years, 49 weeks ago
Post #44163 Re: Caption Changer release

It works fine if EO is open first

15 years, 49 weeks ago
Post #44195 Re: Caption Changer release

Updates to CC and EoConfig:

http://www.mediafire.com/?vmxtjwrsv05lung


sorry about the double file.. i just wanted to get these out before i went on vacation


--updates--

-CC-
Added a timer
Can change the timer interval in caption.ini

when extracting, copy over all existing files...


just realized that i left the titlebar caption to work with eoaddons, but forgot to change it back.. make sure you configure correctly... \config\caption.ini


15 years, 49 weeks ago
Page: << 1 >>
Topic is locked.
EOSERV Forum > Client Editing > Caption Changer release