Jump to content

Help in writing my first script


Best
 Share

Recommended Posts

Hello AutoIt scripters !

I am a beginner learning how to write AutoIt scripts, I have an experience using php and javascript,

I learn fast, so can you help me, please??

The Idea:

I have a website with visitors counter,

I want a script to:

0- Open Firefox.

1- enter my website.

2- copy the the numbers of the visitors.

3- paste it in a SMS form and press send button.

Ok.

the problem I cant figure out which codes to use,

and I want the mouse to copy the stat of my website.

Thanks AutoIt guys for opening The Auto World for me. :mellow:

Link to comment
Share on other sites

Hi again,

if you want to copy visitor from web site you have two solutions :

-read source code and you know the line of visitor number (for exemple line 28) and then you can do

FileReadLine("mypage.html",28)

And use String function for select number of visitor in the line

-Copy visitor from visite website with

MouseClickDrag(); Use button left of mouse
Send(^{C}); Copy what you have selected > CTRL+C

With au3info you can check pixel coords for mouse click or use mousegetpos()

Edited by FireFox
Link to comment
Share on other sites

Ok guys, why you didnt understood me, I will explain :

0- I want to open fireFox.

1- Open My website. (www.sitename.com).

2- Using the MOUSE (I have the coordinates) : select the number of visitors and Copy It.

3- Open new Firefox Tab (www.Site.com).

4- Paste the number of visitors , in a sms forum and click SEND (I have the coordinates) .

THATS ALL.

Can you help please?? WITH Details??? please?? :mellow:

Link to comment
Share on other sites

Ok guys, why you didnt understood me, I will explain :

0- I want to open fireFox.

1- Open My website. (www.sitename.com).

Shellexecute(@programfilesdir&"\Mozilla Firefox\Firefox.exe","www.site.com")

2- Using the MOUSE (I have the coordinates) : select the number of visitors and Copy It.

MouseClickDrag("left",x1,x2,y1,y2) ; x are coords of first click and y are coords of the x to drag selection
Send(^{C}); copy the draged zone : ^ for ctrl and C for C key > ctrl+c

3- Open new Firefox Tab (www.Site.com).

same thing Q1

4- Paste the number of visitors , in a sms forum and click SEND (I have the coordinates) .

MouseClick("left",x,y); click to sms input with left mouse button
Send(ClipGet());Send clipboard

THATS ALL.

Can you help please?? WITH Details??? please?? :mellow:

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...