• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 362
  • 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
Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

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