Jump to content

Recommended Posts

Posted

Hi guys,

 

I created a script that has been working satisfactory - for the most part. My script is voting constantly on a website and every once and a while the script will not refresh the page and cause the script to press a "view results" link, of which causes it to open another tab and not vote. 

 

So I am relatively new to scripting and have relied on YouTube videos and forums to help, but I  cannot find anything on this.

I am looking to weave into my script a "If - Then" if possible. Something like " If this tab opens, go back to the voting page" type of deal. I'll post my script below with my attempt of the"If-Then" statement.

 

Any help would be greatly appreciated, also if there is anything else that would work better, feel free to offer suggestions!

 

Script: 

 

 

 

 

Capture.PNG

Posted (edited)

Hi @twilliams4108,and welcome to the AutoIt forums :welcome:

1. You should declare your variables before using them; take a look at here to see more about variables;

2. Since you are trying to automate a web-page, you could use IE UDF, which is definitely more reliable than Mouse* and Send() functions;

3. Use the code tag <> to insert your script instead of making a screenshot of it.

:)

Edited by FrancescoDiMuro

Click here to see my signature:

Spoiler

ALWAYS GOOD TO READ:

 

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
×
×
  • Create New...