I just tried changing the delay. You were right, that fixed it. So for now, alls good.

Two more functions: setConsoleAttributes() and setWindowPos()rock5 wrote:Cool. I'm lloking forward to trying it out later. I'm starting in rombot mod first.
I see Mention of the new function getConsoleAttributes(). Is there any chance we could change those values too? I was thinking of programs like getid and getpos. I quite often make those windows really small then make it stay on top (I have a program for that) and move it to a corner of the screen. Then I can have the game full screen and still see the small mm window. It would be nice to have it resize automatically as part of the program. Of course it would be nice if we could make it stay on top too if possible. Ideally it would be nice if we could place the window too. I could imagine, for normal botting, users adding coords to their profiles and code to size and place the mm window where the user wants it. Or for instance if they run 4 accounts then they could add code that places each of the mm windows based on which account it is, so they would get 4 evenly spaced mm windows automattically.
Just suggestions. Probably these ideas are too much trouble to implement if not impossible all together.
Code: Select all
-- Set MicroMacro window's width/height to 800x40, always on top, set at 0,0
setWindowPos(getHwnd(), 0, 0, 800, 40, true);
-- Remove always on top
setWindowPos(getHwnd(), nil, nil, nil, nil, false);
I don't see any need to have access to the default settings of MM. All we need is to know the current windows settings and be able to change them. The only use for the default settings I can think of is to reset the window to them.Administrator wrote:Maybe any default settings should be in a globally accessible table.
Yes of course.Administrator wrote:I guess the order of this should be swapped around to match getConsoleAttributes().
Having MM reset the window automatically after a script ends seems like a good idea to me even though we could just do it in the errorcallback if we had to and if we had the command.Administrator wrote:Maybe any default settings should be in a globally accessible table. These should also be reset when the script terminates.
I was thinking of pushing a table of all (user-visible) default settings to global scope. Changing that table wouldn't affect anything; it would just be for informative purposes. It would be a lot easier than making 100 different functions to return specific things. As of right now, I don't see any useful information from the config that would be needed. Maybe somewhere down the line.I don't see any need to have access to the default settings of MM. All we need is to know the current windows settings and be able to change them. The only use for the default settings I can think of is to reset the window to them.
rock5 wrote:It's just a jumbled keypad that has to be clicked with a mouse. Looks like this.Like I said, I can get the frame position and dimensions so I should be able to pinpoint the keys. I expect it would only use the one font but it just occurred to me it might be in a different language. I'll have to think about how I would deal with that but I wont worry about that at the moment. Coloring, brightness and contrast I'll have to keep in mind and see if I can come up with a way that wont be affected by these.
Yes, I know, that's why I was talking about doing character recognition. To identify which numbers are where. I'm already part way through the code.nightclaw wrote:its moves the key set each time so keys dont stay the same spot
I'm not interested in other bots no matter how good they are. I'm doing this bot because I want to make it, not because I want to use it. Also that bot and most I've seen look like they are just grinding bots. I'm trying to make a bot that is similar to rombot that can follow paths, talk to npcs, select options and quests, target object to use or harvest, check inventory items, etc. Lastly I'm wary of running bots that I can't see the source code, which I assume is the case here.nightclaw wrote:also hears bot i been runing the update v tell we get a good 1 hear if any 1 wants give it try
Code: Select all
If the key is a letter then
if (it's a capital and caplock is off) or (it's lower case and capslock is on) then
press shift and key
else
press just key
end
end
Hmm?rock5 wrote:Awe. Goodbye cuddles.![]()
I've made some changes to take care of this. I'm not entirely sure it'll work everywhere, but it seems to work for Notepad in both attached and unattached mode.Administrator I noticed that if I've left capslock on then the username is written in capital. Could you have that taken into account? The logic should be easy enough.
gratsrock5 wrote:I finally mastered the pin box. Yay me!
I spent all day making a character scanner and debugging it until it worked. It captures each number and rates it by whiteness and if it's yellow. Then it sorts it. It initially worked but when the window was moved to another display it sorted them in a different order. I fiddle with the various thresholds but couldn't make it work.
So finally I gave up and started looking for pointers in memory again. After a few failures I found a pointer that pointed to the address of the frame (or button) under the mouse. They were familiar being all in the 0xF0000000 to 0xF2000000 range. That is where I'd been finding the pin numbers in the past but could never find a pattern or pointer for them. So I immediately knew what offset to look at, 0x304, and sure enough there was the pin number.
So I had a way to get the pin number of the button under the mouse. So all I had to do is scan the mouse over the buttons and read the pin numbers from memory. With all the work I'd already done it was quick to do and now I have a fully working function to enter the pin number.
Now I just have to tidy everything up, chain the userid and password code with the pinbox code and it should be able to log all the way in.
I just felt like sharing that.
You mean you didn't know his name?Administrator wrote:Hmm?rock5 wrote:Awe. Goodbye cuddles.![]()
Users browsing this forum: No registered users and 1 guest