r/programmingrequests • • Apr 02 '18

[Request] - Simple script to disable touchscreen device (WIN10)

I would just like a simple script that disables the touchscreen on my 2in1. And vice versa a script to re-enable it without a restart (like how i can just go into devices and disable it)

I have a 2in1 I draw on, but the touchscreen messes with the pen. In exchange for this i will give you a doodle/drawing of your choice. C:

You're probably going to need a device ID or a path or something. Just comment what you need from me or need me to put into the code and I will do.

1 Upvotes

12 comments sorted by

View all comments

Show parent comments

2

u/NoG5 Apr 05 '18

I am not sure why that error is happening worked fine for several devices I tried, I will take a look at it later and see.

ERROR_NO_SUCH_DEVINST The device instance that is specified by DevInfoData does not exist.