PDA

View Full Version : mortscript scripts project


cruiserrr
20th January 2009, 12:04 AM
Hi all,

I propose this new thread to put together many of the scripts spread around in a way that anybody can benefit from it with easy an easy configuration.

The standard I propose is the following:

Split all user parameters from the code itself
Split part of codes wich are dependant on each one user configuration from the code itself
Put together scripts that make little use of system resources and battery


Each relevant post could contain a script with credits to the contributors and the wish list for additional code and this post could act as an index to the relevant posts.

My first attempt:

WIFI_ON
WIFI_OFF

I have created two notifications using dotfred taskmanager.

When I connect to my wifi at home it:

updates my gmail email
updates Spb Insight RSS Feed
downloads weather forecast pictures from my country (to use in my desktop theme)
downloads favourite stocks data and graphs (to use in my desktop theme)
updates quickgps info
updates gmail email

When I disconnect it copies weather data from one program to another:
In this case it copies WAD2 weather info to S2U2. (thanks to alanlsmith at lakeridge forums)

In this example, somebody may share their code to update yahoo accounts or other RSS programs, etc. We could also share other ways of waking up the device. Any user could simply adjust the parameter files and be up and running.

My wish list now is:
* add log code that can be "plugged" to any of the scripts.
* add code to sync when connected to the PC
* give credit to all the people whose code I am using.
* create a include module of paths values so everybody can install this where they want, both the scripts and the registry values created.
* register when the info of each module was last updated so to decide if it should update it again or not: eg. a user may want to update email every hour but the weather or RRS info only once a day.
* create a structure for launching the desired tweaks (on/off), registry exports, registry imports, etc.

Hope some of you want to try and others find useful this scripts

stylez
20th January 2009, 12:09 AM
Hi all,

I propose this new thread to put together many of the scripts spread around in a way that anybody can benefit from it with easy an easy configuration.

Each relevant post could contain a script with credits to the contributors and the wish list for additional code and this post could act as an index to the relevant posts.

Hope some of you want to try and others find useful this scripts

Like this http://forum.xda-developers.com/showthread.php?t=289197 :D

cruiserrr
20th January 2009, 04:05 AM
Not really !
I read this thread quite often because is full of good code and ideas.
My idea is rather to build something really easy to set-up for new users that can also save tons of times for advanced users. Is more a "sashimi" like, giving UI for tweaks, automation, backup, scripts & icon generation menu, links maintenance, set-up after hard-reset, profiles, backups, interaction for themes apps such as rl-today, s2u2 or wad...

The mortscript accumulation thread is simply great and people exchange lots of codes and ideas but each one has to take the bits and re-code. That's why I propose to build a small "application" so we can consolidate and reuse the code we generate... and have fun by doing so !

(In fact, similar ideas to split Q&A and scripts have been expressed more or less in the same thread several times)

wornbat
20th January 2009, 04:12 AM
Here is my first attempt of writing a script with Mortscript

It keeps you connected to High Speed Data Only and disconnects if you stray onto G or E type networks to save on Roaming Charges.

I hope you enjoy :)

http://forum.xda-developers.com/showthread.php?t=462964