Vegas Posted March 25, 2009 Share Posted March 25, 2009 Hi all, i am very new and not so familiar with the scripting, (only a few little Macros in Excel). I have read the Search for a few Days, but i dont find what i am searching for( maybe blind? ;-) ) I think i have a really Beginner Problem. I want to click a Button on a Website when it appears. Instead of the Button when its not visible is a Link. I tried to create a Script that do the following: Mouse goes to a Place at the Site, then one Tab (then i am on the Link), it should read 2 Lines above a Text, and when the Text is matching, then click Enter. The Problem is the Script could not read the Text to use it as a String :-( Can anyone help me please, that would be very kind of u. This is the Script i use: $i = 0 Do Opt("WinWaitDelay",3000) Opt("WinTitleMatchMode",4) Opt("WinDetectHiddenText",1) Opt("MouseCoordMode",0) Opt("WinTextMatchMode",2) WinWait("**** - Mozilla Firefox","") If Not WinActive("**** - Mozilla Firefox","") Then WinActivate("**** - Mozilla Firefox","") WinWaitActive("**** - Mozilla Firefox","") Send("{F5}") MouseMove(303,603) Send("{TAB}") $text = WinGetText("**** - Mozilla Firefox", "1 of 10") If $text = True Then Send("{enter}") Exit $i = $i + 1 Until $i = 3 Thx for ur Help Link to comment Share on other sites More sharing options...
Stilgar Posted March 25, 2009 Share Posted March 25, 2009 You can't read a text from a FireFox window, because FF ist not using windows controls.If you wanna automate FF you can look there: FF.au3 jEdit4AutoIt PlanMaker_UDF Link to comment Share on other sites More sharing options...
Vegas Posted March 25, 2009 Author Share Posted March 25, 2009 You can't read a text from a FireFox window, because FF ist not using windows controls.If you wanna automate FF you can look there: FF.au3thank you for ur Help, i will try it 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