topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Monday March 18, 2024, 11:49 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

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

KenR

  • Super
  • Blogger
  • Joined in 2006
  • ***
  • Posts: 826
    • View Profile
    • Donate to Member
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 09, 2006, 10:48 PM by KPR »

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
brilliant idea - i hope someone figures out how to do this.

skrommel

  • Fastest code in the west
  • Developer
  • Joined in 2005
  • ***
  • Posts: 933
    • View Profile
    • 1 Hour Software by skrommel
    • Donate to Member
:) This script should get your started.

Skrommel


;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, 03:58 AM by skrommel »

KenR

  • Super
  • Blogger
  • Joined in 2006
  • ***
  • Posts: 826
    • View Profile
    • Donate to Member
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