Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 333
  • Last Modified:

Minimizing window using tapiRequestMakeCall

Hello,
I've exhausted my search for this specific topic without any successful results.  I'm using the tapiRequestMakeCall function to dial a phone number.  I automatically get 2 pop ups.  My main objective is to minimize/hide them.  
I've tried using the SendKeys "{TAB}H", but nothing happens.

Any recommendations will be greatly appreciated.

Thank You,

JG
0
awiora
Asked:
awiora
  • 4
  • 3
1 Solution
 
VBtormentCommented:
hai,

if you have the windowhandle you can try sendmessage with the minimize constant
if you don't have the windowhandle you can fetch it with the FindWindow api and then use sendmessage
0
 
awioraAuthor Commented:
Mikal613,
Excellent source, however, my problem isn't solved.  I added this part of the code, to automatically start the phone dialer.

Dim J
J = tapiRequestMakeCall("212-9513", App.Title, "", "")

Then, using your code I wanted to see the window text for each window.

    ' Get the first window.
      app_hwnd = GetWindow(GetDesktopWindow(), GW_CHILD)

    ' Examine the windows.
    Do While app_hwnd <> 0&
    Debug.Print Trim(WindowText(app_hwnd))

The debug.print statement above lists all the windowtext for all windows.  I can't spot anything with Phone or dialer anywhere.  

Does using tapiRequestMakeCall create a problem?
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
Mikal613Commented:
shouldnt maybe it wasnt loaded yet
0
 
awioraAuthor Commented:
How do I make sure it's loaded?
0
 
Mikal613Commented:
perhaps you can loop till you spot the Phone dialer instead of app_hwnd <> 0&

in the loop add
if app_hwnd = 0& then do it again

0
 
awioraAuthor Commented:
Mikal613,
You're "Da Bomb".  That did it.  

Thank you.

JG
0
 
Mikal613Commented:
no prob
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now