|
-
Apr 10th, 2001, 11:27 AM
#1
Okay,
The logon box is in another application, which will be someday fully automated. It has 2 text boxes, username and password, and a couple button classes. Using sendmessage, I'm able to locate the first textbox and the first button. How do I tell it to move to the next textbox or button? I know i use ->
retval = findwindowex(hWnd, 0, "Edit", vbNullString)
That works great to find the first edit control, but I can't access the second one. Help??????????????
-
Apr 10th, 2001, 12:41 PM
#2
Add another line of the same code.
Code:
retval = findwindowex(hWnd, 0, "Edit", vbNullString) 'first box - user name
retval = findwindowex(hWnd, 0, "Edit", vbNullString) 'second box - password
-
Apr 10th, 2001, 12:44 PM
#3
-
Apr 10th, 2001, 01:01 PM
#4
Better Way
For any curious folks, I found a more efficient way to do this. Instead of:
RetVal = findwindowex(hWnd, 0, "Edit", vbnullstring)
use
RetVal = findwindowex(hWnd, prev, "Edit", vbnullstring)
where prev = the previous handle of a classmate. ex: another edit class window.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|