Solved

Minimizing window using tapiRequestMakeCall

Posted on 2004-10-13
8
302 Views
Last Modified: 2012-05-05
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
Comment
Question by:awiora
  • 4
  • 3
8 Comments
 
LVL 1

Expert Comment

by:VBtorment
ID: 12303579
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
 
LVL 48

Expert Comment

by:Mikal613
ID: 12304330
0
 

Author Comment

by:awiora
ID: 12307392
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
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 
LVL 48

Expert Comment

by:Mikal613
ID: 12307434
shouldnt maybe it wasnt loaded yet
0
 

Author Comment

by:awiora
ID: 12307443
How do I make sure it's loaded?
0
 
LVL 48

Accepted Solution

by:
Mikal613 earned 500 total points
ID: 12307525
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
 

Author Comment

by:awiora
ID: 12307538
Mikal613,
You're "Da Bomb".  That did it.  

Thank you.

JG
0
 
LVL 48

Expert Comment

by:Mikal613
ID: 12308936
no prob
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question