AntiBNI Posted December 15, 2006 Posted December 15, 2006 Ok heres the thing i know how to find a text on a window title and all that stuff blah blah ,But the thing is that i want the script to find the text and then click on the text. I have tried but Failed countless times sending me into a corner banging my head into the wall triying to find a logical solution . so i gues is like ppl say 2 heads thinks better then 1. Thanks in advice... Cheers, Anti
DaleHohm Posted December 15, 2006 Posted December 15, 2006 So you know there are lots of different types of controls right? The method will be dictated by those controls. You'll need to share at least a bit more if not a lot more information about what you are working with, what you've tried and what didn't work the way you expected it to. Dale Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model Automate input type=file (Related) Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded Better Better? IE.au3 issues with Vista - Workarounds SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead? Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble
AntiBNI Posted December 15, 2006 Author Posted December 15, 2006 So you know there are lots of different types of controls right? The method will be dictated by those controls. You'll need to share at least a bit more if not a lot more information about what you are working with, what you've tried and what didn't work the way you expected it to. Dale Ok,hmm heres an ilustrative example: If $text = WinGetText ("NotePad1","") = "Whatever" Then MouseClick ("left"´,$text,$text,1,) End If This code i know that will NOT work but its just so u guys have an ilustrative example about what i want to do. I want that when WinGetText Searches NotePad1 and Finds the word "Whatever" The MouseClick aplication Clicks on top of the word "Whatever". Thanks in advice.... Cheers, Anti
AntiBNI Posted December 18, 2006 Author Posted December 18, 2006 Atleast ani one know how to put a $string in mousecoords? like sleep (5000) $text = WingetText ("Notepad","Clickme") If WingetText ("Notepad","")=$text Then MouseClick("left", $text,$text, 1) EndIf I cant figure out how to put $text on the mouse coords. btw that code recognices the text and all but the mouse moves to coods x=0 y=0 instead of the coords that the actual text is.
Moderators SmOke_N Posted December 18, 2006 Moderators Posted December 18, 2006 You trying to do something that doesn't exist. Something like TextGetPos() or something. There's no way with the current functionality to be able to do such a thing. You may want to learn how to create an OCR to find the desired text, then once found show you where it was found, but you can't use a string of characters as the coordinates for MouseClick() that's just common sense. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
JoshDB Posted December 19, 2006 Posted December 19, 2006 I know just what you need - Chyah!http://www.autoitscript.com/forum/index.php?showtopic=21629 Ha, I haven't been on these forums since... 2006, almost. Behold, my legacy signature:My AutoIt idol is Valuater. You know you love him, too.My Stuff: D&D AGoT Tools Suite
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