|
-
Jan 19th, 2013, 11:11 AM
#7
Thread Starter
Lively Member
Re: Help with FindWindow & SendMessage for username & pw text boxes
 Originally Posted by Bonnie West
You probably need to familiarize yourself first with the concepts of Arrays and UDTs. However, if you're in a hurry, then you just need to replace all instances of strItems(p, 0) with strItems(p).hWnd and strItems(p, 1) with strItems(p).Top. BTW, the strItems array name doesn't quite describe what that array really is. Perhaps, udtTxtBoxes might be more meaningful?
I just realized that there are 3 textboxes on the login dialogue box. The very first textbox is disabled, and I didn't think that it would go into our equation. But I just realized that VB doesn't care if that textbox is disabled or not, it will still find it.
So that must be why it was erroring out in the array, because we need one that will support 3 values instead of 2 right? Is there an easy way to tell it to disregard the disabled text box? Or is there any easy way to modify the code to only pass the login info to the bottom two text boxes?
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
|