DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: DONE: Create dll file to change title bar of a software forever  (Read 29,694 times)

festi19

  • Participant
  • Joined in 2012
  • *
  • Posts: 5
I want to create something that will change forever the title bar of a software. Is it possible?

Krishean

  • I like pie
  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 75
    • Participated in NANY Challenge Three Times
Re: DONE: Create dll file to change title bar of a software forever
« Reply #1 on: August 26, 2012, 11:07 PM »
Yes, this is possible, and there are multiple ways to achieve it.

You can modify the software itself to change the title bar text with hex editing, but this may change where the same text is displyed in other parts of the program (note: this may violate the eula of the program, you would have to check.)
You can create a program to change the text after the program has loaded (easy way.)
You can create a dll that changes the text after the program has loaded.
You can create a dll that hooks certain apis to watch for changes to the title bar and keep it set to your custom text (harder to do, but effective.)
Any sufficiently advanced technology is indistinguishable from magic.

- Arthur C. Clarke

festi19

  • Participant
  • Joined in 2012
  • *
  • Posts: 5
Re: DONE: Create dll file to change title bar of a software forever
« Reply #2 on: August 26, 2012, 11:25 PM »
Thanks for posting, I tried with hex editor doing it, but with no success. I haven't seen there any place when the title is, but I will try it once again. If this doesn't success, I think the best solution is creating a dll and put it in the folder that software is installed, so that will change the title forever. I would be glad if you could help me doing it somehow, because I'm new at the programming field and don't know much stuff.

I will post again after trying hex editor and tell the results.

AndyM

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 616
Re: DONE: Create dll file to change title bar of a software forever
« Reply #3 on: August 27, 2012, 01:24 AM »
There's an AutoHotkey command (WinSetTitle) that will do this.

Ath

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 3,649
    • Participated in NANY Challenge Eleven Times
    • Coding Snacks
    • Linux User
    • Hardware Hacker
Re: DONE: Create dll file to change title bar of a software forever
« Reply #4 on: August 27, 2012, 06:58 AM »
A lot of software sets it's Window title dynamically, so one of the solutions suggested by Krishean is probably most effective.
/Ton
Ath's software collection, Quote: "A problem well stated is a problem half-solved." (Charles Kettering)

Stoic Joker

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 6,652
    • Cody Award
    • Participated in NANY Challenge Five Times
Re: DONE: Create dll file to change title bar of a software forever
« Reply #5 on: August 27, 2012, 11:49 AM »
I tried with hex editor doing it, but with no success.

When you searched for the string in the hex editor were you looking for [string] or ? Because if you don't add the extra spaces it'll never show up.

Just a thought,

Stoic Joker

festi19

  • Participant
  • Joined in 2012
  • *
  • Posts: 5
Re: DONE: Create dll file to change title bar of a software forever
« Reply #6 on: August 27, 2012, 06:10 PM »
Well, I tried all day long changing stuff there with Hex Edit 4.0 but with no success.. Is it possible that the caption of title bar to be somewhere else at other files installed with that software, like dll files installed in the same folder?  Otherwise, I would be glad if someone  takes the courage to help me out doing a solution like Krishean has suggested, because I don't know much about programming and don't know how to create such a .dll file.

I'm stuck here and don't have the smallest idea how I will continue.

Ath

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 3,649
    • Participated in NANY Challenge Eleven Times
    • Coding Snacks
    • Linux User
    • Hardware Hacker
Re: DONE: Create dll file to change title bar of a software forever
« Reply #7 on: August 27, 2012, 07:54 PM »
I'm stuck here and don't have the smallest idea how I will continue.
We're stuck without any further application details, and, as I said, often the title is set programmatically, so it would need to be reset if changed by some internal cause/reason/event.
/Ton
Ath's software collection, Quote: "A problem well stated is a problem half-solved." (Charles Kettering)

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,736
    • Coding Snacks
Re: DONE: Create dll file to change title bar of a software forever
« Reply #8 on: August 27, 2012, 11:22 PM »
If the window is an ordinary window with caption bar and a unique title, then this may be good enough in AutoIt3

Code
AutoItSetOption("TrayMenuMode", 3)
TraySetClick(8)
$exititem = TrayCreateItem("Quit")
$oldTitle = "EditPad Lite 7"
$myTitle = "The Tile I Want"

While 1
	$msg = TrayGetMsg()
	Select
		Case $msg = 0
			If WinExists($oldTitle) Then
				WinSetTitle($oldTitle,"",$myTitle)
			EndIf

		Case $msg = $exititem
			Exit

	EndSelect
WEnd

If the program changes the title as an editor does when you load a file or a browser does when it goes to a page, you may have to use the window class name to detect it. See WinExists in AutoIt3 help.

You can get AutoIt3 stuff here:
http://www.autoitscript.com/site/autoit/downloads/

Forum programming help here:
http://www.autoitscript.com/forum/index.php?

festi19

  • Participant
  • Joined in 2012
  • *
  • Posts: 5
Re: DONE: Create dll file to change title bar of a software forever
« Reply #9 on: August 29, 2012, 12:40 AM »
Thanks alot, I run sciTE and then pasted the script like you have written here.. I run that script with AutoIT3 and the title of that software have suddenly changed. That really worked. But can I ask just one more last question.. Can I paste this script or other script that's comfortable into the software or somewhere else that is tied with the software, so the title will remain changed even if I remove the autoIT from the computer? That would be exactly what I thought to be.

however, thanks a lot all of you, especially MilesAhead, you helped me a lot.

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,736
    • Coding Snacks
Re: DONE: Create dll file to change title bar of a software forever
« Reply #10 on: August 29, 2012, 12:47 AM »
You can compile the script as an exe.  Then you won't need AutoIt3 interpreter on the PC. The library is built into the exe.  But you'll have to run it in the tray.

What is this program? From what you are saying it sounds like you're trying to hack some game or other software. Why is it so important to change the title?

festi19

  • Participant
  • Joined in 2012
  • *
  • Posts: 5
Re: DONE: Create dll file to change title bar of a software forever
« Reply #11 on: August 29, 2012, 01:04 AM »
I compiled it and is working without autoIT.. Well, it's kinda private stuff, but it was a very important thing doing it and thanks to you I did it. Thank you very much again and again..

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,736
    • Coding Snacks
Re: DONE: Create dll file to change title bar of a software forever
« Reply #12 on: August 29, 2012, 01:53 AM »
Oh well. Not exactly a trade secret. So I guess it's ok. Glad to get another satisfied customer.


Arizona Hot

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,197
Re: DONE: Create dll file to change title bar of a software forever
« Reply #13 on: December 03, 2012, 08:20 AM »
If you change the title bar of Windows, will you cease to exist?
"If you can't be a good example, then you'll just have to be a horrible warning"  - Catherine Aird

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,736
    • Coding Snacks
Re: DONE: Create dll file to change title bar of a software forever
« Reply #14 on: December 04, 2012, 05:13 PM »
If you change the title bar of Windows, will you cease to exist?

I dunno'. But on the headstone it will probably say
"MilesAhead has stopped responding..."

:)

Original address: https://www.donationcoder.com/forum/index.php?topic=32066.0