Jump to content
Sign in to follow this  
Raith

Learning about automations (using facebook as key example)

Recommended Posts

Raith

Hi folks. I'm learning how to properly use AutoIT to create automations, for program clicking and such, it is easy because I can just snap references using the Window Tool. However, I'm trying something else, and I want to work on this and see if it will work. My idea is essentially this:

  1. Log into Facebook (facebook.com)
  2. Access a particular URL path (https://www.facebook.com/groups/?category=membership)
  3. Click into the objects to do a "mass removal" of groups

I am hitting a problem where, for example, the group buttons are spans such as:

<i class="_54-i img sp_U0hSS2umViQ sx_04bb31"></i>

So far, my app goes as far as this:

#include <IE.au3>
Local $oIE = _IECreate("www.facebook.com")
Local $userName = _IEGetObjByName($oIE, "email")
Local $password = _IEGetObjByName($oIE, "pass")
Local $button = _IEGetObjByID($oIE, "u_0_n")
_IEFormElementSetValue($userName, 'emailHere')
_IEFormElementSetValue($password, 'passHere')
_IEAction ($button,"click")

Edit - I have been playing with other things too and sometimes get this error:

 

$_IESTATUS_COMError (-2147352567)

I searched through Google on what it means and I simply don't know. Also, if I add the following to the above code, I am not even getting logged into facebook.

 

_IENavigate($oIE, "

https://www.facebook.com/groups/?category=membership")

 

Can someone assist as to how I would properly do something like this? Thanks!

Edited by Raith

Share this post


Link to post
Share on other sites
Raith

See examples iuiautomation

See ie.au3 ff.au3 chrome.au3

See java.udf

 

​I know about ie.au3 and chrome.au3, I will check the others. Thank you for your suggestions.

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  

×