[Windows Mobile Apps and Games] camro:
some examples....

i want that:

EXAMPLE1: (can be done via only one "Scheduler Plan")

========

SCAN:

1.) check that i have a internet connection (like timeplan in Pt.3)

2.) checking emails from my imap idle BOX1 (like timeplan in Pt.3)

3.) scans are valid on timeplan 9:00 to 18:00 (Mo-Fr)

4.) scans are valid on timeplan 11:00 to 15:00 (Sa-So)

EXECUTE:

3.) if new emails arraiving on IMAPIDLE Box "BOX1" then do:

a) poll (Poutlook) emails from Mailbox "BOX1" + "BOX2" + "BOX3"

b) play sound file: "\Windows\Alert.Twitter.wav"

setup:

+ create scheduler plan ex: name: "IMAP-IDLE"

(now: Scanning plans ..)

+ add timeplan (click new "NEW"), then change the values as you want it and click "add"

after doing this, then click "Hide" (then the time editor is hidden again)

+ select "Network Connection"

+ add your "server address" which you want to use for checking (ex: google.com)

+ choose your wanted "Connection": "Auto" / Strict "Off" (so i let windows the logic desicion)

+ setup "Disconnection rechecking": "30" (i use this, then if the phone can't make a network connection (in my cellar), then it try to make a connection all 30sec again)

(FYI: The scanner for "Network Connection" does just suddenly see, if the connection is broken, and only try a connection if not vaild).

+ Activate "Imap Idle", then you can add from right list to leftlist via button "<<" or remove from left list via ">>"

(FYI: you must select before the wanted item in list and then click the button "<<")

(FYI: in the list are all Imap Idle Maiboxes which you created in SchedHandler)

(now: Execute plans ..)

+ Activate "Polling Mailboxes", then you can add from right list to leftlist via button "<<" or remove from left list via ">>"

(FYI: you must select before the wanted item in list and then click the button "<<")

(FYI: in the list are all Maiboxes from your "Pocket Outlook")

+ Activate "Play Sound", then you write in the textbox: \Windows\Alert.Twitter.wav

(FYI: You don't need to use sign: "" or something - only write the filename to the textbox)

That's it

----------------------------------------------------------------------------------

EXAMPLE2: (can be done via only one "Scheduler Plan")

========

SCAN:

1.) check all 20minutes (20x60=1200sec)

3.) scans are valid on timeplan 9:00 to 18:00 (Mo-Fr)

EXECUTE:

3.) if the "wheeltime" (Pt.1) is over then do:

a) poll (Poutlook) emails from Mailbox "BOX2" + "BOX3"

EXAMPLE3: (i want a hourly sound alarm..)

========

SCAN:

1.) check all 60minutes (=3600sec)

2.) scans are valid on timeplan 9:00 to 18:00 (Mo-Fr)

EXECUTE:

3.) if the "wheeltime" (Pt.1) is over then do:

a) play sound file: "\Windows\Alert.Twitter.wav"

(here is important, that you start the service before the timeplan is valid,

otherwise from beginning starting the service "schedservice" all 60minutes the sound will be played ....

and after first "oofline time" it would be correct again"

EXAMPLE4: (i want to poll emails only on: 9h 10h 11h 12h - Mo-Fr)

========

SCAN:

1.) check all 0sec (=0sec) (but activate wheel time for it !!!)

2.) scans are valid on timeplans:

a) 9:00 to 09:00 (Mo-Fr)

a) 10:00 to 10:00 (Mo-Fr)

a) 11:00 to 11:00 (Mo-Fr)

a) 12:00 to 12:00 (Mo-Fr)

EXECUTE:

3.) if time is reaced like timeplan(Pt.2), then do:

a) poll (Poutlook) emails from Mailbox "BOX2" + "BOX3"

this samples should only help you to see, what is possible.

howtosetup:

=========

1.) create you imap idle accounts (if wanted ..)

2.) create scheduler plan and there the logic is:

a) Scanning Events (Network connection / Imap idle / etc ...)

this are the events which will be checked (imap idle= email checking / wheeltime = scaning if time is over / etc...)

b) Timeplan for Scanning Events (which time should they are checked ? - if no plan then wholetheday is valid)

c) Execute Events -> when Scanning Event is valid (imap idle has found emails / or / wheeltime is over ..)

then do:

-> poll emails(choose your mailboxes in list)

-> execute a file(full path+filename)

-> kill a application(only the filename of application)

-> play a soundfile(full path+filename)

-> switch On/Off/Toggle Radio, GPRS, WLan, Bluetooth

that's it.

FAQ

Q:are there somewhere registry entries made?

A: NO/YES -> only Notifications are added (\\.\Notifications\NamedEvent\SchedHandler_*)

Q: Where is the settings file ?

A:see in Application Data\SchedHandler\ -> Filename is "SchedHandler.xml"

Q: can i uninstall/update with new version the programm ?

A: Yes

#####################################################################################

EXPLAINATION/CONCEPT/BACKSTAGE

hi,

well it seems to be, that Fixup made the core stable enough to think about some extra stuff....

thanks - great job...

and so i will think about to expand this project.

################################################## ################################

1) QUESTIONS: some questions to you:

