LawrenceDon Posted April 5, 2013 Share Posted April 5, 2013 (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:)Files in attachment:MT_GESTURE.au3 WM_GESTURE.jpgMT_TOUCH.au3 WM_TOUCH.jpgMT_TOUCH _Color_Point_V2.au3 WM_TOUCH_V2.jpgReference:WM_TOUCH messagehttp://msdn.microsoft.com/en-us/library/windows/desktop/dd317341(v=vs.85).aspxWM_GESTURE messagehttp://msdn.microsoft.com/en-us/library/windows/desktop/dd353242(v=vs.85).aspxGESTURE_TOUCH.zip Edited April 6, 2013 by LawrenceDon spudw2k and Qwerty212 2 Link to comment Share on other sites More sharing options...
spudw2k Posted April 5, 2013 Share Posted April 5, 2013 Neat, wish I had a multi-touch screen to test with. Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX Builder Misc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retrieve SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose Array Projects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalc Cool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF Link to comment Share on other sites More sharing options...
guinness Posted April 5, 2013 Share Posted April 5, 2013 I'm the same. I would love to know if this works. UDF List: _AdapterConnections() • _AlwaysRun() • _AppMon() • _AppMonEx() • _ArrayFilter/_ArrayReduce • _BinaryBin() • _CheckMsgBox() • _CmdLineRaw() • _ContextMenu() • _ConvertLHWebColor()/_ConvertSHWebColor() • _DesktopDimensions() • _DisplayPassword() • _DotNet_Load()/_DotNet_Unload() • _Fibonacci() • _FileCompare() • _FileCompareContents() • _FileNameByHandle() • _FilePrefix/SRE() • _FindInFile() • _GetBackgroundColor()/_SetBackgroundColor() • _GetConrolID() • _GetCtrlClass() • _GetDirectoryFormat() • _GetDriveMediaType() • _GetFilename()/_GetFilenameExt() • _GetHardwareID() • _GetIP() • _GetIP_Country() • _GetOSLanguage() • _GetSavedSource() • _GetStringSize() • _GetSystemPaths() • _GetURLImage() • _GIFImage() • _GoogleWeather() • _GUICtrlCreateGroup() • _GUICtrlListBox_CreateArray() • _GUICtrlListView_CreateArray() • _GUICtrlListView_SaveCSV() • _GUICtrlListView_SaveHTML() • _GUICtrlListView_SaveTxt() • _GUICtrlListView_SaveXML() • _GUICtrlMenu_Recent() • _GUICtrlMenu_SetItemImage() • _GUICtrlTreeView_CreateArray() • _GUIDisable() • _GUIImageList_SetIconFromHandle() • _GUIRegisterMsg() • _GUISetIcon() • _Icon_Clear()/_Icon_Set() • _IdleTime() • _InetGet() • _InetGetGUI() • _InetGetProgress() • _IPDetails() • _IsFileOlder() • _IsGUID() • _IsHex() • _IsPalindrome() • _IsRegKey() • _IsStringRegExp() • _IsSystemDrive() • _IsUPX() • _IsValidType() • _IsWebColor() • _Language() • _Log() • _MicrosoftInternetConnectivity() • _MSDNDataType() • _PathFull/GetRelative/Split() • _PathSplitEx() • _PrintFromArray() • _ProgressSetMarquee() • _ReDim() • _RockPaperScissors()/_RockPaperScissorsLizardSpock() • _ScrollingCredits • _SelfDelete() • _SelfRename() • _SelfUpdate() • _SendTo() • _ShellAll() • _ShellFile() • _ShellFolder() • _SingletonHWID() • _SingletonPID() • _Startup() • _StringCompact() • _StringIsValid() • _StringRegExpMetaCharacters() • _StringReplaceWholeWord() • _StringStripChars() • _Temperature() • _TrialPeriod() • _UKToUSDate()/_USToUKDate() • _WinAPI_Create_CTL_CODE() • _WinAPI_CreateGUID() • _WMIDateStringToDate()/_DateToWMIDateString() • Au3 script parsing • AutoIt Search • AutoIt3 Portable • AutoIt3WrapperToPragma • AutoItWinGetTitle()/AutoItWinSetTitle() • Coding • DirToHTML5 • FileInstallr • FileReadLastChars() • GeoIP database • GUI - Only Close Button • GUI Examples • GUICtrlDeleteImage() • GUICtrlGetBkColor() • GUICtrlGetStyle() • GUIEvents • GUIGetBkColor() • Int_Parse() & Int_TryParse() • IsISBN() • LockFile() • Mapping CtrlIDs • OOP in AutoIt • ParseHeadersToSciTE() • PasswordValid • PasteBin • Posts Per Day • PreExpand • Protect Globals • Queue() • Resource Update • ResourcesEx • SciTE Jump • Settings INI • SHELLHOOK • Shunting-Yard • Signature Creator • Stack() • Stopwatch() • StringAddLF()/StringStripLF() • StringEOLToCRLF() • VSCROLL • WM_COPYDATA • More Examples... Updated: 22/04/2018 Link to comment Share on other sites More sharing options...
veronesi Posted April 6, 2013 Share Posted April 6, 2013 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 Link to comment Share on other sites More sharing options...
LawrenceDon Posted April 6, 2013 Author Share Posted April 6, 2013 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).aspxThey 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 Link to comment Share on other sites More sharing options...
GtaSpider Posted April 10, 2013 Share Posted April 10, 2013 (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, SpiderMT_GESTURE_ZoomInOut.au3 Edited April 10, 2013 by GtaSpider www.AutoIt.de - Moderator of the German AutoIt Forum Link to comment Share on other sites More sharing options...
baboink Posted April 18, 2013 Share Posted April 18, 2013 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. Link to comment Share on other sites More sharing options...
jaberwacky Posted April 18, 2013 Share Posted April 18, 2013 Transparent window which is overlaid over the entire screen. Helpful Posts and Websites: AutoIt3 Variables and Function Parameters MHz | AutoIt Wiki | Using the GUIToolTip UDF BrewManNH | Can't find what you're looking for on the Forum? Link to comment Share on other sites More sharing options...
Leo1906 Posted October 26, 2016 Share Posted October 26, 2016 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? Link to comment Share on other sites More sharing options...
TJF Posted November 2, 2017 Share Posted November 2, 2017 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)...? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now