The dialog box contains only one textbox, so it should be it right?
Printable View
The dialog box contains only one textbox, so it should be it right?
You could always compare the return value you get from FindWindowEx with what is shown in the Window Finder Tool.
You mean comparing the handle values? Converting the hexadecimal handling value found by your program to an integer, and then comparing with the integer in the program? But are those handles constant, or do they change very often?
They could change each time the dialog is displayed but you could just comment out the line that closes the dialog so that it stays on the screen. Just do a Debug.Print with the handle (you can use the Hex function to print it in hexadecimal form for easier comparison).
Ok great...I'll try it out. But what if it's the correct handle? Any ideas on what might be wrong?
If you have the correct handle and are using SendMessage the correct way it should work. I have no idea why it doesn't for you. What are the return value from the SendMessage call?
Well when I tried it out today, I got 0...I'll try tomorrow again (it's at my job) and update this thread with what I got (also I'll check if I have the right handle). Hopefully u'll be here tomorrow too :)
Thx a lot by the way!
0 means the SendMessage call failed.
Yeah...which could be that the handle for the textbox (which it's trying to send text too) is wrong? I used the "ByVal" statement as you wrote earlier also...well, I'll come back with more info tomorrow :)
I'm back :) I checked the handle, and it's the same handle as the WindowFinder tool gives me. And also it seems to work now! Guys, thx a lot for the help!