by Rob Beavers (1 Submission)
Category: Internet/HTML
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Mon 10th March 2003
Date Added: Mon 8th February 2021
Rating: (1 Votes)
This will log you into Yahoo Messenger
API Declarations
'the first text box is where you put in your login name
'the second one you put in your password
'when you click the button it opens yahoo messenger and logs you in
Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
'you might have to change this if its not where your yahoo messenger is located
Shell ("C:\program files\yahoo!\messenger\ypager.exe")
'you can lower the sleep time so you dont have to wait as long but if you dont put it high enough it will type in your ID and password before yahoo messenger opens
Sleep "5000"
'you can put the four sendkeys into one but i seperated them so its easier to read
SendKeys (Text1.Text)
SendKeys ("{tab}")
SendKeys (Text2.Text)
SendKeys ("{Enter}")
End Sub