+ Reply to Thread
Results 1 to 10 of 62
-
07-20-2011, 06:34 PM #1Pen Pal - Newbie
- Join Date
- Jul 2011
- Posts
- 17
- Rep Power
- 2
Remapping "Home" button to switch touchscreen off/on
I've acquired the EP121 four weeks ago and it's going great!
However, I have found that when I try to use the pen, my palm tends to cause quite a bit of trouble so I have to switch the touch input off. But when I'm not trying to use the pen, it's obviously useful to have the touch input on. Having to go into Control Panel to change this everything was becoming a pain very quickly.
Since I never use the Flip3D feature, I thought I should remap the "Home" button so that I can switch the touchscreen off/on in one button press. Unfortunately, as far as I'm concerned, no existing solution seem to exist.
I have managed to write a lightweight program to achieve exactly this. Since I've found this forum very helpful so far I thought I should share this on here just in case someone finds it useful as well.
ToggleTouch
When this program is running, the "Home" button on the tablet is reprogrammed to toggle the touch input state. I've tried to make the program as small and lightweight as possible, and it just sits quietly in the background. As far as I've tested, it uses very little CPU time and memory and shouldn't have a major impact on battery life.
Just download the zip, put ToggleTouch.exe wherever you find convenient, and run it. There's no dialog box/window/taskbar icon, just press the home button to see if it works. If you want to quit the program, run ToggleTouch.exe -exit or kill the process in Task Manager.
If you reboot your computer the program will NOT be loaded automatically. If you want it to run on startup, you can find good instructions on Google.
This is a free software under the terms of GPLv3.
Download link: http://hydrogen.saran.in.th/ep121/toggletouch/bin.zip
UPDATE: [23/7/11] ToggleTouch now works properly when Aero Glass is turned off.
Source code is available at http://hydrogen.saran.in.th/ep121/toggletouch/src.zip
Disclaimer
The program uses a low-level keyboard hook to achieve its trick. I have tested it myself and it seems to work, but I accept no responsibility whatsoever if your system stops responding to key presses/sets on fire and explodes/murders you. If in any doubt, check out the source code and compile it yourself.Last edited by mst; 07-22-2011 at 08:34 PM.
-
07-20-2011, 07:38 PM #2Pen Pal - Newbie
- Join Date
- Jun 2011
- Posts
- 2
- Rep Power
- 0
Re: Remapping "Home" button to switch touchscreen off/on
Thanks mst.
I have downloaded the bin file and will try it out later.
-
07-20-2011, 07:52 PM #3Pen Pro - Senior Member
- Join Date
- Oct 2007
- Posts
- 143
- Rep Power
- 6
Re: Remapping "Home" button to switch touchscreen off/on
Cool does that mean we could remap the button to do other things like act as a shift key?
-
07-20-2011, 08:50 PM #4Pen Pal - Newbie
- Join Date
- Jul 2011
- Posts
- 17
- Rep Power
- 2
Re: Remapping "Home" button to switch touchscreen off/on
In principle, yes. All the "home" button does is sending the sequence LCtrl+LWin+Tab to Windows, so any program which intercepts this sequence can trap it before it reaches the DWM (the process that does Flip3D).
If you just want to remap it to Shift there are programs out there that will do that for you already. This thread is a good start: Reassigning the EP121 buttonsLast edited by mst; 07-20-2011 at 08:59 PM.
-
07-20-2011, 09:24 PM #5Pen Pro - Senior Member
- Join Date
- Apr 2011
- Posts
- 451
- Rep Power
- 5
Re: Remapping "Home" button to switch touchscreen off/on
may i ask... another default function of the "home button" is acting as a "ctrl alt del" when you keep it pressed.
Does this feature remains?
-
07-20-2011, 09:56 PM #6Pen Pal - Newbie
- Join Date
- Jul 2011
- Posts
- 17
- Rep Power
- 2
Re: Remapping "Home" button to switch touchscreen off/on
Yes.
The behaviour of the home button is primarily controlled by Asus's hotkey service, that is to say if the service detects a "short" press it fires LCTRL+LWIN+TAB to trigger Flip3D, while a "long" press causes it to fire CTRL+ALT+DEL.
ToggleTouch.exe only traps and overrides LCTRL+LWIN+TAB and doesn't touch CTRL+ALT+DEL. In fact, NOTHING can touch a CTRL+ALT+DEL signal once it's been fired, so the only way to reprogram the long press behaviour is to flash Asus's driver.
-
07-20-2011, 09:59 PM #7Pen Pal - Newbie
- Join Date
- Jul 2011
- Location
- Colorado
- Posts
- 27
- Rep Power
- 2
Re: Remapping "Home" button to switch touchscreen off/on
Thanks so much for developing this.
However, I get an error when I try to run the program:
"This program can't start because MSVCR100.dll is missing from your computer. Try reinstalling the program to fix this problem."
Call me silly but I don't think I'm missing anything ... hmmm!
Edit, figured it out. Stupidly removed the C++ packages. D'oh. Call me stupid this time. THANKS!
-
07-20-2011, 10:54 PM #8Pen Pro - Senior Member
- Join Date
- Apr 2011
- Posts
- 451
- Rep Power
- 5
-
07-20-2011, 11:12 PM #9Pen Pal - Newbie
- Join Date
- Jul 2011
- Posts
- 17
- Rep Power
- 2
Re: Remapping "Home" button to switch touchscreen off/on
Since a few people might have tried to save space by uninstalling the C++ redists, I've rebuilt the program with the MSVCR100.dll dependency built-in (statically linked).
In other words, the NEW binary that's available for download right now should NOT require MSVCR100.dll anymore
(The exe is now ~45KB bigger)
Last edited by mst; 07-20-2011 at 11:16 PM.
-
07-21-2011, 08:58 AM #10Pen Pro - Senior Member
- Join Date
- Feb 2011
- Posts
- 172
- Rep Power
- 3
Re: Remapping "Home" button to switch touchscreen off/on
Works great for me on first try. Awesome tweak MST, thanks!
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)



LinkBack URL




Reply With Quote


Bookmarks