Below is what I use to click a button in a windows application.  It cycles 
through all of the buttons in the app instead of just the current visible ones. 
 Does anyone know if there is a way to get it to only look to the visible 
buttons?

ClickFunction ("OK")

Function ClickFunction(strClick)
    Dim L As New CListWindows
    For Each h In L.InProcess(R.hWnd)
        If View(h) = strClick Then
            Click (h)
        End If
    Next h
End Function

Thanks,
Drew Glaser
Data Programmer Analyst
CareTech Solutions /
Blanchard Valley Health System
Office: (419) 429-7614
[cid:[email protected]]<http://www.caretech.com/>
Helping extraordinary people do extraordinary things

Best in KLAS
Extensive IT Outsourcing
2008, 2009 & 2010
Top 20 Best in KLAS Awards
www.KLASresearch.com<http://www.klasresearch.com/>

[cid:[email protected]]




---  To post a message to this list, send mail to: [email protected]    You are 
currently subscribed as: [email protected]    Unsubscribe in the 
customer center on our website: 
http://www.bostonsoftwaresystems.com/Customers/ListServe.aspx

<<inline: image001.gif>>

<<inline: image002.gif>>

Reply via email to