Program error on touchscreen. How to solve?

I have a problem while running the program on a computer with touchscreen. While I try out in preview mode, the touchscreen works. When I start the attempts, the program does not recognize the touchscreen. I need to duplicate the screen, using another computer, to get it working. What should I do to recognize the touch screen without duplicating the screen?

What computer or touchscreen are you using?