How do external factors (such as stirring or shaking) determine whether a mixture will become a mechanical mixture or a solution?

I dont know what you mean by mechanical mixture, I guess you mean anything not a solution.

stirring and shaking help the dissolving process for solutions.