This easiest way to start doing this is to turn on the client monitor, and then perform the action on the form you want.
Afterwards, look at the client monitor, and write your code in such way that the same calls are performed. Typically it will give you an entry point, and help you figure out what variables need to be set.
When there is a lot of user interaction, it can get more difficult to program, and sometimes its difficult to follow (for example automating the user input for item tracking). It would help if you told us exactly what you were trying to automate.
Comments
Afterwards, look at the client monitor, and write your code in such way that the same calls are performed. Typically it will give you an entry point, and help you figure out what variables need to be set.
When there is a lot of user interaction, it can get more difficult to program, and sometimes its difficult to follow (for example automating the user input for item tracking). It would help if you told us exactly what you were trying to automate.