topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Friday April 26, 2024, 12:08 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - iocus [ switch to compact view ]

Pages: [1]
1
Post New Requests Here / Re: Toggle Touch Screen
« on: January 24, 2012, 06:49 AM »
I use a Fujitsu tablet with both the Pen and touch feature much like the Thinkpad discussed on this thread. I too would be interested in a tray icon that would allow me to switch the touch input off and on with a single click or hotkey. Fujitsu software supplied just opens the tablet PC.cpl to the touch settings tab.

I am currently using Windows 7 x64 and it is my understanding that the touch devices run with windows generic drivers . I did a little investigating and found that the registry value that enables/ disables the touch input is: TouchGate @key HKCU\Software\Microsoft\Wisp\Touch . Also, the process that controls the input devices is wisptis.exe . On my system, this process appears twice, running under the system and again under current user. I killed the process and it came back on its own.

I developed a primitive vb script with the little knowledge I have of logic, a little research, and previous experience developing bat files for win98 as a kid. its pretty straight forward. first, it reads the registry setting for TouchGate then it toggles it between on and off. After it is killed, wisptis.exe restarts on its own. Use it at your own risk. I would like to find more elegant way to accomplish this task. However, I am out of time and need to put this aside as it accomplishes, at least temporarily, what I need.

Please note, I have not found any side effects by terminating the process. However, I would use caution on your system.


Code: Visual Basic [Select]
  1. Dim WshShell, dKey
  2. Set WshShell = WScript.CreateObject("WScript.Shell")
  3.  
  4. '::reads registry setting::'
  5. dkey = WshShell.RegRead("HKEY_CURRENT_USER\Software\Microsoft\Wisp\Touch\TouchGate")
  6.  
  7. '::toggles registry key setting between 0(off) and 1(On)'
  8.  
  9. If dkey = 1 Then
  10.         WshShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Wisp\Touch\TouchGate", 0, "REG_DWORD"
  11.  
  12. Else
  13.         WshShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Wisp\Touch\TouchGate", 1, "REG_DWORD"
  14. End If
  15.  
  16. '::Kills wisptis.exe process::'
  17.  
  18. strComputer = "."
  19. Set objWMIService = GetObject("winmgmts:" _
  20.     & "{impersonationLevel=impersonate}!\\" _
  21.     & strComputer & "\root\cimv2")
  22. Set colProcessList = objWMIService.ExecQuery _
  23.     ("Select * from Win32_Process Where Name = 'wisptis.exe'")
  24. For Each objProcess in colProcessList
  25.     objProcess.Terminate()
  26. Next


these links were a lot of help:
http://msdn.microsof...394599(v=vs.85).aspx (learned to terminate a service using vb)

http://msdn.microsof...ibrary/yfdfhz1b.aspx (learned how to make registry tweaks using vb, way easier than cml)

ttfn
iOCUS

Pages: [1]