Hello,

So I'm trying to make a program to auto bump my facebook posts. I have made it log in etc but there is no 'post' button on facebook, you have to press enter on the keyboard. How can I make the program press enter in the box and make it work?

The code I currently have that enters the message but doesn't press enter to send the post is:

     Dim allelements As HtmlElementCollection = b.Document.All
            For Each element As HtmlElement In allelements
                If element.GetAttribute("title") = "Write a comment..." Then
                    element.SetAttribute("value", "bump{enter}")
                End If
            Next

Any help is very appreciated!

Thanks.

Yes. It gives me an error saying its not an expression.

Can you please post the code that is throwing the error?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.