Sign in to follow this  
Followers 0
darkmaster071

Need some help please

5 posts in this topic

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)

Share this post


Link to post
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)

Share this post


Link to post
Share on other sites

_ie functions are very usefull. However i need to click on flash objects. I dont think _ie functions can do that?

Share this post


Link to post
Share on other sites

_ie functions are very usefull. However i need to click on flash objects. I dont think _ie functions can do that?

For Flash, I have used PixelGetColor() and click on them

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

Its good but i need control functions to work anyway. Um does anyone have any idea what should i put in ControlID place in functions if Autoit Window Info does not show it? How do i identify a control?

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