



Johnny5 wrote:hi autopilot, thx for fast reply, i'm able to get the window popup, however using API SPY to find the window is not work, is the another way to find that window? b/c I have to find the window handle to insert text into the filepath textbox. Thanks for your help.
Declare Auto Function FindWindow Lib "user32.dll" Alias "FindWindow" (ByVal lpClassName As String, ByVal lpWindowName As String) As Integer
Declare Auto Function FindWindowNullClassName Lib "user32.dll" Alias "FindWindow" (ByVal lpClassName As Integer, ByVal lpWindowName As String) As Integer
Declare Auto Function FindWindowNullWindowCaption Lib "user32.dll" Alias "FindWindow" (ByVal lpClassName As String, ByVal lpWindowName As Integer) As Integer




iHnd = getPalSubForm("#32770", "Open", "Edit", 1) 'find textbox to place file name
iResult = SendMessageByString(iHnd, WM_SETTEXT, 0, Text2.Text) 'send file name to textbox



Return to Visual Basic Programming
Users browsing this forum: No registered users and 0 guests