1. Balasubramanian Natarajan
  2. PowerBuilder
  3. Thursday, 23 September 2021 13:29 PM UTC

Hi Team,

In my current project, we are using ZetaFax printer to print and fax the results, When the fax number is specified properly it is sending the fax properly.

If the fax number is not provided then ZetaFax - Fax Wizard window is opening automatically, until the user addressing this window we cannot able to proceed with other faxes.

So we want to get the recipient fax numbers from PB before calling Zetafax Printer, please suggest a solution.

 

Thanks in advance.

Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Thursday, 23 September 2021 14:30 PM UTC
  2. PowerBuilder
  3. # 1

Hi Balasubramanian;

  My suggestion would be to use the FindWindow API plus the PB Send() command to locate and send the open window a "Close" request. I would create a separate EXE for this and launch before interacting with the FAX printer. That way, yo would have an active thread that keeps processing looking for this pop-up dialogue.

FUNCTION    uLong            FindWindow ( ref String classname, ref string windowname ) Library "USER32.DLL" ALIAS FOR "FindWindowW"

Send:  https://docs.appeon.com/pb2021/powerscript_reference/ch02s04s696.html

HTH

Regards ... Chris

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.