Click to See Complete Forum and Search --> : Hey, i'.....
Zambi
Feb 11th, 2001, 03:32 PM
Hey i'm working on a program in vb that is suppose to enter you're password at the login window for aol and press the sign on button for u automatically when u press a command button, but i don't know the code for doing this. I know that the findwindow and sendkey fuctions have something to do with it, but thatz all i know. If anyone knows how to do this, can they please tell me. Im desperate
Since I do not have AOL, I can not provide any code, but I can tell you how to do it.
Use FindWindowEx, to get the handle of the name and password box for AOL, then use SendMessage to send the WM_SETTEXT message and change the Text respectivly. Now use FindwindowEx to get the handle of the "OK" button, and send the BM_CLICK message to click it.
Thanx man. i'll try it right now
hey, if anyone does have aol, and they now how to do this, i would be obliged if they could provide me with the code.
hey, i rtied to do what u said, but i can't seem to do. If u can, can u please try to tell me a more decriptive way of doing it?
Lord Orwell
Feb 16th, 2001, 03:31 AM
That probably won't work due to the masked textbox property. I'm not gonna ask why you just don't save the password. If you want to auto-log on for some reason, you can bypass this screen altogether
aol has the following command line switches, which they like to keep hidden: -nScreenName
-pPassword (or was it /n and /p? try both ways)
anyway, it has to be one of the screen names on your list.
If you save your password in aol, you don't need to provide the password. Then you can set aol as your default internet connection, and aol will log on automatically, etc. like any regular dial-up connection.
Lord Orwell:
I just saw your tag... I'm sorry, but in my opinion Assembly is (almost) the same as Machine code (Machine code is actually assembled Assembly or Compiled Basic or Built C++ or Compiled Java and so on...)... Duh...
So, can you code Assembly? Let's see some... I dare you...;)
Lord Orwell
Feb 17th, 2001, 12:46 AM
15B2:0100 BA0901 MOV DX,0109 'location of string to show.
15B2:0103 B409 MOV AH,09
15B2:0105 CD21 INT 21 'calls interrupt 21, function 9.
15B2:0107 CD20 INT 20 'exits to dos
0109 a string terminated with a $(example: Lord Orwell rulez$)
open debug, and (if you can figure out how) enter this program.
The difference between source and assembly is that assembly is much easier. You get to assign variables, etc. Source doesn't have variables. You store values in memory locations. And most paininthebuttently, if you have to add something, you usually end up moving everything else to make room for it. Also Assemblers give you that nasty dos 2.0 header that is bigger than some programs i have written.
run your program you made with: g 0100. Enter strings like this:
a 0109
0109: db 'Lord Orwell Rules$'
save it to disk in .com format, and it will run when you load it.
I don't program in assembly any more. Dos is dying.
Now that i proved i know dos source/assembly, i will flub you with this:
c000: cd 20 d0
c003: 4c 00 c0
in assembly, on a COMMODORE 64!, this is:
c000: dec d020
c003: jmp c000
d020 is 53280 (unhexed), which refers to the background color of the screen.
This little program will lock up the computer and make the background flash
extremely fast. I haven't owned a c-64 in over 10 years, but still remember...
Oh well, they say that Bill Gates has over 100 lines of assembly code to
basic 1.0 memorized still...
Lord Orwell: A masked edit control is invisible to the user but not to a program.
Zambi: Post your code up, maybe it's incorrect syntax. Logically, the method I provided should work...
Lord Orwell
Feb 17th, 2001, 08:40 PM
so if i used a getwindowtext api call to a masked edit box, it would return the contents of the box and not the ******? Hmm. Thanks for the info.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.