Hail,
What I need to do is the following:
When a user clicks a button, an excel sheet is sent through a fax driver in order to fax the info to the proper person. Everything works fine but the user has to manually enter the fax number in a dialog type window (issued from fax driver). Through some rough code, I manage to automate the task by looking for the window with FindWindow API and SendMessage for the faxnumber and so forth. My problem is I put FindWindow in a timer control (sort of a loop process) that looks for the window and once that it finds it, triggers appropriate code. Sometimes it works, other times it doesn't. Oh yeah and the timer only starts once the project is in EXE mode. When I debug with F8, I cannot go further in the code with F8 until the dialog box is closed. I have a feeling the answer is real simple, but I'm stomped.
Phailak
What I need to do is the following:
When a user clicks a button, an excel sheet is sent through a fax driver in order to fax the info to the proper person. Everything works fine but the user has to manually enter the fax number in a dialog type window (issued from fax driver). Through some rough code, I manage to automate the task by looking for the window with FindWindow API and SendMessage for the faxnumber and so forth. My problem is I put FindWindow in a timer control (sort of a loop process) that looks for the window and once that it finds it, triggers appropriate code. Sometimes it works, other times it doesn't. Oh yeah and the timer only starts once the project is in EXE mode. When I debug with F8, I cannot go further in the code with F8 until the dialog box is closed. I have a feeling the answer is real simple, but I'm stomped.
Phailak