Resources for learning GUI scripting

Can anyone link to great resources to learn GUI scripting and the most important scripting skills I need to learn for scripting GUI? Any help is appreciated.