darkmaster071 Posted April 12, 2009 Share Posted April 12, 2009 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 More sharing options...
oMBRa Posted April 12, 2009 Share Posted April 12, 2009 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 More sharing options...
darkmaster071 Posted April 12, 2009 Author Share Posted April 12, 2009 _ie functions are very usefull. However i need to click on flash objects. I dont think _ie functions can do that? Link to comment Share on other sites More sharing options...
Valuater Posted April 12, 2009 Share Posted April 12, 2009 _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 them8) Link to comment Share on other sites More sharing options...
darkmaster071 Posted April 12, 2009 Author Share Posted April 12, 2009 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? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now