welcome to my blog, enjoy it, share it !

Senin, 28 Februari 2011

membuat suara pada virus

On Error Resume Next

Dim Speech
Dim FSO
CreateObjects
Main
DestroyObjects
Quit

Dim objNetwork
Sub Main
Set objNetwork = CreateObject("WScript.Network")
SpeakText "This time for shutdown "+ objNetwork.UserName
End Sub

Sub SpeakText(sText)
On Error Resume Next
Speech.Speak sText, SVSFlagsAsync + SVSFPurgeBeforeSpeak
Do
Sleep 100
Loop Until Speech.WaitUntilDone(10)
End Sub

Sub StopSpeaking()
On Error Resume Next
Speech.Speak vbNullString, SVSFPurgeBeforeSpeak
Set Speech = Nothing
End Sub

Sub CreateObjects
Set Speech = CreateObject("SAPI.SpVoice")
Set FSO = CreateObject("Scripting.FileSystemObject")
End Sub

Sub DestroyObjects
Set Speech = Nothing
Set FSO = Nothing
End Sub

Sub Sleep(nTimeout)
WScript.Sleep nTimeout
End Sub

Sub Quit
WScript.Quit
End Sub



#bisa digabung dengan sample vbs lainnya. selamat berekpresi :D

Jumat, 18 Februari 2011

[programming] document healer from VB

terkadang file dokumen (excel, word, powerpoint dll) yang terinfeksi virus akan berubah format menjadi .exe . nah saya iseng2 ngoding buat balikin file dokumen kedalam format asli nya. berikut hasil kodingan nya :p






selanjutnya tambahkan usercontrol unidialog pada tools (cek disini). lalu buat lah desaign tools sesuai keinginan.

 
Free Website templatesFree Flash TemplatesRiad In FezFree joomla templatesSEO Web Design AgencyMusic Videos OnlineFree Wordpress Themes Templatesfreethemes4all.comFree Blog TemplatesLast NewsFree CMS TemplatesFree CSS TemplatesSoccer Videos OnlineFree Wordpress ThemesFree Web Templates