Resistance boxes were used in psychology to measure perceptual thresholds and sensory discrimination abilities in individuals. By adjusting the resistance levels in the box, researchers could study how sensitive an individual was to different stimuli, providing insight into their sensory processing mechanisms. This allowed psychologists to better understand how individuals perceive and respond to their environment.