Wikia

CHDK Wiki

Canon Basic/Scripts/HelloWorld2

Talk1
571pages on
this wiki

< Canon Basic

Revision as of 04:16, July 7, 2012 by 99.13.229.154 (Talk)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Hello World 2Edit

ScriptEdit

private sub Initialize()
    UI.CreatePublic()

    a=LCDMsg_Create()
    LCDMsg_SetStr(a,"Hello World 2!")
    LCDMsg_Move(a,10,10)
    LCDMsg_ChangeColor(a,3)

    b=LCDMsg_Create()
    LCDMsg_SetStr(b,"More Text")
    LCDMsg_Move(b,20,50)
    LCDMsg_ChangeColor(b,2)

    c=LCDMsg_Create()
    LCDMsg_SetStr(c,"even more Text")
    LCDMsg_Move(c,30,90)
    LCDMsg_ChangeColor(c,5)

    d=LCDMsg_Create()
    LCDMsg_SetStr(d,"done")
    LCDMsg_Move(d,40,130)
    LCDMsg_ChangeColor(d,4)
end sub

First Text row is white, 2. orange, 3. bright orange, 4. grey (at least on SD4000).

TestedEdit

SuccessEdit

UnsuccessfullEdit

Around Wikia's network

Random Wiki