Jump to content

Recommended Posts

Posted (edited)

When I get an ultrabook with multi-touch panel, the idea that using autoit to handle the multi-touch message comes out.

Simple enough, but it can work normally. Enjoy it:)

Posted Image

Posted Image

Posted Image

Files in attachment:

MT_GESTURE.au3 WM_GESTURE.jpg

MT_TOUCH.au3 WM_TOUCH.jpg

MT_TOUCH _Color_Point_V2.au3 WM_TOUCH_V2.jpg

Reference:

WM_TOUCH message

http://msdn.microsoft.com/en-us/library/windows/desktop/dd317341(v=vs.85).aspx

WM_GESTURE message

http://msdn.microsoft.com/en-us/library/windows/desktop/dd353242(v=vs.85).aspx

GESTURE_TOUCH.zip

Edited by LawrenceDon
Posted

I'm the same. I would love to know if this works.

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted

They work, but only when you touch with your finger.

If you try the MT_TOUCH example with a pen or the mouse, it will not work.

But I think, this will be an other Event.

Very good example!

Veronesi

Posted

Yes, you're right, and you can refer to the link below to get more information about Windows Touch.

Getting Started with Windows Touch Messages

http://msdn.microsoft.com/en-us/library/windows/desktop/dd371581(v=vs.85).aspx

  On 4/6/2013 at 6:12 AM, 'veronesi said:

They work, but only when you touch with your finger.

If you try the MT_TOUCH example with a pen or the mouse, it will not work.

But I think, this will be an other Event.

Very good example!

Veronesi

Posted (edited)

Hey,

very nice example. I just palyed a little bit with the WM_GESTURE function and made a little Multitouch Zoom In/Out test (nothing special, but you can see something happen here)

Here is a video:

Greetz,

Spider

MT_GESTURE_ZoomInOut.au3

Edited by GtaSpider

www.AutoIt.de - Moderator of the German AutoIt Forum

 

Posted

Great script. Almost exactly what I'm looking for except that I need to capture touch events outside of the application. My goal is to create metrics to determine how often the touch interface is used on a touch device. Any help would be appreciated.

  • 3 years later...
Posted

Why does'nt WM_TOUCH get fired when you touch on a control?

For example add a Button like this to the GUI in MT_TOUCH.au3:

GUICtrlCreateButton("Button1", 600, 400, 80, 25)

When you touch the plain GUI the WM_TOUCH get's executed, when you touch the button it won't.

Is there a way around this? How can you differentiate between a touch click or a mouse click on a control?

  • 1 year later...
Posted

You can fire the touch "normally"...

$test = GUICtrlCreateButton("Button1", 600, 400, 80, 25)
...
Case $test
...

But I wonder, if there is a way to get something like $GUI_EVENT_PRIMARYDOWN to work...? I want to use a button as pushbutton - button stays only pressed (with mouse-event $GUI_EVENT_PRIMARYDOWN works fine)...?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...