topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Friday December 13, 2024, 7:08 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

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

festi19

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

Krishean

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 75
  • I like pie
    • View Profile
    • Draconis Labs
    • Donate to Member
Re: DONE: Create dll file to change title bar of a software forever
« Reply #1 on: August 26, 2012, 06: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
  • *
  • default avatar
  • Posts: 5
    • View Profile
    • Donate to Member
Re: DONE: Create dll file to change title bar of a software forever
« Reply #2 on: August 26, 2012, 06: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
    • View Profile
    • Donate to Member
Re: DONE: Create dll file to change title bar of a software forever
« Reply #3 on: August 26, 2012, 08:24 PM »
There's an AutoHotkey command (WinSetTitle) that will do this.

Ath

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 3,629
    • View Profile
    • Donate to Member
Re: DONE: Create dll file to change title bar of a software forever
« Reply #4 on: August 27, 2012, 01:58 AM »
A lot of software sets it's Window title dynamically, so one of the solutions suggested by Krishean is probably most effective.

Stoic Joker

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 6,649
    • View Profile
    • Donate to Member
Re: DONE: Create dll file to change title bar of a software forever
« Reply #5 on: August 27, 2012, 06: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 [s t r i n g]? Because if you don't add the extra spaces it'll never show up.

Just a thought,

Stoic Joker

festi19

  • Participant
  • Joined in 2012
  • *
  • default avatar
  • Posts: 5
    • View Profile
    • Donate to Member
Re: DONE: Create dll file to change title bar of a software forever
« Reply #6 on: August 27, 2012, 01: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,629
    • View Profile
    • Donate to Member
Re: DONE: Create dll file to change title bar of a software forever
« Reply #7 on: August 27, 2012, 02: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.

MilesAhead

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

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.autoitscr...te/autoit/downloads/

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

 

festi19

  • Participant
  • Joined in 2012
  • *
  • default avatar
  • Posts: 5
    • View Profile
    • Donate to Member
Re: DONE: Create dll file to change title bar of a software forever
« Reply #9 on: August 28, 2012, 07:40 PM »
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
    • View Profile
    • Donate to Member
Re: DONE: Create dll file to change title bar of a software forever
« Reply #10 on: August 28, 2012, 07:47 PM »
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
  • *
  • default avatar
  • Posts: 5
    • View Profile
    • Donate to Member
Re: DONE: Create dll file to change title bar of a software forever
« Reply #11 on: August 28, 2012, 08:04 PM »
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
    • View Profile
    • Donate to Member
Re: DONE: Create dll file to change title bar of a software forever
« Reply #12 on: August 28, 2012, 08:53 PM »
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,195
    • View Profile
    • Donate to Member
Re: DONE: Create dll file to change title bar of a software forever
« Reply #13 on: December 03, 2012, 02:20 AM »
If you change the title bar of Windows, will you cease to exist?

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,736
    • View Profile
    • Donate to Member
Re: DONE: Create dll file to change title bar of a software forever
« Reply #14 on: December 04, 2012, 11:13 AM »
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..."

:)