rename rom window to player name
-
- Posts: 107
- Joined: Mon Nov 22, 2010 10:17 am
rename rom window to player name
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.
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.
-
- Posts: 84
- Joined: Tue Jun 22, 2010 8:06 am
Re: rename rom window to player name
setWindowName(getWin(),player.Name)
Re: rename rom window to player name
That will change what is on MM, I think he wants to change what is on the actual game.WhiteTiger wrote:setWindowName(getWin(),player.Name)
Remember no matter you do in life to always have a little fun while you are at it
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
Re: rename rom window to player name
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
if you place this in <onLoad> of your profile it actually changes the window title of the game. I did not expect that.WhiteTiger wrote:setWindowName(getWin(),player.Name)
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));
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
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()
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.
Code: Select all
setWindowName(getHwnd(),"stuff")
Code: Select all
setWindowName(getWin(),"stuff")
Remember no matter you do in life to always have a little fun while you are at it
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
-
- Posts: 107
- Joined: Mon Nov 22, 2010 10:17 am
Re: rename rom window to player name
perfect!
Who is online
Users browsing this forum: No registered users and 3 guests