rename rom window to player name

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
nerdyone255
Posts: 107
Joined: Mon Nov 22, 2010 10:17 am

rename rom window to player name

#1 Post by nerdyone255 » Fri Nov 18, 2011 10:06 am

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.

WhiteTiger
Posts: 84
Joined: Tue Jun 22, 2010 8:06 am

Re: rename rom window to player name

#2 Post by WhiteTiger » Fri Nov 18, 2011 1:42 pm

setWindowName(getWin(),player.Name)

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: rename rom window to player name

#3 Post by lisa » Fri Nov 18, 2011 9:29 pm

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.
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

lordmata
Posts: 18
Joined: Wed Feb 09, 2011 9:36 am

Re: rename rom window to player name

#4 Post by lordmata » Sat Nov 19, 2011 12:49 pm

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...

Shogun
Posts: 45
Joined: Wed Jul 27, 2011 6:08 am

Re: rename rom window to player name

#5 Post by Shogun » Sat Nov 19, 2011 2:05 pm

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",

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: rename rom window to player name

#6 Post by lisa » Sat Nov 19, 2011 9:24 pm

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.

Code: Select all

setWindowName(getHwnd(),"stuff")
and this will change the client itself

Code: Select all

setWindowName(getWin(),"stuff")
The important difference is getWin() and getHwnd()
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

nerdyone255
Posts: 107
Joined: Mon Nov 22, 2010 10:17 am

Re: rename rom window to player name

#7 Post by nerdyone255 » Mon Nov 21, 2011 1:31 pm

perfect!

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests