Originally Posted by
m0rbidang3l
I need to do this, because the world generation mod I am using is not compatible with Bukkit. So, I'm going to have to pre-generate the world and then upload it.
You want to fly around and load the chunks? Can you explain this some more?
For problem one, I'd imagine that you forgot to add "until <expression>" to the end of the "do" loop.
Code:
Do
Send('{w down}')
Until
IsPressed("1B") = 1
That should work, but I can't test it (Mac user). If there is an error, it would be with the IsPressed function. I don't know what AutoIt does with its functions' return values, but you should be checking if the escape button being pressed is true.
For problem two, you'll need to add the mouse moving statement to the first 'do' loop. I'd imagine just tweaking the code will work. Remember that the parameters are the following:
Code:
MouseMove ( x, y [, speed] )
x is the x coordinate (horizontal)
y is the y coordinate (vertical)
speed is the speed to move the mouse in the range 1 (fastest) to 100 (slowest). A speed of 0 will move the mouse instantly. Default speed is 10.
You'll need to remember that the MouseMove statement is part of the loop. You might be able to express a variable as the x coordinate and then decrease it at the end of the loop. ***Decreasing the x value goes left, increasing goes right***Take a look of the below code.
Code:
local $coord = 500
Do
Send('{w down}')
MouseMove ( $coord, 500 , 0)
$coord= $coord - 10
Until
IsPressed("1B") = 1
The code should (with tweaking) work (not sure about the coord variable as parameter in AutoIt). Set the x and y coords to the center of your Minecraft window.
Tell me how it went, as I can't test this.