1.1) who wants/can to help with development on this project ?

i don't want to devel on diff. ways on the same thing ... so - want teamwork for it

1.2) please write down your ideas and comments.

1.3) new name for the product ex: "MailHandler", "SchedulerPlaner" please come in with some ideas ...

before i start with changing code ... i thnk about and some ideas from my side....

What should the programm can do ?

--------------------------------------------------------------------------------------

2.)FEATURES

2.1) HANDLING FOR POLLING THE STANDARD EMAIL PROGRAMM (starting "send/receive" command from tmail.exe)

the idea behind is to set in poutlook always: "send/receive - manually"

and the request "send/receive" command will pushed via this tool

this can happen in 2 ways:

a) polling via periodic time (free choosing the time in sec)

b) imap idle -> only if a new email is arrived, and always hold the connection to imapidle

(or combination of both)

2.2.) MAIL SCHEDULING POLLING with time ranges

the idea behind is, that a lot of guys don'T want to get 24h the emails (sometimes sleeping)

and so the email checking/polling should not always be happen.

This should work on 1a) and 1b)

--------------------------------------------------------------------------------------

3.)EXPLAINATION/EXAMPLES:

The idea behind is: to set poutlook always to "Send/receive" to "manual"

and now there are 2 kind of cycling send/receiver

a) via IMAPIDLE: imapidleservice and checking the internet-connection all X minutes (value from "CYCLE")

b) via DEMAND: (i will call it "polling" later) imapidle will be disabled and from beginning of "Starttime" til "Endtime"

and all X minutes (value from "CYCLE") will send the "send/receive" command to poutlook

ex: Profile: DEMO1 -> option for:

Scheduler

=========

Days_________________|_Starttime_|_Endtime_|_(I)MA PIDLE_|_recheck time of connection in sec

Mo,Tu,We,Th,Fr,Sa,Su_|_HH:MM_____|_HH:MM___|_(P)OL LING__|_or periode time when sending polling command in sec

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

X__X__X__X__X__-__-__|_00:00_____|_03:00___|_P__________|_3600___(A)

X__X__X__X__X__-__-__|_09:00_____|_12:00___|_I__________|_900____(B)

X__X__X__X__X__-__-__|_12:30_____|_21:00___|_I__________|_900____(C)

X__X__X__X__X__-__-__|_21:00_____|_00:00___|_I__________|_3600___(D)

-__-__-__-__-__X_____|_08:00_____|_20:00___|_P__________|_7200_ __(E)

-__-__-__-__-__-__X__|_09:00_____|_18:00___|_I__________|_1800___( F)

(A) = monday til Friday from 00:00 to 03:00 -> check via polling and periode all 3600sec

(B) = monday til Friday check via Imap Idle 06:00 - 12:00 and recheck of socket all 900sec.

(C) = almost the same like (A) but other time range ..

you can see the time hole between (A) and (B) of 12:00 til 13:00 there will nothing happen (no imapilde, no polling)

(D) = like the same as (A) but other time range (A+D -> i think in this way it is easier for "over midnight handling"

(E) = on saturday from 08:00 to 20:00 -> check via polling and periode all 3600sec

for time range checking on imap idle will also be a good idea to use one extra paramter (is the actual time a valid time ?)

(so the application don't must check every second if the time range is valid, because this could cost battery)

so, therefore one extra option will be good: -> $TIMECHECKPERIDE = 60 sec

--------------------------------------------------------------------------------------

4) PARAMETER

4.1) Global parameter

- EnableTracing => (ON/OFF)

- DoTracing="True"

- TraceFileLocation="\Application\imappusher\imappus her.txt" (path + file name)

- SpecificConnection="0" (Auto, Internet, Work, etc...)

4.2) Box parameter

- MailboxName="Camel-Mobil" (String (!Be careful! Exact the same name of the poutlook profile)

- Username="camel@xxxx.xx"

- Password="ABCDEFGHIJK" (decryted)

- Server="mail.xxxxx.com"

- Port="993" (1-65000) (automatic ssl check)

- StatusPort="51982" (1-65000)

- SpecificConnection="0" (get it from list internal list = Automatic, Internet, Work, etc...)

- TimePeriodeCheck="300" (0-86400 checking if the time is valid for imapidle checking or polling on time -> point 4.3)

4.3) Box time parameter (a array list of)

- Day="127"(1=Mo,2=Tu,4=We,8=Th,16=Fr,32=Sa,64=Su) so if you want Monday+Sunday then 64+1=65 / Mo-Su=127

- TimeStart="09:00 (HH:MM in 24h format, midnight = 00)

- TimeEnd="00:00 (HH:MM in 24h format, midnight = 00)

- MailMethod="P" (P=Polling / I=IMAP Idle / E=External command)

- ConnectionCheck="300" (on imap ilde the time for checking the internet-connection / on polling recyle time)

(only internal infos)

EDIT: => you don'T must change it per hand -> i'm making a manager for it.

additional informations on:

http://xdaforums.com/showpost.php?p=4970174&postcount=69

http://xdaforums.com/showpost.php?p=4985946&postcount=77

i worked the last 3 days on this tool - and now i'm tired.......:(

for now i go to sleep and then i will support you with more deails and a helpfile