Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) 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, 04:03 PM
Junior Member
 
Join Date: Jul 2007
Posts: 37
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, 04:08 PM
Junior Member
 
Join Date: Jul 2007
Posts: 37
Default Model used

BTW, I'm using a Qtek S200.
Reply With Quote
  #3 (permalink)  
Old 07-10-2007, 04:26 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,726
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
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, 07: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, 04:48 PM
Junior Member
 
Join Date: Jul 2007
Posts: 37
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 Off
Pingbacks are Off
Refbacks are On

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


All times are GMT. The time now is 04:47 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0