Touch Toggle System Tray Application

Discussion in 'EP121 Slate' started by Micah71381, Aug 4, 2011.

Thread Status:
Not open for further replies.
  1. Steve S

    Steve S Pen Pro - Senior Member Super Moderator

    Messages:
    7,698
    Likes Received:
    3,194
    Trophy Points:
    331
    <<...My EP121 Boots in 17 -18 seconds...>>

    ...20 seconds or less for me...
     
  2. excalibur1814

    excalibur1814 Scribbler - Standard Member Senior Member

    Messages:
    2,335
    Likes Received:
    314
    Trophy Points:
    101
  3. Rob_Oppie

    Rob_Oppie Pen Pal - Newbie

    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    5
    This is just what I wanted. Thank you!

    A small suggestion: Since a user can disable Touch via the Control Panel's "Pen and Touch" application (on the "Touch" panel Uncheck "Use your finger as an input device"). TouchToggle could check the status of the registry's TouchGate value on startup and set the icon accordingly (also save the startup value and restore it when the program exits).

    Thanks again.

    FYI, Another approach to this Touchy issue is here:
    forum.tabletpcreview.com/ep121-slate/43304-remapping-home-button-switch-touchscreen-off.html

    It uses the "Home" key to toggle touch input on/off. But it does not have feedback in an icon and I really like the task bar approach. Ideally the two would work together (actually they do, but the icon is not updated). So if TouchToggle saw a SendNotifyMessage(HWND_BROADCAST,WM_SETTINGCHANGE,NULL,NULL) then it could check the registry and update its icon accordingly. [Or the two applications could be combined into one with a startup option that says to hook the Home key or not.]
     
    Last edited by a moderator: May 18, 2015
  4. kamikaze458

    kamikaze458 Scribbler - Standard Member

    Messages:
    455
    Likes Received:
    0
    Trophy Points:
    31
    works great and it's a really clean and neat app.

    thank you so much for sharing it!
     
  5. Micah71381

    Micah71381 Pen Pal - Newbie

    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    5
    I'll look into checking the current key setting and monitoring for that broadcast message. Since you have done the work already of figuring out what I need to listen for, adding that shouldn't be too difficult.

    As for the home key, I checked out the source code for the other app and it is pretty simple so I should be able to add that as a feature to mine (enabled through right click menu or something). However, I will have to figure out how to detect keyboard input in C# since I have never done that before in C#. That may also result in my application requiring administrative privileges which I do not think it requires at the moment.
     
  6. mst

    mst Pen Pal - Newbie

    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    6
    When I started writing the thing I was a bit nervous about it requiring UAC elevation and all that, but it turns out that I can use the low level keyboard hook without UAC. Haven't tried running it under a more limited user account, but I suspect it would work anyway.

    I've decided against using C# because of the memory overhead incurred by the .NET stuff. You should be able to port a large chunk of the code over quite easily though, as you said there isn't much to the code.
     
  7. Micah71381

    Micah71381 Pen Pal - Newbie

    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    5
    New version is uploaded (along with updated source code) for those that are interested. It now shows the correct icon on startup and will also change to the correct icon when another application alters the setting (such as TouchToggle by mst or the Pen & Touch Windows control panel).

    I did not setup my app to override the home button since I figure you can just use mst's application for that if you want and mine just for the icon since it now should respond to his application changing the setting.

    http://code.google.com/p/touch-toggle/
     
  8. Micah71381

    Micah71381 Pen Pal - Newbie

    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    5
    I should also mention that it is more responsive now. Previously, when you clicked the icon, the application would freeze up for a few seconds (depending on how many applications you had open). To most users I am guessing this was only noticeable due to a delay between when you clicked and when the icon changed. However, it still may take a few seconds for the setting to take effect in all your applications and now you can't use the icon to tell when the setting change is finished so I am not entirely certain this is actually an improvement. :p
     
  9. milowerx

    milowerx Pen Pal - Newbie

    Messages:
    61
    Likes Received:
    1
    Trophy Points:
    16
    I love that touch toggle app... thank you very much!
     
  10. Micah71381

    Micah71381 Pen Pal - Newbie

    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    5
Loading...
Thread Status:
Not open for further replies.

Share This Page