Toppy Posted July 14, 2004 Posted July 14, 2004 Hi, I have been investigating a program using Window Spy, there are shown classnames and class'es.... Now I can nowhere in the controlclick and other control commands anything where I can point AI3 to some class, the helpfile only speaks about classnameNN , nowhere can I find classNN in the helpfile. For example, I would like to fire up Ad Aware, and auto-click the "Check for updates now" link, but I can't seem to do that, anyone who has Ad-Aware too, been able to click "Check for updates now" using a ControlClick ?
pekster Posted July 14, 2004 Posted July 14, 2004 The classname is the class of the window, and is only usefull if you set Opt("WinTitleMatchMode", 4) to use classnames. If you want to use a Control* function (such as ControlSend or ControlClick) you need to look at the "Last Control Under Mouse" part of the spy window. It will usually say something like "Edit1", "Button2" or "ToolbarWindow322". That is what you use with the control functions. [font="Optima"]"Standing in the rain, twisted and insane, we are holding onto nothing.Feeling every breath, holding no regrets, we're still looking out for something."[/font]Note: my projects are off-line until I can spend more time to make them compatable with syntax changes.
Developers Jos Posted July 14, 2004 Developers Posted July 14, 2004 The "Check for updates now" in Ad Aware isn't a class but some sort of link. You wiill have to do a MouseClick to activate it.... SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
emmanuel Posted July 14, 2004 Posted July 14, 2004 The "Check for updates now" in Ad Aware isn't a class but some sort of link. You wiill have to do a MouseClick to activate it....which shouldn't be sooo bad, as the "Check for updates" stays in the same place related to the window even if it's resized. "I'm not even supposed to be here today!" -Dante (Hicks)
emmanuel Posted July 14, 2004 Posted July 14, 2004 "Check for updates now" is a link, but the globe with the glass in the upper right is a control, it's "TACimage15". You should be able to controlclick that. "I'm not even supposed to be here today!" -Dante (Hicks)
CyberSlug Posted July 14, 2004 Posted July 14, 2004 By the way, someone posted an "Unofficial Adaware Updater" script. Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!
Toppy Posted July 14, 2004 Author Posted July 14, 2004 (edited) Ah! Thanks for all the help Pushing the globe icon works Edited July 14, 2004 by Toppy
Arctor Posted July 14, 2004 Posted July 14, 2004 Why not sending keystrokes? It's mostly more easy. Starting Adaware, sending 8 TABS and then a SPACE. arctor
emmanuel Posted July 14, 2004 Posted July 14, 2004 Why not sending keystrokes? It's mostly more easy.Starting Adaware, sending 8 TABS and then a SPACE.arctorcontrol click will work on a minimized or (some) hidden window, send doesn't... 'course controlsend does, though who know which control you'd want to send those strokes to... "I'm not even supposed to be here today!" -Dante (Hicks)
Arctor Posted July 15, 2004 Posted July 15, 2004 control click will work on a minimized or (some) hidden window...Ahh, I understand...arctor
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