Janczyk was released by Hearts in 2005 and he then signed for St Johnstone. He scored his first and only goal for St Johnstone in a Scottish Challenge Cup tie against Partick Thistle. He again failed to hold down a regular place, and St Johnstone loaned Janczyk out to Raith Rovers and then Stranraer (where he scored once against Morton).
After being released by Hearts in 2005, Janczyk joined St Johnstone. His only goal for the club came during a Scottish Challenge Cup match against Partick Thistle. He was unable to maintain a regular place and was loaned out to Raith Rovers and Stranraer, where he scored once against Morton.