In parts of United Kingdom, people touch wood for luck. Most people would use it thus,
' I will get the job, touch wood,'
'When I have passed my exams, touch wood.'
it seems to be the kind of phrase you use when you hope something will happen the way you want it to happen, and to take the bad luck off counting your chickens before they have hatched, or assuming that something will go as you wish..