| | |
Back End Web Browser Interaction?
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: May 2009
Posts: 2
Reputation:
Solved Threads: 0
Alright so I'm working with a program that works with various email programs and I'd like to use it to automate the login process. I know I can open a browser using
ShellExecute(NULL, "open", "https://various.email.com/", NULL, NULL, SW_SHOWNORMAL);
but how would I actually parse the login/password strings into the text fields of the browser?
ShellExecute(NULL, "open", "https://various.email.com/", NULL, NULL, SW_SHOWNORMAL);
but how would I actually parse the login/password strings into the text fields of the browser?
•
•
Join Date: Oct 2008
Posts: 122
Reputation:
Solved Threads: 6
Just an alternative on the way to open browsers:
I beleive what you have to do is to extract the login and password as two strings and then create a new string (myURL) like this:
Hope it helps!
C++ Syntax (Toggle Plain Text)
String^ myURL = "http://www.google.com"; System::Diagnostics::Process::Start("iexplore.exe", myURL );
I beleive what you have to do is to extract the login and password as two strings and then create a new string (myURL) like this:
C++ Syntax (Toggle Plain Text)
String^ myURL = "http://www.google.com"; String^ mylogin = "abc"; String^ myPassword = "def" //New myURL myURL = myURL + "/" + myUser + "/" + myPassword;
Hope it helps!
•
•
•
•
Alright so I'm working with a program that works with various email programs and I'd like to use it to automate the login process. I know I can open a browser using
ShellExecute(NULL, "open", "https://various.email.com/", NULL, NULL, SW_SHOWNORMAL);
but how would I actually parse the login/password strings into the text fields of the browser?
Last edited by Liszt; May 13th, 2009 at 10:39 pm.
Well when the page loads up. You SHOULD CHECK OUT THE source and see for the names of the forms.
then you can write something like this
"http://www.some.some/login.php?FORMNAME1=Username&FORMNAME2=Password
Replace formname with the actual form names in the source and User Name and password with your user names
then you can write something like this
"http://www.some.some/login.php?FORMNAME1=Username&FORMNAME2=Password
Replace formname with the actual form names in the source and User Name and password with your user names
![]() |
Similar Threads
- How a web browser retrieves a web page? (Domains and DNS)
- Help Web Browser Open File Dialog Problems (VB.NET)
- How to display google map or Virtual Earth in PDA web browser (VB.NET)
- Back navigation in web browser not working c# (C#)
- Computer shutting down with web browser? (Troubleshooting Dead Machines)
- back end web site design (PHP)
- Web browser with predermined par of URL (VB.NET)
- Web Browser control with Tabcontrol (VB.NET)
- PHP/MySQL (LAMP) Unique opportunity in San-Francisco (Software Development Job Offers)
- Open Source (LAMP) Software Architect (Back-end) – San Francisco Bay Area (Software Development Job Offers)
Other Threads in the C++ Forum
- Previous Thread: employee class
- Next Thread: Check whether 2 Arrays contain the same values
| Thread Tools | Search this Thread |
api array beginner binary bitmap c++ c/c++ calculator char char* class classes code coding compile compiler console conversion count database delete desktop developer directshow dll download dynamic email encryption error file forms fstream function functions game givemetehcodez google graph gui homeworkhelper iamthwee ifstream input int integer java lib linkedlist linker linux loop looping loops map math matrix memory multiple news node number numbertoword output parameter pointer problem program programming project proxy python random read recursion recursive return sorting string strings struct temperature template templates test text text-file tree unix url variable vector video visualstudio win32 windows winsock word wordfrequency wxwidgets





