Click here to Skip to main content
16,011,120 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Multimedia Programming : Customized Media Player Pin
Christian Graus1-Sep-05 18:17
protectorChristian Graus1-Sep-05 18:17 
QuestionTreeView Set Node to Top Pin
Anonymous1-Sep-05 17:49
Anonymous1-Sep-05 17:49 
AnswerRe: TreeView Set Node to Top Pin
rushing1-Sep-05 17:50
rushing1-Sep-05 17:50 
AnswerRe: TreeView Set Node to Top Pin
quacks_a_lot3-Sep-05 18:00
quacks_a_lot3-Sep-05 18:00 
QuestionUnmovable Pin
kenexcelon1-Sep-05 14:50
kenexcelon1-Sep-05 14:50 
AnswerRe: Unmovable Pin
Christian Graus1-Sep-05 15:28
protectorChristian Graus1-Sep-05 15:28 
AnswerRe: Unmovable Pin
MohammadAmiry2-Sep-05 7:30
MohammadAmiry2-Sep-05 7:30 
QuestionIE window Pin
namespaceuser1-Sep-05 14:15
namespaceuser1-Sep-05 14:15 
hey, i'm trying to get the address from an IE window starting with "Hello There", but i ran into some problems. i'm using VB6. here's the code :

[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 Function GetDesktopWindow Lib "user32" () As Long
Private Declare Function GetWindow Lib "user32" (ByVal hwnd As Long, ByVal wCmd As Long) As Long
Private Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Private Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" (ByVal hWnd1 As Long, ByVal hWnd2 As Long, ByVal lpsz1 As String, ByVal lpsz2 As String) As Long
Private Sub Form_Load()
Dim hMain, hNext, winhandle As Long
Dim wintitle, address, tmp1 As String
Const GW_CHILD = 5
Const GW_HWNDNEXT = 2
hMain = GetDesktopWindow()
hNext = GetWindow(hMain, GW_CHILD)
While hNext <> 0
hNext = GetWindow(hNext, GW_HWNDNEXT)
If IsWindowVisible(hNext) <> 0 Then
If Len(wintitle) > 0 Then
If wintitle <> "Program Manager" Then
If Left(wintitle, 11) = "Hello There" Then
winhandle = FindWindow("IEFrame", wintitle)
winhandle = FindWindowEx(winhandle, 0, "WorkerW", 0)
winhandle = FindWindowEx(winhandle, 0, "ReBarWindow32", 0)
winhandle = FindWindowEx(winhandle, 0, "ComboBoxEx32", 0)
tmp1 = SendMessage(winhandle, WM_GETTEXT, 24, address)
End If
End If
End If
End If
Wend
End Sub
[/code]

the first hNext returns a handle, but the first line after while doesn't.
can anyone correct the above code?
AnswerRe: IE window Pin
Dave Kreskowiak2-Sep-05 3:29
mveDave Kreskowiak2-Sep-05 3:29 
GeneralRe: IE window Pin
namespaceuser2-Sep-05 4:12
namespaceuser2-Sep-05 4:12 
GeneralRe: IE window Pin
Dave Kreskowiak2-Sep-05 5:17
mveDave Kreskowiak2-Sep-05 5:17 
Questionvb.net Pin
Member 22429281-Sep-05 12:18
Member 22429281-Sep-05 12:18 
AnswerRe: vb.net Pin
Christian Graus1-Sep-05 12:38
protectorChristian Graus1-Sep-05 12:38 
AnswerRe: vb.net Pin
RichardBerry5-Sep-05 3:54
RichardBerry5-Sep-05 3:54 
QuestionDataSets....... Pin
daviiie1-Sep-05 7:36
daviiie1-Sep-05 7:36 
AnswerRe: DataSets....... Pin
Dave Kreskowiak1-Sep-05 9:45
mveDave Kreskowiak1-Sep-05 9:45 
AnswerRe: DataSets....... Pin
Dean_SF2-Sep-05 6:56
Dean_SF2-Sep-05 6:56 
QuestionAPI NetShareEnum VB.NET Pin
SHLK74741-Sep-05 7:17
SHLK74741-Sep-05 7:17 
AnswerRe: API NetShareEnum VB.NET Pin
taenkarth1-Sep-05 11:11
taenkarth1-Sep-05 11:11 
GeneralRe: API NetShareEnum VB.NET Pin
SHLK74741-Sep-05 21:58
SHLK74741-Sep-05 21:58 
GeneralRe: API NetShareEnum VB.NET Pin
Dave Kreskowiak2-Sep-05 3:15
mveDave Kreskowiak2-Sep-05 3:15 
QuestionList all label controls in property window at design time Pin
Gulfraz Khan1-Sep-05 6:28
Gulfraz Khan1-Sep-05 6:28 
AnswerRe: List all label controls in property window at design time Pin
rudy.net2-Sep-05 18:20
rudy.net2-Sep-05 18:20 
GeneralRe: List all label controls in property window at design time Pin
Gulfraz Khan5-Sep-05 6:09
Gulfraz Khan5-Sep-05 6:09 
QuestionEvent - After form is displayed for first time Pin
dptalt1-Sep-05 4:48
dptalt1-Sep-05 4:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.