para Posted November 26, 2004 Posted November 26, 2004 Is it possible to make the mouse click a certain class/ area with text that "au3spy" can read? so like, if there was a gui open and it said "open" on it, would there be a way to make the mouse click "open" instead of needing corrdinance? thanks
ezzetabi Posted November 26, 2004 Posted November 26, 2004 (edited) ControlClick()orControlGetPos() + Opt('MouseCoordMode',0) Edited November 26, 2004 by ezzetabi
para Posted November 26, 2004 Author Posted November 26, 2004 I tried controlclick and couldn't get it to work, it wouldn't click were i wanted it to, is there somthing i am missing?
ezzetabi Posted November 26, 2004 Posted November 26, 2004 Some controls are not easy to script, if the Winspy window give you a name with a & simbol in it you can try ControlSend() ALT+the letter directly to control. It usually works.
para Posted November 26, 2004 Author Posted November 26, 2004 i dont think i understand what your saying, what i want to happen is i want the script to click the address bar on iexplore.exe (internet explorer) if you could please provide me the script for that, i think i could figure out the rest... thanks bro
erebus Posted November 27, 2004 Posted November 27, 2004 i dont think i understand what your saying, what i want to happen is i want the script to click the address bar on iexplore.exe (internet explorer)if you could please provide me the script for that, i think i could figure out the rest... thanks bro<{POST_SNAPBACK}>Three examples of how to do that:; Let's say you want to open the website http://www.autoitscript.com ; Example 1 Run("C:\Program Files\Internet Explorer\iexplore.exe http://www.autoitscript.com"); Example 2 Run("C:\Program Files\Internet Explorer\iexplore.exe") WinWaitActive("Internet Explorer"); Internet Explorer's title varies in different versions of Windows. Use AU3_Spy to find yours. ControlClick ("", "", "Edit2") Send("http://www.autoitscript.com") ControlClick ("", "", "ToolbarWindow322"); Example 3 Run("C:\Program Files\Internet Explorer\iexplore.exe") WinWaitActive("Internet Explorer") Send("{TAB}http://www.autoitscript.com{ENTER}")Hope these help,
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