diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..2821de5 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,86 @@ +# VB6 source files (show diff + keep CRLF in zip download) + +*.bas working-tree-encoding=CP1252 text eol=crlf linguist-language=vb6 +*.cls working-tree-encoding=CP1252 text eol=crlf linguist-language=vb6 +*.ctl working-tree-encoding=CP1252 text eol=crlf linguist-language=vb6 +*.dob working-tree-encoding=CP1252 text eol=crlf linguist-language=vb6 +*.dsr working-tree-encoding=CP1252 text eol=crlf linguist-language=vb6 +*.frm working-tree-encoding=CP1252 text eol=crlf linguist-language=vb6 +*.pag working-tree-encoding=CP1252 text eol=crlf linguist-language=vb6 +*.vbg working-tree-encoding=CP1252 text eol=crlf +*.vbl working-tree-encoding=CP1252 text eol=crlf +*.vbp working-tree-encoding=CP1252 text eol=crlf +*.vbr working-tree-encoding=CP1252 text eol=crlf +*.vbw working-tree-encoding=CP1252 text eol=crlf + +# Other source files (show diff + LF only in zip download) + +*.asm text +*.asp text +*.bat text +*.c text +*.cpp text +*.dsp text +*.dsw text +*.h text +*.idl text +*.java text +*.js text +*.manifest text +*.odl text +*.php text +*.php3 text +*.rc text +*.sln text +*.sql text +*.vb text +*.vbs text + +# Binary + +*.res binary +*.frx binary +*.ctx binary +*.dsx binary +*.exe binary +*.dll binary +*.ocx binary +*.cmp binary +*.pdb binary +*.tlb binary +*.xls binary +*.doc binary +*.ppt binary +*.xlsx binary +*.docx binary +*.pptx binary +*.chm binary +*.hlp binary +*.jpg binary +*.png binary +*.bmp binary +*.gif binary +*.ico binary +*.zip binary +*.cab binary +*.7z binary +*.gz binary + +# Text files but keep as binary (no diff) + +# *.cfg text +# *.conf text +# *.csi text +# *.css text +# *.csv text +# *.def text +# *.htm text +# *.html text +# *.inf text +# *.ini text +# *.log text +# *.reg text +# *.rtf text +# *.txt text +# *.url text +# *.xml text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8ad71de --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +*.scc +*.dca +*.oca +*.obj +vb*.tmp +@PSC* diff --git a/Autorespond.vbp b/Autorespond.vbp new file mode 100644 index 0000000..fa17426 --- /dev/null +++ b/Autorespond.vbp @@ -0,0 +1,43 @@ +Type=Exe +Reference=*\G{00020430-0000-0000-C000-000000000046}#2.0#0#..\..\..\WINDOWS\SYSTEM\stdole2.tlb#OLE Automation +Reference=*\G{218CB45F-20B6-11D2-8E17-0000F803A446}#1.0#0#..\..\Messenger\msmsgs.exe#Messenger Type Library +Reference=*\G{E02AD29E-80F5-46C6-B416-9B3EBDDF057E}#1.0#0#..\..\Messenger\msmsgs.exe\3#Messenger API Type Library +Reference=*\G{3201590C-8C63-4558-8142-82C29FC695E9}#1.0#0#..\..\Messenger\msmsgs.exe\4#Messenger AddIns Type Library +Reference=*\G{53CED51D-432B-45B2-A3E0-0CE2C24235D4}#1.0#0#..\..\Messenger\msmsgs.exe\2#Messenger Private Type Library +Form=autoresponder.frm +Form=frmstop.frm +Object={F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0; COMDLG32.OCX +Object={831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0; MSCOMCTL.OCX +IconForm="frmstop" +Startup="frmRespond" +HelpFile="" +Title="Doggies Autoresponder" +ExeName32="Autorespond.exe" +Path32="..\..\..\WINDOWS\Desktop" +Command32="" +Name="Project1" +HelpContextID="0" +CompatibleMode="0" +MajorVer=1 +MinorVer=0 +RevisionVer=0 +AutoIncrementVer=0 +ServerSupportFiles=0 +VersionComments="Auto-Respond - Will respond automatically when this program is ran." +VersionCompanyName="Doggie" +VersionFileDescription="autorespond.exe" +CompilationType=0 +OptimizationType=0 +FavorPentiumPro(tm)=0 +CodeViewDebugInfo=0 +NoAliasing=0 +BoundsCheck=0 +OverflowCheck=0 +FlPointCheck=0 +FDIVCheck=0 +UnroundedFP=0 +StartMode=0 +Unattended=0 +Retained=0 +ThreadPerObject=0 +MaxNumberOfThreads=1 diff --git a/Autorespond.vbw b/Autorespond.vbw new file mode 100644 index 0000000..7b58d4d --- /dev/null +++ b/Autorespond.vbw @@ -0,0 +1,2 @@ +frmRespond = 66, 66, 430, 406, C, 44, 44, 408, 384, C +frmstop = 44, 44, 409, 384, C, 22, 22, 387, 362, C diff --git a/PIC2002342254463125.jpg b/PIC2002342254463125.jpg new file mode 100644 index 0000000..a9aaaf1 Binary files /dev/null and b/PIC2002342254463125.jpg differ diff --git a/README.md b/README.md new file mode 100644 index 0000000..7230c35 --- /dev/null +++ b/README.md @@ -0,0 +1,34 @@ +
+ +## Msn Messenger Auto\-Responder + + +
+ +### Description + +The code allows you to set a automated message while ur busy or away using Msn Messenger and its fully customized for what u want it to say + +### More Info + +Before using you need to be logged into Msn Messenger of course + + + | +--- |--- +**Submitted On** |2002-03-05 14:39:34 +**By** |[Adrian Doherty](https://github.com/Planet-Source-Code/PSCIndex/blob/master/ByAuthor/adrian-doherty.md) +**Level** |Intermediate +**User Rating** |5.0 (15 globes from 3 users) +**Compatibility** |VB 6\.0 +**Category** |[Internet/ HTML](https://github.com/Planet-Source-Code/PSCIndex/blob/master/ByCategory/internet-html__1-34.md) +**World** |[Visual Basic](https://github.com/Planet-Source-Code/PSCIndex/blob/master/ByWorld/visual-basic.md) +**Archive File** |[Msn\_Messen59366342002\.zip](https://github.com/Planet-Source-Code/adrian-doherty-msn-messenger-auto-responder__1-32353/archive/master.zip) + + + + + + + + diff --git a/autoresponder.frm b/autoresponder.frm new file mode 100644 index 0000000..bb1eb9c --- /dev/null +++ b/autoresponder.frm @@ -0,0 +1,198 @@ +VERSION 5.00 +Begin VB.Form frmRespond + BackColor = &H00E0E0E0& + BorderStyle = 0 'None + Caption = "Responder" + ClientHeight = 1455 + ClientLeft = 2730 + ClientTop = 3900 + ClientWidth = 6030 + ClipControls = 0 'False + ControlBox = 0 'False + Icon = "autoresponder.frx":0000 + LinkTopic = "Form1" + ScaleHeight = 1455 + ScaleWidth = 6030 + StartUpPosition = 2 'CenterScreen + Begin VB.CheckBox Check1 + Appearance = 0 'Flat + BackColor = &H00E0E0E0& + Caption = "Enable" + ForeColor = &H80000008& + Height = 315 + Left = 120 + TabIndex = 5 + Top = 1080 + Width = 5775 + End + Begin VB.TextBox Text1 + Appearance = 0 'Flat + BackColor = &H00FFFFFF& + BeginProperty Font + Name = "Tahoma" + Size = 8.25 + Charset = 0 + Weight = 400 + Underline = 0 'False + Italic = 0 'False + Strikethrough = 0 'False + EndProperty + Height = 405 + Left = 120 + TabIndex = 0 + Text = "I'm not here at the moment. So please leave a message." + Top = 600 + Width = 5775 + End + Begin VB.Label Label2 + BackStyle = 0 'Transparent + Caption = "-" + BeginProperty Font + Name = "Tahoma" + Size = 8.25 + Charset = 0 + Weight = 700 + Underline = 0 'False + Italic = 0 'False + Strikethrough = 0 'False + EndProperty + ForeColor = &H00FFFFFF& + Height = 255 + Left = 5520 + TabIndex = 4 + Top = 0 + Width = 135 + End + Begin VB.Label Label1 + BackStyle = 0 'Transparent + Caption = "X" + BeginProperty Font + Name = "Tahoma" + Size = 8.25 + Charset = 0 + Weight = 700 + Underline = 0 'False + Italic = 0 'False + Strikethrough = 0 'False + EndProperty + ForeColor = &H00FFFFFF& + Height = 255 + Left = 5760 + TabIndex = 3 + Top = 0 + Width = 135 + End + Begin VB.Shape Shape1 + Height = 1455 + Left = 0 + Top = 0 + Width = 6015 + End + Begin VB.Label lblInfo + BackStyle = 0 'Transparent + Caption = "Type in what you want as your automated message." + BeginProperty Font + Name = "Tahoma" + Size = 8.25 + Charset = 0 + Weight = 400 + Underline = 0 'False + Italic = 0 'False + Strikethrough = 0 'False + EndProperty + ForeColor = &H00000000& + Height = 255 + Left = 120 + TabIndex = 2 + Top = 360 + Width = 3975 + End + Begin VB.Label lblTitleBar + Appearance = 0 'Flat + BackColor = &H00FF0000& + BorderStyle = 1 'Fixed Single + Caption = " Doggie's Auto-Responder" + BeginProperty Font + Name = "Tahoma" + Size = 8.25 + Charset = 0 + Weight = 700 + Underline = 0 'False + Italic = 0 'False + Strikethrough = 0 'False + EndProperty + ForeColor = &H00FFFFFF& + Height = 255 + Left = 0 + TabIndex = 1 + Top = 0 + Width = 6015 + End +End +Attribute VB_Name = "frmRespond" +Attribute VB_GlobalNameSpace = False +Attribute VB_Creatable = False +Attribute VB_PredeclaredId = True +Attribute VB_Exposed = False +' Autoresponder code - By Doggie +' Freely use this code +Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long +Private Declare Sub ReleaseCapture Lib "user32" () +Const WM_NCLBUTTONDOWN = &HA1 +Const HTCAPTION = 2 ' these are to make the form move +Dim WithEvents respond As MsgrObject +Attribute respond.VB_VarHelpID = -1 +Dim MsnApp As IMessengerApp + +Private Sub Form_Load() +Set respond = New MsgrObject 'declaring the messenger object + Set MsnApp = CreateObject("messenger.messengerapp") 'declaring the messenger object +End Sub + +Private Sub Form_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single) +Dim lngReturnValue As Long 'for the form to move by dragging + If Button = 1 Then + Call ReleaseCapture + lngReturnValue = SendMessage(Me.hwnd, WM_NCLBUTTONDOWN, HTCAPTION, 0&) + End If +End Sub + +Private Sub Form_Unload(Cancel As Integer) +Set respond = Nothing ' after use it will delete the declared method +End Sub + +Private Sub Label1_Click() +Unload Me ' unload the form +End Sub + +Private Sub Label2_Click() +Me.WindowState = vbMinimized 'minimize to taskbar +End Sub + +Private Sub lblInfo_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single) +Dim lngReturnValue As Long + If Button = 1 Then + Call ReleaseCapture + lngReturnValue = SendMessage(Me.hwnd, WM_NCLBUTTONDOWN, HTCAPTION, 0&) + End If +End Sub + +Private Sub lblTitleBar_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single) +Dim lngReturnValue As Long + If Button = 1 Then + Call ReleaseCapture + lngReturnValue = SendMessage(Me.hwnd, WM_NCLBUTTONDOWN, HTCAPTION, 0&) + End If +End Sub + +Private Sub respond_OnLogoff() +frmstop.Show ' detects if u log off and will shutdown the program +End Sub + +Private Sub respond_OnTextReceived(ByVal pIMSession As Messenger.IMsgrIMSession, ByVal pSourceUser As Messenger.IMsgrUser, ByVal bstrMsgHeader As String, ByVal bstrMsgText As String, pfEnableDefault As Boolean) +If Check1.Value = 1 Then +MsnApp.LaunchIMUI pSourceUser ' launches a im window to the person that trying to contact u +MsnApp.IMWindows.Item(0).SendText ("Auto Away Message: ") & (Text1.Text) 'away message details +End If +End Sub + diff --git a/autoresponder.frx b/autoresponder.frx new file mode 100644 index 0000000..98e5262 Binary files /dev/null and b/autoresponder.frx differ diff --git a/frmstop.frm b/frmstop.frm new file mode 100644 index 0000000..1e23553 --- /dev/null +++ b/frmstop.frm @@ -0,0 +1,85 @@ +VERSION 5.00 +Begin VB.Form frmstop + AutoRedraw = -1 'True + BackColor = &H00E0E0E0& + BorderStyle = 0 'None + Caption = "Responder" + ClientHeight = 2055 + ClientLeft = 0 + ClientTop = 0 + ClientWidth = 3135 + LinkTopic = "Form2" + ScaleHeight = 2055 + ScaleWidth = 3135 + ShowInTaskbar = 0 'False + StartUpPosition = 2 'CenterScreen + Begin VB.Timer Timer1 + Enabled = 0 'False + Left = 1680 + Top = 600 + End + Begin VB.Shape Shape1 + Height = 2055 + Left = 0 + Top = 0 + Width = 3135 + End + Begin VB.Label Label2 + Alignment = 2 'Center + Appearance = 0 'Flat + BackColor = &H00FF0000& + BorderStyle = 1 'Fixed Single + Caption = "You Are Not Logged On" + BeginProperty Font + Name = "Tahoma" + Size = 8.25 + Charset = 0 + Weight = 700 + Underline = 0 'False + Italic = 0 'False + Strikethrough = 0 'False + EndProperty + ForeColor = &H00FFFFFF& + Height = 255 + Left = 0 + TabIndex = 1 + Top = 0 + Width = 3135 + End + Begin VB.Label Label1 + BackStyle = 0 'Transparent + Caption = $"frmstop.frx":0000 + BeginProperty Font + Name = "Tahoma" + Size = 8.25 + Charset = 0 + Weight = 400 + Underline = 0 'False + Italic = 0 'False + Strikethrough = 0 'False + EndProperty + Height = 1575 + Left = 120 + TabIndex = 0 + Top = 360 + Width = 2895 + End +End +Attribute VB_Name = "frmstop" +Attribute VB_GlobalNameSpace = False +Attribute VB_Creatable = False +Attribute VB_PredeclaredId = True +Attribute VB_Exposed = False + +Private Sub Form_Load() +Timer1.Interval = 9000 +Timer1.Enabled = True +End Sub + +Private Sub Label4_Click() +End +End Sub + +Private Sub Timer1_Timer() +End +End Sub diff --git a/frmstop.frx b/frmstop.frx new file mode 100644 index 0000000..0704f5f Binary files /dev/null and b/frmstop.frx differ