autoitmeister101 Posted November 6, 2004 Share Posted November 6, 2004 Hey, I'm very new to autoit and don't know much about coding it. I was wondering if there was such a command to locate a name/letters/numbers, and if it located them, it would click on them/the object. Link to comment Share on other sites More sharing options...
scriptkitty Posted November 6, 2004 Share Posted November 6, 2004 Yes. If they are names or numbers on buttons, they are easily done, you can also have autoit find names on web pages and activate them as well. AutoIt3, the MACGYVER Pocket Knife for computers. Link to comment Share on other sites More sharing options...
autoitmeister101 Posted November 6, 2004 Author Share Posted November 6, 2004 Yes. If they are names or numbers on buttons, they are easily done, you can also have autoit find names on web pages and activate them as well.<{POST_SNAPBACK}>DO you thin you could list some commands?o ANd Thanx Link to comment Share on other sites More sharing options...
scriptkitty Posted November 6, 2004 Share Posted November 6, 2004 hmmm off the top of my head for and IE example. There are better ways but... while 1 if Winactive("AutoIt Forums","") then send("^f") winwaitactive("Find") send("v3 Support{enter}") sleep(1000) send("{esc 2}") sleep(1000) send("^c") if clipget()="v3 Support" then send("+{tab}{enter}") exitloop endif endif sleep(1000) wend AutoIt3, the MACGYVER Pocket Knife for computers. Link to comment Share on other sites More sharing options...
autoitmeister101 Posted November 6, 2004 Author Share Posted November 6, 2004 Hmm... What if I wanted it to find a name say on... AIM, as in (when I already have AIM open) It would just find a name and click on it. I looked thru the commands and fiddled with a few but nothing worked. Link to comment Share on other sites More sharing options...
scriptkitty Posted November 6, 2004 Share Posted November 6, 2004 (edited) I don't use AoL Instant Messenger. Might be able to use a WindowGetText() and search that string for the name. Not sure if you would click it, or if you would be better off with a key sending approach. Someone else who uses Aim might be better. besides it is a bit late for me to think edit. dang tired and seem to misstype more often Edited November 6, 2004 by scriptkitty AutoIt3, the MACGYVER Pocket Knife for computers. Link to comment Share on other sites More sharing options...
autoitmeister101 Posted November 6, 2004 Author Share Posted November 6, 2004 Ok.. I think I found it. The ControlClick command but I'm not sure how to go about using this. It's ControlClick ( "title", "text", "classnameNN" [, button] [, clicks]] ) But how would I find "classnameNN"? Link to comment Share on other sites More sharing options...
Josbe Posted November 6, 2004 Share Posted November 6, 2004 Ok.. I think I found it. The ControlClick command but I'm not sure how to go about using this. It's ControlClick ( "title", "text", "classnameNN" [, button] [, clicks]] ) But how would I find "classnameNN"?<{POST_SNAPBACK}>Use AutoIt-Spy • AUTOIT > AutoIt docs / Beta folder - AutoIt latest beta Link to comment Share on other sites More sharing options...
autoitmeister101 Posted November 6, 2004 Author Share Posted November 6, 2004 Uhhh... Yeah but I wan't it to click something without me having to put the coords on EVERYTHING... Link to comment Share on other sites More sharing options...
autoitmeister101 Posted November 6, 2004 Author Share Posted November 6, 2004 Well anyone here that has aim know what i'm talking about? I would like it to 1. Look for the words (The screenname of the person) 2. Click it 3. Make some text. Link to comment Share on other sites More sharing options...
CyberSlug Posted November 7, 2004 Share Posted November 7, 2004 (edited) Something like this might work for you....1) Create a file names "C:\AimAutoIt.html" that contains the following text<HTML> <BODY> <META HTTP-EQUIV="refresh" CONTENT=4;URL=aim:goim?screenname=mybuddy&message=buch_of_stuff_here> </BODY> </HTML>2) Create an AutoIt script that contains the following:Run("C:\Program Files\Internet Explorer\iexplore.exe C:\AimAutoIt.html", "", @SW_MINIMIZE) Opt("WinTitleMatchMode", 2);match any partial title text WinWait("Instant Message");should be in title of AIM window WinClose("C:\AimAutoIt.html - Microsoft Internet Explorer");close that IE windowYou could even write an AutoIt script to generate the HTML file for you....Information based onhttp://jessicarae.tripod.com/comp/aimlinks.htmlhttp://www.imhut.com/aimtricks/aimcodes.phphttp://www.securityfocus.com/archive/1/282443 Edited November 7, 2004 by CyberSlug Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
autoitmeister101 Posted November 7, 2004 Author Share Posted November 7, 2004 Nice, thanks for your help that worked 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