Medic873 Posted March 31, 2010 Posted March 31, 2010 How can I make it automaticly click on 400,400 within a window. The window is 800,646 and I have the title and class of it. But i can make it automaticly click the image because its basicly a flash webpage. MacromediaFlashPlayerActiveX1
KaFu Posted March 31, 2010 Posted March 31, 2010 Use WinGetPos() to determine the windows position and add the coords respectively. OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2024-Oct-13) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Oct-13) HMW - Hide my Windows (2024-Oct-19) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2025-May-18) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16)
ionmang20 Posted March 31, 2010 Posted March 31, 2010 How can I make it automaticly click on 400,400 within a window. The window is 800,646 and I have the title and class of it. But i can make it automaticly click the image because its basicly a flash webpage. MacromediaFlashPlayerActiveX1 ControlClick("title", "", "", "", 1, 400, 400)
Medic873 Posted March 31, 2010 Author Posted March 31, 2010 Okay the control click worked perfect but now I am having a little bit of a issue. I could really improve my program if it could detect a color in the window. Is there any way to use the pixel search function. So if will find the Control send cordinates.
ionmang20 Posted March 31, 2010 Posted March 31, 2010 Okay the control click worked perfect but now I am having a little bit of a issue. I could really improve my program if it could detect a color in the window. Is there any way to use the pixel search function. So if will find the Control send cordinates. Try PixelGetColor ( x , y [, hwnd] ), but maybe I can give you a better ideea if you post the webpage and what you what to do.
Medic873 Posted April 2, 2010 Author Posted April 2, 2010 Why I have to say that control click is quite awesome. I never had it working but since you helped me with it I have been able to finish several applications that had been taking forever to make thank you.
ionmang20 Posted April 2, 2010 Posted April 2, 2010 Why I have to say that control click is quite awesome.I never had it working but since you helped me with it I have been able to finish several applications that had been taking forever to make thank you.I'm glad you got your problem solved.In the future, try reading the help file, because this basic functions are very good explained and there are a lot of examples with them.
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