I'm thinking about setting up some predefined grids for the windows. So instead of calculating all the sizes and positions you could do something like this.
That would mean put the client and console on screen 1, use grid pattern 4 and in position 2 and it will position and size the client and console according to the pattern. For instance the video I posted could be a pattern. If it's pattern 2 the batch file could look like this instead.
rock5 wrote:- IMPORTANT: I had Administrator add a function to MM that I needed. So this version of login requires you to update MM to the latest stable version 1.04.167.http://www.solarstrike.net/micromacro
Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
I was wondering about setting which screen it goes to. I wasn't able to figure out how to tell it to go to my second screen. So R5, where you said you were thinking about setting up that grid thing, are you still working on that? I think that would be a nice way to implement it.
You have to use the coordinates to put it on the screen you want. For instance my primary display is on the right. It's X range goes from 0 to 1280. My secondary display is on the left so it's X range goes from -1280 to 0. If the secondary display was on the right then the range would be from 1280 to 2560 I think.
Thanks for voicing an interest in the grid idea. Because of that it's more likely to happen. Do you have any grid arrangements you are particularly fond of?
Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
A lot of time, I will run two bots on one screen (secondary screen, but like yours, on left) while actively playing on the other (primary) screen. I'd like to see a 4 section grid for the second display to show 2 instances of RoM with 2 MM windows. But then again, if I ever get around to trying out the model files thing, I could probably run 4 bots at once on one screen. That would require 8 "windows" but I probably would utilize both monitors if I were to run 4 bots at once, so there, it's still the same grid... 4 areas per screen.
Oh right, I completely missed what you ment by "start in" box haha, I was thinking more something in the batch file, even though there is no box
1 other thing, can you set channel that it enters using the batch file? I want to make it uses math.random(3) so they don't all log in on the same channel at the same time.
login doesn't have a channel option. It would require doing a mouse click which I just couldn't be bothered doing. Also login wouldn't know how many channels are actually available so it would have limited functionality.
in the accountlogin.lua settings it will choose the channel randomly. I don't know why I have it set to 1 as default. I should probably change it to nil for future commits.
Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
function printline(value, key)
if type(value) ~= "table" then
--if value == nil then value = "nil" end
value = string.rep(" ",spaces)..(key and (key.."=") or "")..tostring(value)
^^
if chatbox then
chatbox:AddMessage(value,.8,.8,.8)
else
local tt = consolebox:GetText()
consolebox:SetText(tt.."\n"..value,.8,.8,.8)
end
else
printline((key and (key.."=") or "").."{")
^^
spaces=spaces + tabsize
for k,v in pairs(value) do
printline(v,k)
end
spaces=spaces - tabsize
printline("}")
end
end
function printline(value, key)
if type(value) ~= "table" then
--if value == nil then value = "nil" end
value = string.rep(" ",spaces)..(key and (tostring(key).."=") or "")..tostring(value)
^^
if chatbox then
chatbox:AddMessage(value,.8,.8,.8)
else
local tt = consolebox:GetText()
consolebox:SetText(tt.."\n"..value,.8,.8,.8)
end
else
printline((key and (tostring(key).."=") or "").."{")
^^
spaces=spaces + tabsize
for k,v in pairs(value) do
printline(v,k)
end
spaces=spaces - tabsize
printline("}")
end
end
Perfectly valid code....You probably was thinking of how to use a string as key, that corresponds to the special case u mention with table["tt"] = value or table.tt = value (without spaces), but thats just a special case.
That can't be right. But it looks like it is. I can't quite wrap my head around any situation where I would use such a feature but, ok, I'll add the change you suggested. I'll also add it to the 'else' part.
I should probably add something similar to the tableToString function I added to the bot recently.
Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.