Calling the SetFocus function in the After Validation script does not move the focus.
The After Validation script is only triggered when a prompt is accepted, and the script executes in preparation for the prompt moving to the next prompt. The SetFocus function executes, but then is overridden by the action of the validation (After Enter or After Scan: Next Prompt, Next Element, Do Nothing).
To change where the focus moves from the After Validation script, use the ValidationFail function. Set the second parameter of the ValidationFail function to a particular element on the same prompt. This will halt the move to the next and reset the focus should the test fail.
Note that in ITScriptNet versions 2.4 and higher, you can leave the Message paramter to ValidationFile blank so no message is displayed, yet you can still control the focus.