Académique Documents
Professionnel Documents
Culture Documents
FileExist=False
End If
End Function
x=Instr(asPath,”\”)
if x=0 then Exit Do
asPath=Right(asPath,Len(asPath)-x)
Loop
TrimPath=asPath
End Function
‘add 1 module
Declare Function CapFirst$ Lib “CAPFIRST.DLL” Alias “CAPFIRST” (ByVal St$)
Permutasi
Option Explicit
Dim id As Integer
Dim N As Integer
Dim perm() As Integer
Sub Form_Load()
On Error Resume Next
id = -1
End Sub
Sub stampaj()
Dim i As Integer
Dim result As String
result = “”
For i = 1 To N
result = result & CStr(Mid$(txtChar.Text, perm(i), 1))
Next i
List1.AddItem result
If ChSave.Value = 1 Then Print #1, result
End Sub
Enkripsi Searah
Enkripsi
Menu Pop Up
Option Explicit
‘If the position of the click is in the this list item
‘then that’s our Item
GetRClickedItem = l
Exit Function
End If
Next l
End Function
End Sub
Load Picture
Private Sub Command1_Click()
With Me.CommonDialog1
.DialogTitle = “Ambil Gambar”
.Filter = “JPEG|*.jpg”
.ShowOpen
Option Explicit
Find Something
Form
Option Explicit
Private Declare Function GetWindowText Lib “user32″ Alias “GetWindowTextA”
(ByVal hWnd As Long, ByVal lpString As String, ByVal cch As Long) As Long
nRet = AppActivatePartial(Trim(txtTitle.Text), _
Val(frmMethod.Tag), CBool(chkCase.Value))
If nRet Then
lblResults.Caption = “Found: &&H” & Hex$(nRet)
Title = Space$(256)
nRet = GetWindowText(nRet, Title, Len(Title))
If nRet Then
lblResults.Caption = lblResults.Caption & _
“, “”" & Left$(Title, nRet) & “”"”
End If
Else
lblResults.Caption = “Search Failed”
End If
End Sub
txtTitle.Text = “”
lblResults.Caption = “”
optMethod(0).Value = True
End Sub
frmMethod.Tag = Index
End Sub
Module
Option Explicit
If lParam Then
If IsWindowVisible(hWnd) = False Then
EnumWindowsProc = True
Exit Function
End If
End If
WindowText = Space$(256)
nRet = GetWindowText(hWnd, WindowText, Len(WindowText))
If nRet Then
WindowText = Left$(WindowText, nRet)
If m_CaseSens = False Then
WindowText = UCase$(WindowText)
End If
Select Case m_Method
Case FwpStartsWith
If InStr(WindowText, m_AppTitle) = 1 Then
m_hWnd = hWnd
End If
Case FwpContains
If InStr(WindowText, m_AppTitle) <> 0 Then
m_hWnd = hWnd
End If
Case FwpMatches
If WindowText = m_AppTitle Then
m_hWnd = hWnd
End If
End Select
End If
EnumWindowsProc = (m_hWnd = 0)
End Function
Search for:
Search
Calendar
December 2009
M T W T F S S
« Aug
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31
Tags
Archives
August 2008
July 2008
May 2008
April 2008
March 2008
February 2008
Recent Comments
Anonymous on Bermain Animasi Dengan VB
Anonymous on Permutasi
Anonymous on Enkripsi Searah
Anonymous on Animasi Bola
Anonymous on Permutasi
Create Blog
Login
Random Blog
Search Blog.c
Go!