Page 1 of 1
rename rom window to player name
Posted: Fri Nov 18, 2011 10:06 am
by nerdyone255
sometimes when playing a few characters at once in a party i find myself losing track of which client is which on my taskbar when windows are minimized.
what code can i pop into a waypoint so that it will change the titlebar of the window its running to the character name of that client?
i remember this being done by some program, but cant remember if it was rombot or someting else.
Re: rename rom window to player name
Posted: Fri Nov 18, 2011 1:42 pm
by WhiteTiger
setWindowName(getWin(),player.Name)
Re: rename rom window to player name
Posted: Fri Nov 18, 2011 9:29 pm
by lisa
WhiteTiger wrote:setWindowName(getWin(),player.Name)
That will change what is on MM, I think he wants to change what is on the actual game.
Re: rename rom window to player name
Posted: Sat Nov 19, 2011 12:49 pm
by lordmata
RoMeo would be the one to answer you that. His multiboxing bot changed the name of the windows and i asked myself the same thing but just quitted in the end cause didn't really need it...
Re: rename rom window to player name
Posted: Sat Nov 19, 2011 2:05 pm
by Shogun
WhiteTiger wrote:setWindowName(getWin(),player.Name)
if you place this in <onLoad> of your profile it actually changes the window title of the game. I did not expect that.
To change the MM title you need to locate function timedSetWindowName(profile) in functions.lua and replace BOT_VERSION with player.Name
Code: Select all
--BOT_VERSION, displayname, player.X, player.Z, player.ExpPerMin, player.TimeTillLevel));
player.Name, displayname, player.X, player.Z, player.ExpPerMin, player.TimeTillLevel));
If you also want to remove the trailing "Rom Bot " in the title you have to edit string 600 in your language.lua
Code: Select all
--[600] = "RoM Bot %s [%s] (%d,%d) - %d exp/min, %d minutes till level up",
[600] = "%s [%s] (%d,%d) - %d exp/min, %d minutes till level up",
Re: rename rom window to player name
Posted: Sat Nov 19, 2011 9:24 pm
by lisa
Very true, I didn't look closely enough at the code posted.
This will change MM, but since MM has an existing timer you need to do more to keep the changes, I posted a user function somewhere to handle it.
and this will change the client itself
The important difference is getWin() and getHwnd()
Re: rename rom window to player name
Posted: Mon Nov 21, 2011 1:31 pm
by nerdyone255
perfect!