Jump to content
Macro Express Forums

Drone

Members
  • Posts

    5
  • Joined

  • Last visited

Everything posted by Drone

  1. I just found out that if I benchmark the speed on my desktop I can check for pixel color about a thousand times per second (or faster), but for some reason in the game I can only check 2 or 3 times a second. Any ideas how to get around that?
  2. Okay, I think my problem is definitely speed. I did what you recommended and made a macro that will log the time it took to perform the pixel checks. You guys said that your macros go really fast, but mine seem to be really slow. I started taking screenshots so you can see it easier than I can describe... The first one I did was for 5000 times, and it seemed to take forever. I think I stopped it before it was done, but a few minutes had gone by and I thought something was wrong... http://www.tarrif.net/macro/check3.bmp As you can see it took more than 4 minutes and still wasn't done. So I changed it from 5000 to 1000. That one definitely completed, but it took more than 2 minutes and 30 seconds to complete! http://www.tarrif.net/macro/check4.bmp Am I doing something wrong? You guys say your computers process these macros much faster than that, and it clearly seems to be the problem standing in my way of finishing this macro and enjoying my game. ----------------------------------- You also mentioned colors, so I went ahead and started logging the colors. First, here's what the pendelum looks like in various states. http://www.tarrif.net/macro/pendelum.bmp As you can see it's a very simple guage and the artwork is nothing fancy. The whole game doesn't use more than 78 mb of system resources to run, so it's not a very high-end game. The last guage in the bottom middle has a blue rectangle around where the coordinates I tested are for the test below. Here's what the results I got when the pendelum was no where near the middle... http://www.tarrif.net/macro/check1.bmp Here's what I got when it was very close to the exact middle... http://www.tarrif.net/macro/check2.bmp I hope this helps my explainations. ----------------------------------------------- I am using the free trial version of Macro Express 3.5e My computer is a Pentium 4 1.6 Ghz with 2.1 GB of DDR RAM. Is there anything I can do to get my macro's running faster? I'm not running a lot of programs in the background - hardly any at all. I even shut off my virus checker. Thanks for all your help already, you've definitely helped out a lot! I just hope I can get this to work. Sitting here disabled is boring, and constantly losing at video games isn't helping pass the time
  3. Thanks very much! Its a step in the right direction but the macro still seems to run too slow. Thanks to your advice I was able to shorten the macro down to five lines... 1. Left Mouse Click 2. Repeat until %N2% = 58623 3. Get Pixel Color 227,725 into %N2% 4. End Repeat 5. Left Mouse Click For the game, all you have to do is click the left mouse button and then left click again when the pendelum is in the center. You don't have to place the mouse anywhere specific and you can move it around all you want, just as long as you click at the right times. The problem is that the pendelum does a complete half-circle swing just about every second, and so to get it in the middle the macro needs to be checking that pixel almost every 1/25th of a second to see if it's changed from red to yellow. Even when it works the pendelum seems to always miss the middle because I guess it takes too long for the macro to tell the mouse to click. I tried to find a way to time the loop but couldn't make it work. I'm afraid I'm not a very good programmer, and it's kind hard to type because my fingers are pretty messed up. The written logic would be... 1. Left mouse click to get the pendelum swinging. 2. Check if pixel at 227, 725 is red or yellow. 3. If 227, 725 is red keep checking. 4. If 227, 725 is yellow then left mouse click immediately. The key is speed. That pixel needs to be checked very often, maybe even 50 or so times per second or more, and the mouse needs to be told as fast as possible to left click. You mentioned the pixel maybe changing color during the game, so I took about 20 screenshots during various states and it never changed color at that pixel location. It's not a very grahpics intensive game. A friend told me I might be better off with a program specifically designed to do this simple task, and which repeats very very very fast. I don't even know where to begin if I need to go down that route? Any suggestions? Thanks for all your help! I hope I get this figured out. I love to play video games and it would be awful if I couldn't play even very simple ones like this because of my disability.
  4. Yeah, I tried that last night, but apparently the program doesn't check for pixel color as often as I need it to. Either that or I'm doing it wrong. This is what I have... <LCLK> <REP3:08:000001:000002:0006:0:01:58623> <GETPX:6:S:000227:000725> <IFVAR2:2:06:1:58623> <LCLK> <ENDIF> <ENDREP> Any suggestions?
  5. I'm a disabled veteran who loves to play video games but is at a disadvantage because I cannot use a mouse very well now. Because of my situation I was told by the creators of a video game that if I can come up with a way to help me play better it would be fine with them as long as I don't distribute the software. Unfortunately programming isn't my strong point, but I do get the basic idea behind running a macro. What I want to do is have a macro that simulates a left mouse click, then checks to see if a swinging yellow arrow is over the "red area" that would be considered a hit, then clicks the left mouse button if (when) it is. As it stands I can't seem to hit anything with my disability severely limiting my use of the mouse, and there's not even a keyboard command to use a weapon much less get it in the small red "hit" area. Can someone help me? Details... The red "hit" area is always at a fixed point on the interface, and the yellow arrow always travels the same semi-circular path - but at different speeds so you can't make a macro that relies on timing alone. I know how to simulate the mouse clicks, but I can't figure out how to make the macro check to see if the red area has turned yellow. Thanks in advance for any help!
×
×
  • Create New...