Sign in to follow this  
Followers 0
Guest Duc_john

Using IExplorer for easy entry?

2 posts in this topic

I'm making a script to read a file with information of a client. Then I start IExploder and start filling the web-application.

Now I do this by navigating hte mouse on the screen en maximise IE. I don't think this is a good and working solution because any change on the web-page will breakup the script.

Does anybody have an idee how to do this more robust (So I don't have change the script)

Thanx.

Little samepell:

;//geslacht

If ($NAW[10] = String("meneer")) Then

MouseMove($geslman[0], $geslman[1], 0)

MouseClick($primary)

Else

MouseMove($geslvr[0], $geslvr[1], 0)

MouseClick($primary)

EndIf

;//Particulier of Zakelijk

If ($NAW[11] = String("particulier")) Then

MouseMove($partic[0], $partic[1], 0)

MouseClick($primary)

Else

MouseMove($zakel[0], $zakel[1], 0)

MouseClick($primary)

EndIf

Dim $af = 0 ;//particuliere afstand

If ($NAW[11] = String("zakelijk")) Then

$af = $bedrijfnm[2]

;//Bedrijfsnaam

MouseMove($bedrijfnm[0], $bedrijfnm[1], 0)

MouseClick($primary)

Send($NAW[24])

Send("{TAB}")

Send($NAW[25])

EndIf

;//naam persoon

MouseMove($nm_voor[0], ($nm_voor[1] + $af), 0)

MouseClick($primary)

Send($NAW[12])

Send("{TAB}")

Send($NAW[13])

Send("{TAB}")

Send($NAW[14])

Send("{TAB}")

;//Geboortedatum

Send($NAW[15])

Send($NAW[16])

Send($NAW[17])

;//Bank/Giro

Send($NAW[18])

Send("{TAB}")

;//Tel Thuis

Send($NAW[19])

Send("{TAB}")

Send($NAW[20])

Send("{TAB}")

;//Tel Werk

Send($NAW[21])

Send("{TAB}")

Send($NAW[22])

Send("{TAB}")

;//Tel Mob

Send($NAW[23])

MouseMove($check_NAW[0], ($check_NAW[1] + $af), 0)

MouseClick($primary)

Sleep(1000)

Share this post


Link to post
Share on other sites



It might be better to use javascript to fill out the form. Javascript is a web-based language designed to interact with webpages. It can fill out forms much easier than autoit ever could. I have been using javascript happily for many years, and have had no problems.


Who else would I be?

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