Sign in to follow this  
Followers 0
Shiro

open a site in hidden mode, fill form and click on check

6 posts in this topic

hello,

i want to write a script in which i want to open a site in hidden mode. it's link: http://host-tracker.com/

then enter the web address in the following field.

Posted Image

and click the check button and pause the script for 5 minutes.

can you plz help me to automate this process?

thanx


Share this post


Link to post
Share on other sites



fyi, I feel sorry for you.... next time read the help!

#include <ie.au3>

$oIE = _IECreate( "http://host-tracker.com/" , 0 , 1 )
If @error Or Not IsObj($oIE) Then Exit 10

$oInputs = _IETagNameGetCollection( $oIE , "input" )
If @error Or Not IsObj($oInputs) Then Exit 20

Local $oInput = ""
For $oInput in $oInputs
    If $oInput.type == "text" Then
    If $oInput.name == "url" Then
    If $oInput.id == "url" Then
        $oInput.value = "http://www.google.com"
        ExitLoop
    EndIf
    EndIf
    EndIf
Next

For $oInput in $oInputs
    If $oInput.type == "submit" Then
    If $oInput.value == "Check" Then
        $oInput.Click
        ExitLoop
    EndIf
    EndIf
Next

Sleep( 1000 )

_IELoadWait( $oIE )

"When the power of love overcomes the love of power, the world will know peace"-Jimi Hendrix

Share this post


Link to post
Share on other sites

thanks a lot but it's working visible.

i want it to be in hidden mode.


Share this post


Link to post
Share on other sites

thanks a lot but it's working visible.

i want it to be in hidden mode.

Open Scite (download it and install it from autoitscript.com)

Save the script above in a file

Highlight _IECreate and Press F1

Read!


"When the power of love overcomes the love of power, the world will know peace"-Jimi Hendrix

Share this post


Link to post
Share on other sites

Check out this line and see what are the parameters of this function in the help file.

$oIE = _IECreate( "http://host-tracker.com/" , 0 , 1 )

Share this post


Link to post
Share on other sites

Check out this line and see what are the parameters of this function in the help file.

$oIE = _IECreate( "http://host-tracker.com/" , 0 , 1 )

i changed it to this

$oIE = _IECreate( "http://host-tracker.com/", 0, 0, 1)

but now i think it's not working...


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