sshrum Posted November 30, 2007 Posted November 30, 2007 I'm trying to develop a gesture-based system for my new tablet laptop that I will use with my various AutoIT coding projects I've been developing. My app will have it's own GUI with numerous controls on it, one of which is a large picture. I'd like to know what I need to do to capture the start position and end position of a drag operation when the user clicks on the picture even if the drag goes off the picture. I'll use the x positions to determine left or right gestures (yes, kinda like how the iPhone and iTouch work). TIA Sean Shrum :: http://www.shrum.net All my published AU3-based apps and utilities 'Make it idiot-proof, and someone will make a better idiot'
Generator Posted November 30, 2007 Posted November 30, 2007 Maybe something like this, not sure if it suits your needs. Dim $Start[2],$End[2] $Info=GUIGetCursorInfo() If $Info[4]=$LargePicture And $Info[2] Then $Start[0]=Number($Info[0]) $Start[1]=Number($Info[1]) While _IsPressed("01") Sleep(1) WEnd $End[0]=Number(MouseGetPos(0)) $End[1]=Number(MouseGetPos(1)) EndIf
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