![]() |
| | #1 |
| The superheterodyne. Join Date: Dec 2005 Location: Ireland
Posts: 2,205
| auto log in program .... This is the code for opening the webpage ... so if anyone could add something to it to paste the username and password to the right place, it'd be great!!!!!!! PHP Code: Twomers EDIT: whoops, forgot: Windows XP and Microsoft Visual C++
__________________ I blag! Last edited by twomers; 01-13-2006 at 06:44 AM. |
| twomers is offline | |
| | #2 |
| Registered User Join Date: Jan 2006
Posts: 5
| Wow, that's cool. ... hmmm, don't have a clue though. |
| eagles is offline | |
| | #3 |
| SSDD Join Date: Jan 2005
Posts: 369
| I've not tried this, so it may not work. Maybe you could get the program to automatically hit the tab key to get it to the username and password. Then paste it in. Or get the program to maximise the G-mail window. Then find out what the screen coordinate is for the usename. Mouse click there then paste it in... (that's a bit more iffy though and would only work on your computer). I don't really know and may be totally wrong. |
| treenef is offline | |
| | #4 |
| Registered User Join Date: Sep 2004 Location: California
Posts: 2,845
| This is quite a bit harder than you think it is. The main problem you face is that your program cannot simply paste text into the Edit boxes on the a browser. The reason is that pasting is handled by those edit controls, not by your application. The edit controls wait until they see a WM_PASTE message, then they copy the contents of the clipboard into their window. Now you could attempt to send these controls a WM_PASTE message, but then you run into another problem. How do you get a handle to Edit controls in a web browser? One thing you could try is a GET request in the browser itself. Instead of passing www.gmail.com to the browser, you could try something like this: Code: https://www.google.com/accounts/ServiceLoginAuth?Email=myemail@gmail.com&Passwd=mypasswd As of right now, that is the only method I can think of to do what you are trying to do. |
| bithub is offline | |
| | #5 |
| The superheterodyne. Join Date: Dec 2005 Location: Ireland
Posts: 2,205
| Well, I'd thought about both of those, but I just don't know the method of accomplishing it you see ... do you know how I can paste things into an internet explorer console ?
__________________ I blag! |
| twomers is offline | |
| | #6 | |
| The superheterodyne. Join Date: Dec 2005 Location: Ireland
Posts: 2,205
| Quote:
__________________ I blag! | |
| twomers is offline | |
| | #7 |
| Registered User Join Date: Dec 2005
Posts: 151
| I know one way of doing it... a little more safer I think (if your scrip is encrip)1st make it bring up the web site and put focus onto the website. 2end Use Keybd_event() then set your name like so, letting the computer type it in, then make it press tab, and after that make it press in your password. It will take some time for you to put all that in but I do that with a game and it makes thing easier to log into. |
| adr is offline | |
| | #10 |
| Registered User Join Date: Dec 2005
Posts: 151
| LOL I could, but I all ready did I thinkO.o; LOL I cant remember, I just ask stuff I didnt know on it, but for the most part its easy seeing as I did it and did have a clue yet on this stuffXD To use the keybd_event() you need to know that when your press something you know when yo pick it up, but the computer is not all that smart and will keep it down so you also need to make it press back up like in this code. Code: keybd_event(0,0,0,0); keybd_event(0,0,KEYEVENTF_KEYUP,0); Code: if (FindWindow(NULL,"what your looking for")){
HWND pol = FindWindow(NULL,"what your looking for");
BOOL ret = SetForegroundWindow(pol);
Part 2. I think there is. You have to look it up. To have like so meny sec. tho its easy. Just use Code: Sleep(for ever how long); Last edited by adr; 01-15-2006 at 02:12 AM. |
| adr is offline | |
| | #11 |
| Registered User Join Date: Oct 2005
Posts: 26
| hehe I always found it easier just to use a macro |
| two31d is offline | |
| | #13 |
| Registered User Join Date: Nov 2002
Posts: 249
| so why dosent this press the t key keybd_event(54,0,0,0); keybd_event(54,0,KEYEVENTF_KEYUP,0);
__________________ |
| Anddos is offline | |
| | #14 | |
| The superheterodyne. Join Date: Dec 2005 Location: Ireland
Posts: 2,205
| Quote:
Does it print a 6 for you?? What do you want it to print? 54? It won't print what you have in the first arguement, i think. There is a table here which tells you what keys will do what, it's called a virtual key codes. http://msdn.microsoft.com/library/de...alKeyCodes.asp it's not great for printing off exactly what you want though, but it is a cool function.
__________________ I blag! | |
| twomers is offline | |
| | #15 |
| Registered User Join Date: Nov 2002
Posts: 249
| well the keycode 54 is ment to be t isnt it , so why dosent it press t i wasnt wanting it to type the digits 54 if thats what your thinking
__________________ |
| Anddos is offline | |
![]() |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to get C program to respond to another softwares commands | Euphorica | C Programming | 11 | 06-27-2008 03:39 PM |
| help with basic program | JOlszewski | C Programming | 3 | 02-01-2006 04:19 PM |
| Dikumud | maxorator | C++ Programming | 1 | 10-01-2005 06:39 AM |
| airport Log program using 3D linked List : problem reading from file | gemini_shooter | C Programming | 3 | 03-04-2005 02:46 PM |
| Code: An auto expanding array (or how to use gets() safely). | anonytmouse | Windows Programming | 0 | 08-10-2004 12:13 AM |