|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Advice on timer projectI want to write a quick app that will remind me not to slouch at the
computer with an Outlook "New Mail Desktop Alert" style pop-up every 15 minutes or so. What I'd like advice on is the best method of timing and displaying the pop-ups that would have the lowest performance impact for other running applications? Best regards Aching Back John John,
Depending on what version of Visual Basic or Studio you're using, you could just use a taskbar notify icon and place a popup message in the timer event to popup every 90000, which should be 1000 = 1 second, 60000 = 1 minute, times 15 = 90000 for a 15 minute timer. -- Show quoteHide quoteMichael Bragg, President eSolTec, Inc. a 501(C)(3) organization MS Authorized MAR looking for used laptops for developmentally disabled. "John" wrote: > I want to write a quick app that will remind me not to slouch at the > computer with an Outlook "New Mail Desktop Alert" style pop-up every 15 > minutes or so. > > What I'd like advice on is the best method of timing and displaying the > pop-ups that would have the lowest performance impact for other running > applications? > > Best regards > > Aching Back John > > > Hi Michael,
Thanks for your reply. Sorry, should have mentioned what I'm using (VS2005 Pro). Does the timer event use any significant resource or is this part of the OS that's running anyway? Thanks again John Show quoteHide quote "eSolTec, Inc. 501(c)(3)" <eSolTecInc50***@discussions.microsoft.com> wrote in message news:EC2860C1-600B-4B9D-92C3-455AFEC7F435@microsoft.com... > John, > > Depending on what version of Visual Basic or Studio you're using, you > could > just use a taskbar notify icon and place a popup message in the timer > event > to popup every 90000, which should be 1000 = 1 second, 60000 = 1 minute, > times 15 = 90000 for a 15 minute timer. > -- > Michael Bragg, President > eSolTec, Inc. > a 501(C)(3) organization > MS Authorized MAR > looking for used laptops for developmentally disabled. > > > "John" wrote: > >> I want to write a quick app that will remind me not to slouch at the >> computer with an Outlook "New Mail Desktop Alert" style pop-up every 15 >> minutes or so. >> >> What I'd like advice on is the best method of timing and displaying the >> pop-ups that would have the lowest performance impact for other running >> applications? >> >> Best regards >> >> Aching Back John >> >> >> John,
Create a new project. In the project, add a notifier Icon. Set opacity of form to 0%, add a timer and an incon to the notifier. In the double click event of the icon notifier, doubleclick even place this code: timer1.enabled = True (1000 = 1 second x 60 = 60000 x 15 =900000) Set timer value to 900000 and set the enabled value to False In the timer eventfired place: MsgBox("John sit up straight and don't slouch in your chair", MsgBoxStyle.OkOnly, "Situp John") Michael Bragg, President eSolTec, Inc. a 501(C)(3) organization MS Authorized MAR looking for used laptops for developmentally disabled. Show quoteHide quote "John" wrote: > Hi Michael, > > Thanks for your reply. > > Sorry, should have mentioned what I'm using (VS2005 Pro). Does the timer > event use any significant resource or is this part of the OS that's running > anyway? > > Thanks again > > John > > "eSolTec, Inc. 501(c)(3)" <eSolTecInc50***@discussions.microsoft.com> wrote > in message news:EC2860C1-600B-4B9D-92C3-455AFEC7F435@microsoft.com... > > John, > > > > Depending on what version of Visual Basic or Studio you're using, you > > could > > just use a taskbar notify icon and place a popup message in the timer > > event > > to popup every 90000, which should be 1000 = 1 second, 60000 = 1 minute, > > times 15 = 90000 for a 15 minute timer. > > -- > > Michael Bragg, President > > eSolTec, Inc. > > a 501(C)(3) organization > > MS Authorized MAR > > looking for used laptops for developmentally disabled. > > > > > > "John" wrote: > > > >> I want to write a quick app that will remind me not to slouch at the > >> computer with an Outlook "New Mail Desktop Alert" style pop-up every 15 > >> minutes or so. > >> > >> What I'd like advice on is the best method of timing and displaying the > >> pop-ups that would have the lowest performance impact for other running > >> applications? > >> > >> Best regards > >> > >> Aching Back John > >> > >> > >> > > > Perfect. Many thanks Michael. Not only is my posture better already but
you've taught me about the notify icon into the bargain! Have a great weekend Best regards John Show quoteHide quote "eSolTec, Inc. 501(c)(3)" <eSolTecInc50***@discussions.microsoft.com> wrote in message news:570C5693-0676-4DAB-98BA-2EFC10F1B456@microsoft.com... > John, > > Create a new project. In the project, add a notifier Icon. Set opacity of > form to 0%, add a timer and an incon to the notifier. In the double click > event of the icon notifier, doubleclick even place this code: > > timer1.enabled = True (1000 = 1 second x 60 = 60000 x 15 =900000) > > Set timer value to 900000 and set the enabled value to False > In the timer eventfired place: > MsgBox("John sit up straight and don't slouch in your chair", > MsgBoxStyle.OkOnly, "Situp John") > > > Michael Bragg, President > eSolTec, Inc. > a 501(C)(3) organization > MS Authorized MAR > looking for used laptops for developmentally disabled. > > > "John" wrote: > >> Hi Michael, >> >> Thanks for your reply. >> >> Sorry, should have mentioned what I'm using (VS2005 Pro). Does the timer >> event use any significant resource or is this part of the OS that's >> running >> anyway? >> >> Thanks again >> >> John >> >> "eSolTec, Inc. 501(c)(3)" <eSolTecInc50***@discussions.microsoft.com> >> wrote >> in message news:EC2860C1-600B-4B9D-92C3-455AFEC7F435@microsoft.com... >> > John, >> > >> > Depending on what version of Visual Basic or Studio you're using, you >> > could >> > just use a taskbar notify icon and place a popup message in the timer >> > event >> > to popup every 90000, which should be 1000 = 1 second, 60000 = 1 >> > minute, >> > times 15 = 90000 for a 15 minute timer. >> > -- >> > Michael Bragg, President >> > eSolTec, Inc. >> > a 501(C)(3) organization >> > MS Authorized MAR >> > looking for used laptops for developmentally disabled. >> > >> > >> > "John" wrote: >> > >> >> I want to write a quick app that will remind me not to slouch at the >> >> computer with an Outlook "New Mail Desktop Alert" style pop-up every >> >> 15 >> >> minutes or so. >> >> >> >> What I'd like advice on is the best method of timing and displaying >> >> the >> >> pop-ups that would have the lowest performance impact for other >> >> running >> >> applications? >> >> >> >> Best regards >> >> >> >> Aching Back John >> >> >> >> >> >> >> >> >> |
|||||||||||||||||||||||