Solved

Minimizing window using tapiRequestMakeCall

Posted on 2004-10-13
8
298 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
 
LVL 48

Expert Comment

by:Mikal613
ID: 12307434
shouldnt maybe it wasnt loaded yet
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Mysql vs Oracle 10 120
DIR issue 7 47
Visual Basic Excel Formatting error 4 67
passing a value with stream reader AFTER a ";" 3 41
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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…

757 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now