Click here to Skip to main content
16,008,954 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Execute string command? Pin
Dave Kreskowiak25-Nov-04 5:14
mveDave Kreskowiak25-Nov-04 5:14 
GeneralRe: Execute string command? Pin
Dennis C. Dietrich25-Nov-04 5:56
Dennis C. Dietrich25-Nov-04 5:56 
QuestionQuery Parser in VB? Pin
.NetRams24-Nov-04 0:49
.NetRams24-Nov-04 0:49 
AnswerRe: Query Parser in VB? Pin
Steven Campbell24-Nov-04 14:46
Steven Campbell24-Nov-04 14:46 
GeneralRe: Query Parser in VB? Pin
J4amieC25-Nov-04 4:12
J4amieC25-Nov-04 4:12 
GeneralRe: Query Parser in VB? Pin
Steven Campbell25-Nov-04 4:54
Steven Campbell25-Nov-04 4:54 
QuestionSystem-wide CBT Hook in .NET? Pin
Hadi Fakhreddine23-Nov-04 23:01
Hadi Fakhreddine23-Nov-04 23:01 
GeneralNetware Purge command Pin
Ranoush23-Nov-04 21:13
Ranoush23-Nov-04 21:13 
GeneralRe: Netware Purge command Pin
Dave Kreskowiak24-Nov-04 1:37
mveDave Kreskowiak24-Nov-04 1:37 
GeneralRe: Netware Purge command Pin
Ranoush26-Nov-04 19:53
Ranoush26-Nov-04 19:53 
GeneralRe: Netware Purge command Pin
Dave Kreskowiak27-Nov-04 1:37
mveDave Kreskowiak27-Nov-04 1:37 
QuestionSilent installation? Pin
charleslau285523-Nov-04 20:44
charleslau285523-Nov-04 20:44 
AnswerRe: Silent installation? Pin
Ranoush23-Nov-04 21:26
Ranoush23-Nov-04 21:26 
GeneralRe: Silent installation? Pin
Anonymous24-Nov-04 16:12
Anonymous24-Nov-04 16:12 
GeneralPrinting through Windows Service Pin
Aqeel Baig23-Nov-04 20:40
Aqeel Baig23-Nov-04 20:40 
GeneralRe: Printing through Windows Service Pin
Dave Kreskowiak24-Nov-04 1:35
mveDave Kreskowiak24-Nov-04 1:35 
GeneralClass Object Initialization Timing Issue from ActiveX Server (EXE Server) in VB Pin
Steve Pullan23-Nov-04 13:51
Steve Pullan23-Nov-04 13:51 
GeneralSending mouse click signals Pin
Rylogy23-Nov-04 12:24
Rylogy23-Nov-04 12:24 
GeneralRe: Sending mouse click signals Pin
Purple Monk23-Nov-04 22:24
Purple Monk23-Nov-04 22:24 
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 Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
Const BM_CLICK = &HF5

Dim x As Long, staticx As Long, MyStr As String, y As String, control As Long

x = FindWindow("#32770", vbNullString)

'x = FindWindow(vbNullString, "Project")
' get handle to Ok button
control = FindWindowEx(x, 0, "Button", "Ok")
' click the button
SendMessage control, BM_CLICK, 0, 0
SendMessage control, BM_CLICK, 0, 0

End Sub

That's how you click a button on a msgbox - in this case "ok". I imagine it will be reasonably similar but not sure about the holding it, you could try putting the SendMessage Control in a loop.. The #32770 is the msgbox class, to send a message to a different window use the commented out bit and put the name of the window you wish to send the message to in place of "Project"

Sound!!!!!!

Hope you can work with that

"If i was king cigarettes would be free."


Generalfill combo box with table items Pin
jlawren723-Nov-04 12:19
jlawren723-Nov-04 12:19 
GeneralRe: fill combo box with table items Pin
Pablo.ar24-Nov-04 2:56
Pablo.ar24-Nov-04 2:56 
GeneralRe: fill combo box with table items Pin
jlawren724-Nov-04 4:40
jlawren724-Nov-04 4:40 
GeneralRe: fill combo box with table items Pin
ccotton33324-Nov-04 6:51
ccotton33324-Nov-04 6:51 
Generalvb.net, textbox connected with database Pin
Member 149603823-Nov-04 8:32
Member 149603823-Nov-04 8:32 
GeneralRe: vb.net, textbox connected with database Pin
jlawren723-Nov-04 12:36
jlawren723-Nov-04 12:36 

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.