Thanks Raflex but it still doesnt work. when i use this program with the simulator it gets nothing - the stepper motor isnt even getting ready and all PORTB is not an output.
when i used the original code - i saw the motor getting ready (green) but when i pressed the button - it didnt do anything.

anyone?