Lockpicking is a Thieving Skill used to open locks.
Double click on your lockpicks, click on the door to be picked. Some locks are harder to pick than others, and magical locks and locks on player homes and ships can't be picked at all.
You can macro lockpicking by acquiring a large quantity of lockpicks as well as a player-crafted container (wooden box, chest, crate, etc.) The higher the Crafter's Tinkering skill, the harder the lock is to pick. You can macro your lockpicking skill as high as 95.0 (real), after that you must raise your lockpicking skill by using Dungeon chests.
Razor Macro (by Azimer)
You will need a box crafted by a 50carp/50tinker character until 72 skill then you may switch to a GM crafted box until 95. This macro is pretty simple, it just relocks the box under various conditions. You will need to make sure you set the proper targets for your key and box (absolute target).
Note: On a "50/50" box, you will not gain lockpicking past 74.4 "Real" skill. But to gain skill up to 95% Lockpicking, you will need a Wooden Box crafted by a 80%Carpenter/75%Tinkerer at least, but no need to be GM in those skills.
!Loop Assistant.Macros.DoubleClickTypeAction|5372|True Assistant.Macros.WaitForTargetAction|30 Assistant.Macros.AbsoluteTargetAction|0|0|1075358412|63|66|0|2474 Assistant.Macros.PauseAction|00:00:05.1000000 Assistant.Macros.IfAction|4|0|quickly Assistant.Macros.DoubleClickAction|1075358422|4110 Assistant.Macros.WaitForTargetAction|30 Assistant.Macros.AbsoluteTargetAction|0|0|1075358412|63|66|0|2474 Assistant.Macros.EndIfAction Assistant.Macros.IfAction|4|0|unlock Assistant.Macros.DoubleClickAction|1075358422|4110 Assistant.Macros.WaitForTargetAction|30 Assistant.Macros.AbsoluteTargetAction|0|0|1075358412|63|66|0|2474 Assistant.Macros.EndIfAction Assistant.Macros.IfAction|4|0|appear Assistant.Macros.DoubleClickAction|1075358422|4110 Assistant.Macros.EndIfAction Assistant.Macros.PauseAction|00:00:00.6000000
This is the above macro, with a restock agent by weight added. Edit your weight to whatever you are with no lockpicks on you, set your Restock-4 to a certain amount of lockpicks. Retarget the first "Absolute Target" to yourself to restock from bank. The UseSkillAction|21 at the end is Hiding, remove if you don't wish to train at the same time.
!Loop Assistant.Macros.IfAction|5|0|54 Assistant.Macros.HotKeyAction|0|Restock Agent-4 Assistant.Macros.PauseAction|00:00:00.3000000 Assistant.Macros.AbsoluteTargetAction|0|0|147198|586|2134|0|400 Assistant.Macros.PauseAction|00:00:01 Assistant.Macros.EndIfAction Assistant.Macros.DoubleClickTypeAction|5372|True Assistant.Macros.WaitForTargetAction|30 Assistant.Macros.AbsoluteTargetAction|0|0|1078260823|87|111|0|2474 Assistant.Macros.PauseAction|00:00:05.1000000 Assistant.Macros.IfAction|4|0|quickly Assistant.Macros.DoubleClickAction|1078260824|4110 Assistant.Macros.WaitForTargetAction|30 Assistant.Macros.AbsoluteTargetAction|0|0|1078260823|45|123|0|2474 Assistant.Macros.EndIfAction Assistant.Macros.IfAction|4|0|unlock Assistant.Macros.DoubleClickAction|1078260824|4110 Assistant.Macros.WaitForTargetAction|30 Assistant.Macros.AbsoluteTargetAction|0|0|1078260823|45|123|0|2474 Assistant.Macros.EndIfAction Assistant.Macros.IfAction|4|0|appear Assistant.Macros.DoubleClickAction|1078260824|4110 Assistant.Macros.WaitForTargetAction|30 Assistant.Macros.AbsoluteTargetAction|0|0|1078260823|87|111|0|2474 Assistant.Macros.EndIfAction Assistant.Macros.UseSkillAction|21 Assistant.Macros.PauseAction|00:00:00.6000000