You could just get the attack style on your weapon and go from there, and I hate to say it but, hovering the skill you're traing won't get you banned less quick.
Well I'm not aware of any methods that train 'random' skills, but in a script if you perform a certain action I would guess you know which skill you're training.
Could you tell me what you're doing? Just curious.