hi,
I would like to login on a website (for example megaupload.com) with my account details. I can do this in php, but would like some help with doing this in c# I am working on a windows based form (if this matters somehow) and would like some help how I can connect to internet and login on megaupload.com
any help is greatly appreciated!
LW
using c# to login on a website
Started by lordwittie, Apr 04 2010 01:58 AM
1 reply to this topic
#1
Posted 04 April 2010 - 01:58 AM
|
|
|
#2
Posted 04 April 2010 - 04:20 AM
First you nid a control for web..drag it in your form..then for example the name of control is webControl
use his method navigate. it will look like webControl.navigate("megaupload.com") or webControl.navigate = "megaupload.com"..check which work..
then you nid the cursor focus is in the textbox for username use the method sendkeys("\t") to send tab in the webControl so that the focus will go to textbox then it will automatically type your username then send tab again so that it will type your password then send enter to login..i use this in logging in my facebook automatically
use his method navigate. it will look like webControl.navigate("megaupload.com") or webControl.navigate = "megaupload.com"..check which work..
then you nid the cursor focus is in the textbox for username use the method sendkeys("\t") to send tab in the webControl so that the focus will go to textbox then it will automatically type your username then send tab again so that it will type your password then send enter to login..i use this in logging in my facebook automatically


Sign In
Create Account


Back to top









