Remapping "Home" button to switch touchscreen off/on

+ Reply to Thread
Page 1 of 7 12345 ... LastLast
Results 1 to 10 of 62
  1. #1
    mst
    mst is offline
    Pen Pal - Newbie
    Join Date
    Jul 2011
    Posts
    17
    Rep Power
    2

    Talking 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.

  2. #2
    Pen Pal - Newbie
    Join Date
    Jun 2011
    Posts
    2
    Rep Power
    0

    Default Re: Remapping "Home" button to switch touchscreen off/on

    Thanks mst.
    I have downloaded the bin file and will try it out later.

  3. #3
    Pen Pro - Senior Member
    Join Date
    Oct 2007
    Posts
    143
    Rep Power
    6

    Default 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?

  4. #4
    mst
    mst is offline
    Pen Pal - Newbie
    Join Date
    Jul 2011
    Posts
    17
    Rep Power
    2

    Default Re: Remapping "Home" button to switch touchscreen off/on

    Quote Originally Posted by aussiedeza View Post
    Cool does that mean we could remap the button to do other things like act as a shift key?
    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 buttons
    Last edited by mst; 07-20-2011 at 08:59 PM.

  5. #5
    Pen Pro - Senior Member
    Join Date
    Apr 2011
    Posts
    451
    Rep Power
    5

    Default 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?

  6. #6
    mst
    mst is offline
    Pen Pal - Newbie
    Join Date
    Jul 2011
    Posts
    17
    Rep Power
    2

    Default Re: Remapping "Home" button to switch touchscreen off/on

    Quote Originally Posted by kamikaze458 View Post
    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?
    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.

  7. #7
    Pen Pal - Newbie
    Join Date
    Jul 2011
    Location
    Colorado
    Posts
    27
    Rep Power
    2

    Default 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!

  8. #8
    Pen Pro - Senior Member
    Join Date
    Apr 2011
    Posts
    451
    Rep Power
    5

    Default Re: Remapping "Home" button to switch touchscreen off/on

    Quote Originally Posted by mst View Post
    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.
    thank you very much, i'll try it!

    sorry, i downloaded it and it says that a file is missing: msvcr100.dll

    what should i install? visualstudio?

    thanks again
    Last edited by kamikaze458; 07-20-2011 at 10:57 PM.

  9. #9
    mst
    mst is offline
    Pen Pal - Newbie
    Join Date
    Jul 2011
    Posts
    17
    Rep Power
    2

    Default Re: Remapping "Home" button to switch touchscreen off/on

    Quote Originally Posted by greatthursday View Post
    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!
    Quote Originally Posted by kamikaze458 View Post
    thank you very much, i'll try it!

    sorry, i downloaded it and it says that a file is missing: msvcr100.dll

    what should i install? visualstudio?

    thanks again

    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.

  10. #10
    Pen Pro - Senior Member
    Join Date
    Feb 2011
    Posts
    172
    Rep Power
    3

    Default Re: Remapping "Home" button to switch touchscreen off/on

    Works great for me on first try. Awesome tweak MST, thanks!

 

 
Page 1 of 7 12345 ... LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -5. The time now is 05:53 AM.
Powered by vBulletin® Version 4.2.0
Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO 3.6.0