Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21842

Help with logging out of Twitter

$
0
0
I am trying to log in to Twitter and submit a tweet in vb6.
I should use the REST API but it is way too much confusing.
So I thought I would use the internet control.
The internet control is named to 'ww' and I use this URL to navigate to the login page.
Am using the mobile page because it is simpler and loads faster.
I have two text boxes and a command button which serve as the username & password fields, and as the Sign In button.
The internet control's visible property is set to false.
Then I navigate to this page to compose a tweet and just fill the text field with the data from another textbox which serves as the Tweet's content and then the user clicks on this other command button which serves as the submit button in the page.
Now the problem is that even after my application exits, and reopens, when the internet control navigates to the login page it doesn't show the log in page, but the home page and I am logged in.

How can I prevent this from happening?
I would try to send the click command on the 'Me' button in the twitter's mobile homepage, wait for the page to load, and then send the click command to sign out? But I don't know how to send the click command for the 'Me' button because it is just an image and it doesn't have a name.
Anyone can help me? If you didn't understand the thread just ask.
Thank you in advance :)

Viewing all articles
Browse latest Browse all 21842

Trending Articles