I'm using a mouse recording program and trying to capture the perfect break in an online game of pool.
I've done it before but since I messed around with my monitor's settings, it no longer works and I have to start all over again.
I thought I would just keep grinding it out until I finally got it right but I'm just not feeling it anymore for some reason.
Instead of getting super lucky, since everything has to be pixel perfect for it to work, I was thinking perhaps I could solve this using number logic.
Here's my best attempt so far and it pockets 5 balls on the break and is really super close to the one I had before which pockets 6 balls.
1. {LMouse down (222,374)}..
2. {LMouse up (133,228)}..
3. {LMouse down (570,358)}..
4. {LMouse up (57,193)}..
5. {LMouse down (57,193)}..
6. {LMouse up (57,193)}..
Here's an explanation of the code:
1. Grabs the cue ball
2. Places the cue ball towards the upper left part of the pool table
3. Aims the pool stick
4. and 5. Moves the pool stick back for power
6. Makes the shot
I'm so close on this. It actually seems like I'm just a pixel off somewhere with either the cue ball placement or the angle on the shot or maybe a little of both.
What I would like is to have all possible permutations for 2. and 3. plus or minus 5 from these numbers.
So for 2. it would be something like {LMouse up (133±5,228±5)}..
and 3. would be something like {LMouse down (570±5,358±5)}..
What is an easy way to generate a complete list for this so I can enter each of them in using a Hex Editor until I hit the right spot?
Hopefully this makes sense to someone.
