Solved

Minimizing window using tapiRequestMakeCall

Posted on 2004-10-13
8
311 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

 
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
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…

739 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