So did you put in the DoWhile Loop, to wait for the process?
That's not usually how you would use the FindWindow API, because it implies that there may be multiple passes through the loop, perhaps many on a slow OS. If there were more than one pass, then there's some kind of problem, and this thread will tie up alot of other things, while it loops.
I just dont get why, since it's unneeded anyway.
Same thing right?Code:hwnd = FindWindow("Notepad", "Untitled - Notepad")




Reply With Quote