Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


How to disable launch application at given time?


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-10-2007, 05:03 PM
Junior Member
 
Join Date: Jul 2007
Posts: 32
Question How to disable launch application at given time?

Hi everyone:

I've tried the hardware example code which launch an application each five minutes. The line:

Hardware1.RunAppAtTime (AppPath & "\Myapp.exe", TimeAdd(now,0,5,0)) 'MyApp will be launched in 5 minutes


Works fine; it tries to launch \Myapp.exe, which doesnīt exist, and I get a msgbox with the error.

But how do I do to disable the launch of this application?

I've tried a soft reset (doesn't work), and seeking in the registry for the aproppiate key (I havenīt found it), and the msgbox keeps appearing each five minutes.

Help please. Thanks in advance.

Jes.
Reply With Quote
  #2 (permalink)  
Old 07-10-2007, 05:08 PM
Junior Member
 
Join Date: Jul 2007
Posts: 32
Default Model used

BTW, I'm using a Qtek S200.
Reply With Quote
  #3 (permalink)  
Old 07-10-2007, 05:26 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,132
Default

First, it should only run once (unless you are launching the example again).
To disable it you can use RunAppAtEvent with the application name and evNone as the event.
There is a small useful application that can also help you:
http://www.scarybearsoftware.com/product_detail.php?productname=checknotify
Reply With Quote
  #4 (permalink)  
Old 07-11-2007, 08:43 AM
Knows the basics
 
Join Date: May 2007
Posts: 82
Default

I have this trouble before. You need CheckNotifications to delete that event.
Reply With Quote
  #5 (permalink)  
Old 07-11-2007, 05:48 PM
Junior Member
 
Join Date: Jul 2007
Posts: 32
Smile Finally disabled.

Try what Erel said and works fine. The event is no longer appearing.

Anyway, I also use checknotifications (it works on WM 5), and I guess there's nothing wrong. I mean, there are 18 events, (calupd.exe, calnot.exe, replog.exe, calendar.exe, TimeWizard.exe and clocknot.exe) some of them appearing two or three times, associated with different events (none, wakeup,time_change, restore_end, unknow and rs232_detected), but as I'm not quite sure what does they mean, and the problem is fixed, it's ok for me.

Thanks everyone.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Disable entries in ComboBox klaus Questions & Help Needed 4 05-02-2008 02:46 PM
Disable textbox and font color Dr. Feelgood Questions & Help Needed 4 02-14-2008 07:56 AM
preventing double application launch Put Claude Questions & Help Needed 3 10-02-2007 02:52 PM
associating a hardware key with a program to launch it... Cableguy Questions & Help Needed 4 07-07-2007 08:07 PM
launch and close other applications dbo33 Basic4ppc Wishlist 4 06-02-2007 07:03 AM


All times are GMT. The time now is 03:34 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0