Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
pscbot committed Dec 5, 2022
0 parents commit 3f238da
Show file tree
Hide file tree
Showing 10 changed files with 454 additions and 0 deletions.
86 changes: 86 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -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
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
*.scc
*.dca
*.oca
*.obj
vb*.tmp
@PSC*
43 changes: 43 additions & 0 deletions Autorespond.vbp
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions Autorespond.vbw
Original file line number Diff line number Diff line change
@@ -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
Binary file added PIC2002342254463125.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<div align="center">

## Msn Messenger Auto\-Responder

<img src="PIC2002342254463125.jpg">
</div>

### 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


<span> |<span>
--- |---
**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)








198 changes: 198 additions & 0 deletions autoresponder.frm
Original file line number Diff line number Diff line change
@@ -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

Binary file added autoresponder.frx
Binary file not shown.
Loading

0 comments on commit 3f238da

Please sign in to comment.