Sign in to follow this  
Followers 0
Vegas

click butto when it appear

3 posts in this topic

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

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

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

thank you for ur Help, i will try it

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0