narkima Posted February 28, 2012 Share Posted February 28, 2012 Hey all! I need an advice. I want to program an .exe file. This is the challange: I have a multitouch screen and want to program it like this: If two points / areas are pressed for example: Cursor Position 320,450 (x|y) (or if possible whole polygons <area shape="rect" coords="-1,0,46,16" href="/default.asp" alt="web development">) and Curosor Position 350,768 (x|y) - then a .wav or .mp3 should start. like: If cursorpositon1 + cursorposition2 is pressed wait 2 secounds then playsound(music.wav) Is there a way? I hope you know what I mean . Sorry for my bad english. Best regards, narkima Link to comment Share on other sites More sharing options...
narkima Posted February 29, 2012 Author Share Posted February 29, 2012 Someone has an idea? Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted February 29, 2012 Moderators Share Posted February 29, 2012 narkima,Welcome to the AutoIt forum. How do you detect the touches on the screen? Do they simulate mouseclicks? If so then Malkey produced some code here which allows you to tell if a mouseclick is within a certain area of the screen - it might be what you need to start your project. For playing a sound look at SoundPlay in the Help file. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
narkima Posted February 29, 2012 Author Share Posted February 29, 2012 This is a great hint. Thanks! And yes they simualte mouseclicks =). I'll have a try and post some results. Maybe someone else has an idea how to solve this problem. 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