Solved

How To Kill A Program Window?

Posted on 1998-08-29
9
230 Views
Last Modified: 2010-04-30
Hi all,

I found a command, "KillWin" in some short pgm code which was supposed to kill or disable the download window in AOL, allowing one to do other work during a download.  However, I tried it in VB5 and the object/method doesn't work.  Any suggestions on how to do this?
0
Comment
Question by:KIRK50
[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
9 Comments
 
LVL 2

Expert Comment

by:polygon
ID: 1431796
give more info - do you want to stop the execution of this window, to pause it or just to hide it for some time
0
 

Author Comment

by:KIRK50
ID: 1431797
Polygon,

I'd like to hide it to allow me to do other work during a long upload or download.  I can CANCEL using the button on the AOL box, but code for HIDING (and PAUSING, for that matter) would be very helpful.  Thanks again!

-- Kirk

0
 

Expert Comment

by:topol
ID: 1431798
Use SendMessage(hwnd, WM_HIDE,0,0), where hwnd is the handle of the window you need to hide.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 2

Expert Comment

by:WDB
ID: 1431799
You can also use ShowWindow app_hWnd, 0 to hide the window
0
 
LVL 10

Accepted Solution

by:
viktornet earned 20 total points
ID: 1431800
How about this.....

to get the windows use....

FindWindow(Class, Caption)
0
 

Author Comment

by:KIRK50
ID: 1431801
Hi again all,

Good suggestions, I'll go to 20 points if someone can write me a short piece of code to get it working, and also:  when do you execute the routine, just prior to the download, or can you leave it running "hidden" in the background, waiting for the appropriate download "window" to appear?  Thanks,

-- Kirk

0
 

Author Comment

by:KIRK50
ID: 1431805
Thanks CoRpsE,

I also wanted to know, do you put in into a loop, a form_load event, or how does it look?  Also, what other cool AOL things can you do?  Do you have a web site?  

Thanks a bunch,

-- Kirk

0
 

Author Comment

by:KIRK50
ID: 1431806
Oops .. sorry, I think you answered my last comment/question, CoRpSe, thanks .. but still interested in AOL tricks, how you learned them, if you've a web page, etc.

-- Kirk

0
 

Author Comment

by:KIRK50
ID: 1431808
Dave,

Thanks, I'll drop you a line when I come across my next problem!  If you want, I've got a kinda neat AOL Anti Timer I developed (with Experts help, natch) ... I can upload it if u like, but I'll wait for your permission first.  I'm at KSIMP5050@aol.com, and you can have the source code too.  I want to add your routines to the program for kicks (i'm really a tech writer just playing around with this stuff!)--

Thanks again,

-- Kirk

0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

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…

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