Dont use the screws basically. That defines where the rear "cogs" are. Adjust them, and youll end up with a chain in your spokes.
If its the rear mech...
Adjust that to make the cable slightly tighter. If when you shift it goes too far, slacken it off.