dimanche 9 février 2020

How to cycle a registry value using VBS?

Hey I'm trying to write a script that disables and enables touchscreen (excuse my terrible format it's just to get my idea across)

if TouchGate !exist
  create TouchGate
  TouchGate = default
else
  if TouchGate == 0
    TouchGate = 1
  else if TouchGate == 1
    TouchGate = 0
  else
    throw err
  end if
end if

Path - Computer\HKEY_CURRENT_USER\Software\Microsoft\Wisp\Touch

DWORD - TouchGate

0 = off 1 = on

Aucun commentaire:

Enregistrer un commentaire