Results 1 to 1 of 1
  1. #1
    CandymanMike's Avatar
    offline Rock 'n Roll Cowboy
    Join Date
    Oct 2007
    Location
    Orting, WA
    Posts
    5,183
    Thanks
    2,505
    Thanked 2,627 Times in 1,358 Posts
    Downloads
    616
    Uploads
    40

    anyone know how to edit scripts?

    sorry to post this here guys, thought maybe some of you would understand scripts. i have a z3 which requires a patch for clock in status bar as well as a skiman script....

    i'm gonna post this here and in the skin and z3 forums.

    i'm trying to figure out the coding for the clock in status bar script for skiman. i want to move the clock to a different location. but i don't understand the coding enough to know what i need to move. anyone have any knowledge of this?

    script currently is
    void GetDescription(char d[])
    {
    strcpy(d,"Clock in Status Bar");
    **
    int GetPriority()
    {
    return 255;
    **

    int GetValueAfter(char str[])
    {
    char val[150];
    char line[200];
    int i, l, k;

    GetLineByStr(str,line);

    l = strlen(str);
    for (i = 0, k= 0; i <= l; i++)
    {
    if (line[l+i] != ' ') val[k++] = line[l+i];
    else if (k) break;
    **
    return atol(val);
    **

    void DeleteBlock(char block[])
    {
    int val, i, num;
    val = GetValueAfter(block);
    num = GetLineNum(block);
    RemoveLineByNum(num);
    for (i = 0; i < val; i++) RemoveLineByNum(num);
    **
    int IsResMore176()
    {
    int DigClockX;
    DigClockX = GetValueAfter("1 574 ");
    return (DigClockX > 144);
    **

    void PatchSKI()
    {
    if (IsResMore176())
    {
    log("This script only for 176x220 phones.");
    return;
    **
    DeleteBlock("0 1309 ");


    AddLine("0 1309 10");
    AddLine("1 0 0 21 14");
    AddLine("1 42 0 55 14");
    AddLine("1 56 0 71 14");
    AddLine("1 58 0 70 14");
    AddLine("1 71 0 88 14");
    AddLine("1 88 0 105 14");
    AddLine("1 105 0 120 14");
    AddLine("1 139 0 173 14");
    AddLine("1 121 0 139 14");
    AddLine("1 21 0 42 14");



    **
    this puts the clock to the right side where the battery normally is and the battery next to the signal icon.

    normal status bar


    status bar using this script


    nevermind figured it out!
    Last edited by CandymanMike; 07-27-2008 at 05:33 PM. Reason: Automerged Doublepost

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •