DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: IDEA: Close the bubble message: Wireless Internet Connection is now connected  (Read 8,335 times)

KenR

  • Super
  • Blogger
  • Joined in 2006
  • ***
  • Posts: 826
Hi all.

I generally appreciate the information the OS gives me in bubble messages. The big exception, however, is when my wifi link connects, disconnects, connects, disconnects, etc. The message is something like "Wireless Internet Connection is now connected." I see this message about 15 times/day and I'm sick of it. Each time, it 'patiently waits' for me to close it, not only annoying me, but demanding attention as well.

I would love a program that could close this message, maybe a few (specifyable) seconds after it opens. That way I know I am losing and re-establishing my connection, but I don't have to close the window myself. It might also be nice though if I could sometimes eliminate this window completely, perhaps by making it invisible or closing it before it could be drawn on the screen.

Ideally, this program would be an ahk script so I could learn from the code, though I know that beggers can't be choosers. However, I would be THRILLED to have a program written in ANY language that would do this.

Please let me know if you would like any additional information.
Thanks, KPR
Kenneth P. Reeder, Ph.D.
Clinical Psychologist
Jacksonville, North Carolina  28546
« Last Edit: May 10, 2006, 03:48 AM by KPR »

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
brilliant idea - i hope someone figures out how to do this.

skrommel

  • Fastest code in the west
  • Developer
  • Joined in 2005
  • ***
  • Posts: 933
    • Participated in NANY Challenge Twice
    • Coding Snacks
:) This script should get your started.

Skrommel


Code
;AutoClose.ahk
; Closes defined windows
;Skrommel @2006

#SingleInstance,Force           ;allow only one instance of this script
DetectHiddenWindows,Off         ;don't mind the hidden windows
SetWinDelay,10                  ;time to wait after window actions
SetKeyDelay,10                  ;time to wait between key presses
SetTitleMatchMode,2             ;1=match the beginning of the window title
                                ;2=match anywhere in the window title

windowcount=2                   ;number of defined windows
window1=ahk_class Notepad       ;<title text> ahk_class <window class> ;either part is optional
window2=Calc ahk_class SciCalc

pause=1000

Loop                            ;repeat forever
{
  Loop,%windowcount%            ;loop through the list
  {
    Sleep,100                   ;reduce processor usage
    window:=window%A_Index%     ;extract the correct window
    IfWinExist,%window%         ;check if window exists
    {
      Sleep,%pause%             ;wait before closing
      WinClose,%window%         ;close the window
    }
  }
}
« Last Edit: May 10, 2006, 08:58 AM by skrommel »

KenR

  • Super
  • Blogger
  • Joined in 2006
  • ***
  • Posts: 826
Yes, your script shows me how to do much, perhaps most, of the work.  Thanks for illustrating that part of the process.

I installed AHK a couple days ago and am just getting started with it, but I thought it would be the perfect way to handle this issue and give me some good practice besides. :)

Thanks, KPR
Kenneth P. Reeder, Ph.D.
Clinical Psychologist
Jacksonville, North Carolina  28546

Original address: https://www.donationcoder.com/forum/index.php?topic=3568.0