DonationCoder.com Software > Post New Requests Here
IDEA: Close the bubble message: Wireless Internet Connection is now connected
(1/1)
KenR:
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
mouser:
brilliant idea - i hope someone figures out how to do this.
skrommel:
:) 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
}
}
}
KenR:
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
Navigation
[0] Message Index
Go to full version