Jump to content

Need some help please


Recommended Posts

Im automating a website and i would like it to all to run hidden in background and I cant seem to get controls working. The controlclick just missclicks several times or even makes a big mess. Well i dont EVER get any ControlID in Autoit Window info so i was trying with classes which obviusly didnt work... Hope someone helps me as i would really like to make this work.

Heres an example of controlclick Gmail

#include <IE.au3>

_IECreate("http://mail.google.com/mail/?hl=sl&tab=wm#inbox", 0, 1, 1, 0)
Sleep(2000)
ControlClick("Gmail - Prejeto (64) - darkmaster071@gmail.com - Windows Internet Explorer", "", "[CLASS:Internet Explorer_Server; INSTANCE:1]", "left", 79, 269)
Link to comment
Share on other sites

I guess the window's title is wrong... btw why dont use _ie functions? look in the help file.

here is an example of how to set email and password fields for gmail

#include <IE.au3>

$oIE = _IECreate("http://mail.google.com/mail/?hl=sl&tab=wm#inbox", 0, 1, 1, 0)
$oForm = _IEGetObjById ($oIE, "gaia_loginform")
If $oForm = 0 Then
    MsgBox(0, '', @error)
EndIf
$oEmail = _IEFormElementGetObjByName ($oForm, "email")
$oPassword = _IEFormElementGetObjByName ($oForm, "passwd")
$email = 'boooh@hotmail.it'
$password = 'boooh'
_IEFormElementSetValue ($oEmail, $email)
_IEFormElementSetValue ($oPassword, $Password)
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...