Unfortunately this you can not macro unattended. You're also not able to do it in a single macro, without some rather complex code.
What you'll need to do is record a macro of you locking the box. Assign this macro to a key, say F5.
Record a macro of you picking that lock. Assign this macro to F6.
You'll need to hit F5 (lock box), followed by F6 (pick) - if the picking is not successful, you'll need to F6 again. If it is successful, hit F5. Basically sit there for a while and smash either of the two keys depending on the outcome.
u can setup a looping razor macro I have one its ez...
double click picking tools
half second pause
target box
4 second pause
double click key
half second pause
target box
half second pause
I did this the other day, and you don't need a 4 second pause. You can start multiple picking attempts before the first one finishes, and with a couple "if systemmessage =" sections, the loop will re-lock the box before the other attempts finish and they will all go through. It looks kinda like this
If sysmessage = that is not locked
click key
wait for target
target box
wait .5 sec
else
click lockpick
wait for target
target box
wait .5 sec
if sysmessage = the lock yields to your skill
click key
wait for target
target box
wait .5 sec
It's obviously a flaw or oversight that starting a new picking attempt on a box doesn't cancel any previous attempts. This will get you from 30-95 lockpicking in about 20 minutes. Also, you only need 2 boxes. One made at 50 tinker and one made at GM. You will break more picks buts it's negligable. I did the whole thing in under 300 picks.
I did this the other day, and you don't need a 4 second pause. You can start multiple picking attempts before the first one finishes, and with a couple "if systemmessage =" sections, the loop will re-lock the box before the other attempts finish and they will all go through. It looks kinda like this
If sysmessage = that is not locked
click key
wait for target
target box
wait .5 sec
else
click lockpick
wait for target
target box
wait .5 sec
if sysmessage = the lock yields to your skill
click key
wait for target
target box
wait .5 sec
It's obviously a flaw or oversight that starting a new picking attempt on a box doesn't cancel any previous attempts. This will get you from 30-95 lockpicking in about 20 minutes. Also, you only need 2 boxes. One made at 50 tinker and one made at GM. You will break more picks buts it's negligable. I did the whole thing in under 300 picks.