Solved

appactivate("XXXX - netscape")

Posted on 1999-01-21
3
245 Views
Last Modified: 2010-05-03
how can i activate my netscape window with appactivate
when I don't know the window titel (XXXX).
The only thing to be sure is that it contains
"netscape".
0
Comment
Question by:qwertzuiop
  • 2
3 Comments
 
LVL 1

Accepted Solution

by:
rondeauj earned 20 total points
Comment Utility
you could could use any of the following API's:

findwindow()
getwindow()
windowfrompoint()

then use getwindowtext and instr()
0
 

Author Comment

by:qwertzuiop
Comment Utility
Can you give an working example to find the window:
     XXXX - Netscape

0
 
LVL 1

Expert Comment

by:rondeauj
Comment Utility
do you know the window class?  if not let me know and I will email you program that will tell you.  The class is something that will never change. So you can find the window according to it's class.  lets say the class is "net_scape" then you would find it like this:

dim netlong as long

netlong = findwindow("NET_SCAPE",vbnullstring )

if netlong <> 0 then
     dim tempstring as string
     tempstring = getwindowtext(netlong)
     dim test as intger
     test = instr(ucase$(tempstring),"NETSCAPE")
     if test <> 0 then 'we found the window
         showwindow netlong ,vbhide
     end if
end if

there are other ways to do this but you will need a program like spy which will tell you what the windows class is and who the parent window is. This information will help you find the window during run time.  Let me know if you need more help
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now