AccelStepper help

I am working on a project where I am using the AccelStepper.h library to drive 3 seperate steppers I have having a bit of trouble thou.

First how so I set the enablepins? I don't want power on the motor all the time

Next how to I implement a position reference using a Pot? I want to be able to map the range of the stepper something like val=analogRead(0, 1023, 0, 5000) I wan the motor to stepno more than 5000 steps.

Post your code so we can see what you are trying.

And please use the code button </> so your code looks like this and is easy to copy to a text editor